Skip to content

Commit b6a0586

Browse files
committed
skillr source file committed
1 parent e639237 commit b6a0586

File tree

2,793 files changed

+314401
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,793 files changed

+314401
-1
lines changed

.htaccess

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
DirectoryIndex index.html index.php
2+
Options -Indexes
3+
4+
<IfModule mod_rewrite.c>
5+
RewriteEngine On
6+
# If installed in local or under a path say /acev3 /: (otherwise, doesn't need RewriteBase)
7+
RewriteBase /
8+
RewriteCond %{REQUEST_FILENAME} !-d
9+
RewriteCond %{REQUEST_FILENAME} !-f
10+
RewriteRule ^img/([a-zA-Z_]*)/([a-zA-Z_]*)/(.*)$ server/php/image.php?size=$1&model=$2&filename=$3 [NC]
11+
RewriteRule ^client/download/([0-9]*)/([a-zA-Z0-9_\.]*)/([0-9]*)$ server/php/plugins/DownloadableFileLessons/download.php?id=$1&hash=$2&timestamp=$3 [NC]
12+
RewriteRule ^video/([a-zA-Z_]*)/([0-9]*)/([a-zA-Z0-9_\.]*)/([0-9]*)$ server/php/plugins/VideoLessons/play_video.php?type=$1&id=$2&hash=$3&timestamp=$4 [NC]
13+
14+
RewriteRule ^api/(.*)$ server/php/R/r.php?_url=$1 [QSA,L]
15+
RewriteRule ^ipn/receiver_account_ipn/([0-9]*)/users/([0-9]*)/hash/([a-zA-Z0-9_\.]*)$ server/php/plugins/Payout/receiver_account_ipn.php?gateway_id=$1&user_id=$2&hash=$3 [NC]
16+
17+
RewriteRule ^ipn/process_ipn/([0-9]*)/hash/([a-zA-Z0-9_\.]*)$ server/php/plugins/SudoPay/process_ipn.php?course_user_id=$1&hash=$2 [NC]
18+
RewriteRule ^ipn/paypal_process_ipn/([0-9]*)/hash/([a-zA-Z0-9_\.]*)$ server/php/plugins/PayPal/paypal_payment_process_ipn.php?course_user_id=$1&hash=$2 [NC]
19+
20+
RewriteRule ^ipn/process_ipn/user_subscription_logs/([0-9]*)/hash/([a-zA-Z0-9_\.]*)$ server/php/plugins/SudoPay/process_ipn.php?user_subscription_logs_id=$1&hash=$2 [NC]
21+
RewriteRule ^ipn/paypal_process_ipn/user_subscriptions/([0-9]*)/hash/([a-zA-Z0-9_\.]*)$ server/php/plugins/PayPal/paypal_subscription_process_ipn.php?user_subscription_id=$1&hash=$2 [NC]
22+
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$
23+
RewriteRule ^$ server/php/plugins/SEO/seo.php$1 [QSA,L]
24+
25+
RewriteRule ^$ client/ [QSA,L]
26+
RewriteRule ^ag-admin$ client/ag-admin/index.html [QSA,L]
27+
RewriteRule ^(assets|api_explorer|ag-admin|vendor|src)/(.*)$ client/$1/$2 [QSA,L]
28+
RewriteRule ^favicon.ico$ client/favicon.ico [L]
29+
RewriteRule ^apple-touch-icon(.*)$ client/apple-touch-icon$1 [L]
30+
</IfModule>
31+
32+
# gzip
33+
<IfModule mod_deflate.c>
34+
AddOutputFilterByType DEFLATE text/javascript application/x-javascript text/css text/html
35+
</IfModule>
36+
37+
# browser caching
38+
<IfModule mod_expires.c>
39+
ExpiresByType text/css "access plus 1 month"
40+
ExpiresByType text/javascript "access plus 1 month"
41+
ExpiresByType image/gif "access plus 1 month"
42+
ExpiresByType image/jpeg "access plus 1 month"
43+
ExpiresByType image/png "access plus 1 month"
44+
# ExpiresByType video/x-flv "access plus 1 month"
45+
ExpiresByType application/x-shockwave-flash "access plus 1 month"
46+
47+
# special MIME type for icons
48+
AddType image/vnd.microsoft.icon .ico
49+
# now we have icon MIME type, we can use it
50+
# my favicon doesn't change much
51+
ExpiresByType image/vnd.microsoft.icon "access plus 3 months"
52+
</IfModule>

README.md

Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,113 @@
1-
# skillr
1+
Installation Steps:
2+
-------------------
3+
### Server Requirements
4+
5+
** PHP Version - 5.4+ (preferably 5.6)
6+
Extensions
7+
GD Version - 2.x+
8+
PCRE Version - 7.x+
9+
cURL version - 7.x+
10+
JSON version - 1.x+
11+
Freetype
12+
mbstring
13+
ffmpeg
14+
pdo_pgsql should enabled
15+
php.ini settings
16+
max_execution_time - 180 (not mandatory)
17+
max_input_time - 6000 (not mandatory)
18+
memory_limit - 128M (at least 32M)
19+
safe_mode - off
20+
open_basedir - No Value
21+
display_error = On
22+
magic_quotes_gpc = Off
23+
** PostgreSQL Version - 9.3+ (preferably 9.3)
24+
** Nginx OR Apache - 1+ (preferably 2+)
25+
Apache - Modules
26+
mod_rewrite
27+
mod_deflate (not mandatory, but highly recommended for better performance–gzip)
28+
mod_expires (not mandatory, but highly recommended for better performance–browser caching)
29+
Recommended Linux distributions: Centos / Ubuntu / RedHat
30+
31+
### Used Technologies
32+
33+
AngularJS 1.5.2
34+
PHP
35+
PostgreSQL
36+
Twitter Bootstrap 3.1.1
37+
38+
### Initial Configurations
39+
40+
* Files Setup
41+
42+
Unzip product zip file and upload to your server.
43+
44+
* Unzipped folder contains following directories
45+
46+
- /client
47+
- /media
48+
- /sample
49+
- /script
50+
- /server
51+
- /sql
52+
- /tmp
53+
- .htaccess
54+
55+
### Database setup
56+
57+
'sql/course_with_empty_data.sql' - Database generation script, import the database through phpPgAdmin or command.
58+
59+
psql -d your_db_name -f /your_server_path/sql/course_with_empty_data.sql
60+
61+
'/server/php/config.inc.php' - For database and other configurations.
62+
63+
(
64+
define('R_DB_HOST', 'localhost');
65+
define('R_DB_USER', 'ENTER DB USER HERE');
66+
define('R_DB_PASSWORD', 'ENTER DB PASSWORD HERE');
67+
define('R_DB_NAME', 'ENTER DB NANE HERE');
68+
)
69+
70+
### Site logo setup
71+
72+
There are few places where site logo are located. To change those logo, you need to replace your logo with exact name and resolution in the following mentioned directories.
73+
74+
client/assets/img/logo.php - 100 x 34
75+
client/assets/favicon.icon - 16 x 16
76+
client/assets/apple-touch-icon.png - 57 x 57
77+
client/assets/apple-touch-icon-72×72.png - 72 x 72
78+
client/assets/apple-touch-icon-114×114.png - 114 x 114
79+
client/assets/img/logo-600×315.png - 600 x 315
80+
81+
### File permission setup
82+
83+
Make sure the permission as read, write and executable as recursively for the below directories. (Need write permission 777)
84+
85+
- /media
86+
- /tmp
87+
- /client/assets
88+
- /server/php/plugins/Subscriptions/shell
89+
- /server/php/plugins/VideoLessons/shell
90+
91+
### Cron setup
92+
93+
Setup the cron with the following command
94+
95+
* For VideoLessons
96+
97+
*/2 * * * * /$root_path/server/php/plugins/VideoLessons/shell/convert_video.sh 1>> /$root/tmp/logs/shell.log 2>> /$root/tmp/logs/shell.log
98+
99+
* For Subscriptions
100+
101+
*/2 * * * * /$root_path/server/php/plugins/Subscriptions/shell/update_subscription_status.sh 1>> /$root/tmp/logs/shell.log 2>> /$root/tmp/logs/shell.log
102+
103+
* How to Configure Site Settings
104+
105+
Login with below admin credentials.
106+
107+
Username: admin
108+
Email: productdemo.admin@gmail.com
109+
Password: agriya
110+
111+
Go to users menu, and update your email and password.
112+
113+
For site relating settings, got to settings menu and manage your settings.

client/ag-admin/css/alerts.less

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
//
2+
// Alerts
3+
// --------------------------------------------------
4+
5+
6+
// Base styles
7+
// -------------------------
8+
9+
.alert {
10+
padding: @alert-padding;
11+
margin-bottom: @line-height-computed;
12+
border: 1px solid transparent;
13+
border-radius: @alert-border-radius;
14+
15+
// Headings for larger alerts
16+
h4 {
17+
margin-top: 0;
18+
// Specified for the h4 to prevent conflicts of changing @headings-color
19+
color: inherit;
20+
}
21+
// Provide class for links that match alerts
22+
.alert-link {
23+
font-weight: @alert-link-font-weight;
24+
}
25+
26+
// Improve alignment and spacing of inner content
27+
> p,
28+
> ul {
29+
margin-bottom: 0;
30+
}
31+
> p + p {
32+
margin-top: 5px;
33+
}
34+
}
35+
36+
// Dismissable alerts
37+
//
38+
// Expand the right padding and account for the close button's positioning.
39+
40+
.alert-dismissable {
41+
padding-right: (@alert-padding + 20);
42+
43+
// Adjust close link position
44+
.close {
45+
position: relative;
46+
top: -2px;
47+
right: -21px;
48+
color: inherit;
49+
}
50+
}
51+
52+
// Alternate styles
53+
//
54+
// Generate contextual modifier classes for colorizing the alert.
55+
56+
.alert-success {
57+
.alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
58+
}
59+
.alert-info {
60+
.alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
61+
}
62+
.alert-warning {
63+
.alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
64+
}
65+
.alert-danger {
66+
.alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
67+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.js-loader {
2+
width:200px;
3+
height:200px;
4+
position:absolute;
5+
left:50%;
6+
top:50%;
7+
background-image:url(../assets/img/loader.gif);
8+
background-repeat:no-repeat;
9+
background-position:center;
10+
margin:-100px 0 0 -100px;
11+
}
12+
.js body.home-site-loading .content{
13+
display:none;
14+
}
15+
body.site-loading .content{
16+
display:none;
17+
}

client/ag-admin/css/badges.less

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
//
2+
// Badges
3+
// --------------------------------------------------
4+
5+
6+
// Base classes
7+
.badge {
8+
display: inline-block;
9+
min-width: 10px;
10+
padding: 3px 7px;
11+
font-size: @font-size-small;
12+
font-weight: @badge-font-weight;
13+
color: @badge-color;
14+
line-height: @badge-line-height;
15+
vertical-align: baseline;
16+
white-space: nowrap;
17+
text-align: center;
18+
background-color: @badge-bg;
19+
border-radius: @badge-border-radius;
20+
21+
// Empty badges collapse automatically (not available in IE8)
22+
&:empty {
23+
display: none;
24+
}
25+
26+
// Quick fix for badges in buttons
27+
.btn & {
28+
position: relative;
29+
top: -1px;
30+
}
31+
.btn-xs & {
32+
top: 0;
33+
padding: 1px 5px;
34+
}
35+
}
36+
37+
// Hover state, but only for links
38+
a.badge {
39+
&:hover,
40+
&:focus {
41+
color: @badge-link-hover-color;
42+
text-decoration: none;
43+
cursor: pointer;
44+
}
45+
}
46+
47+
// Account for counters in navs
48+
a.list-group-item.active > .badge,
49+
.nav-pills > .active > a > .badge {
50+
color: @badge-active-color;
51+
background-color: @badge-active-bg;
52+
}
53+
.nav-pills > li > a > .badge {
54+
margin-left: 3px;
55+
}

client/ag-admin/css/bootstrap.less

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Core variables and mixins
2+
@import "variables.less";
3+
@import "mixins.less";
4+
5+
// Reset
6+
@import "normalize.less";
7+
@import "print.less";
8+
9+
// Core CSS
10+
@import "scaffolding.less";
11+
@import "type.less";
12+
@import "code.less";
13+
@import "grid.less";
14+
@import "tables.less";
15+
@import "forms.less";
16+
@import "buttons.less";
17+
18+
// Components
19+
@import "component-animations.less";
20+
@import "glyphicons.less";
21+
@import "dropdowns.less";
22+
@import "button-groups.less";
23+
@import "input-groups.less";
24+
@import "navs.less";
25+
@import "navbar.less";
26+
@import "breadcrumbs.less";
27+
@import "pagination.less";
28+
@import "pager.less";
29+
@import "labels.less";
30+
@import "badges.less";
31+
@import "jumbotron.less";
32+
@import "thumbnails.less";
33+
@import "alerts.less";
34+
@import "progress-bars.less";
35+
@import "media.less";
36+
@import "list-group.less";
37+
@import "panels.less";
38+
@import "wells.less";
39+
@import "close.less";
40+
@import "font-awesome.less";
41+
42+
// Components w/ JavaScript
43+
@import "modals.less";
44+
@import "tooltip.less";
45+
@import "popovers.less";
46+
@import "carousel.less";
47+
48+
// Utility classes
49+
@import "utilities.less";
50+
@import "responsive-utilities.less";
51+
52+
//custom less
53+
54+
@import "ngadmin.less";
55+
@import "timeline.css";
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// Breadcrumbs
3+
// --------------------------------------------------
4+
5+
6+
.breadcrumb {
7+
padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
8+
margin-bottom: @line-height-computed;
9+
list-style: none;
10+
background-color: @breadcrumb-bg;
11+
border-radius: @border-radius-base;
12+
13+
> li {
14+
display: inline-block;
15+
16+
+ li:before {
17+
content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
18+
padding: 0 5px;
19+
color: @breadcrumb-color;
20+
}
21+
}
22+
23+
> .active {
24+
color: @breadcrumb-active-color;
25+
}
26+
}

0 commit comments

Comments
 (0)