Skip to content

Commit

Permalink
teamr source file committed
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmeank committed Jun 20, 2018
1 parent 501bfd4 commit f3a88a7
Show file tree
Hide file tree
Showing 2,816 changed files with 315,829 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
DirectoryIndex index.html index.php
Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On
# If installed in local or under a path say /acev3 /: (otherwise, doesn't need RewriteBase)
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^img/([a-zA-Z_]*)/([a-zA-Z_]*)/(.*)$ server/php/image.php?size=$1&model=$2&filename=$3 [NC]
RewriteRule ^client/download/([0-9]*)/([a-zA-Z0-9_\.]*)/([0-9]*)$ server/php/plugins/DownloadableFileLessons/download.php?id=$1&hash=$2&timestamp=$3 [NC]
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]

RewriteRule ^api/(.*)$ server/php/R/r.php?_url=$1 [QSA,L]
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]

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]
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]

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]
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]
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$
RewriteRule ^$ server/php/plugins/SEO/seo.php$1 [QSA,L]

RewriteRule ^$ client/ [QSA,L]
RewriteRule ^ag-admin$ client/ag-admin/index.html [QSA,L]
RewriteRule ^(assets|api_explorer|ag-admin|vendor|src)/(.*)$ client/$1/$2 [QSA,L]
RewriteRule ^favicon.ico$ client/favicon.ico [L]
RewriteRule ^apple-touch-icon(.*)$ client/apple-touch-icon$1 [L]
</IfModule>

# gzip
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/javascript application/x-javascript text/css text/html
</IfModule>

# browser caching
<IfModule mod_expires.c>
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
# ExpiresByType video/x-flv "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"

# special MIME type for icons
AddType image/vnd.microsoft.icon .ico
# now we have icon MIME type, we can use it
# my favicon doesn't change much
ExpiresByType image/vnd.microsoft.icon "access plus 3 months"
</IfModule>
114 changes: 113 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,113 @@
# teamr
Installation Steps:
-------------------
### Server Requirements

** PHP Version - 5.4+ (preferably 5.6)
Extensions
GD Version - 2.x+
PCRE Version - 7.x+
cURL version - 7.x+
JSON version - 1.x+
Freetype
mbstring
ffmpeg
pdo_pgsql should enabled
php.ini settings
max_execution_time - 180 (not mandatory)
max_input_time - 6000 (not mandatory)
memory_limit - 128M (at least 32M)
safe_mode - off
open_basedir - No Value
display_error = On
magic_quotes_gpc = Off
** PostgreSQL Version - 9.3+ (preferably 9.3)
** Nginx OR Apache - 1+ (preferably 2+)
Apache - Modules
mod_rewrite
mod_deflate (not mandatory, but highly recommended for better performance–gzip)
mod_expires (not mandatory, but highly recommended for better performance–browser caching)
Recommended Linux distributions: Centos / Ubuntu / RedHat

### Used Technologies

AngularJS 1.5.2
PHP
PostgreSQL
Twitter Bootstrap 3.1.1

### Initial Configurations

* Files Setup

Unzip product zip file and upload to your server.

* Unzipped folder contains following directories

- /client
- /media
- /sample
- /script
- /server
- /sql
- /tmp
- .htaccess

### Database setup

'sql/course_with_empty_data.sql' - Database generation script, import the database through phpPgAdmin or command.

psql -d your_db_name -f /your_server_path/sql/course_with_empty_data.sql

'/server/php/config.inc.php' - For database and other configurations.

(
define('R_DB_HOST', 'localhost');
define('R_DB_USER', 'ENTER DB USER HERE');
define('R_DB_PASSWORD', 'ENTER DB PASSWORD HERE');
define('R_DB_NAME', 'ENTER DB NANE HERE');
)

### Site logo setup

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.

client/assets/img/logo.php - 100 x 34
client/assets/favicon.icon - 16 x 16
client/assets/apple-touch-icon.png - 57 x 57
client/assets/apple-touch-icon-72×72.png - 72 x 72
client/assets/apple-touch-icon-114×114.png - 114 x 114
client/assets/img/logo-600×315.png - 600 x 315

### File permission setup

Make sure the permission as read, write and executable as recursively for the below directories. (Need write permission 777)

- /media
- /tmp
- /client/assets
- /server/php/plugins/Subscriptions/shell
- /server/php/plugins/VideoLessons/shell

### Cron setup

Setup the cron with the following command

* For VideoLessons

*/2 * * * * /$root_path/server/php/plugins/VideoLessons/shell/convert_video.sh 1>> /$root/tmp/logs/shell.log 2>> /$root/tmp/logs/shell.log

* For Subscriptions

*/2 * * * * /$root_path/server/php/plugins/Subscriptions/shell/update_subscription_status.sh 1>> /$root/tmp/logs/shell.log 2>> /$root/tmp/logs/shell.log

* How to Configure Site Settings

Login with below admin credentials.

Username: admin
Email: [email protected]
Password: agriya

Go to users menu, and update your email and password.

For site relating settings, got to settings menu and manage your settings.
67 changes: 67 additions & 0 deletions client/ag-admin/css/alerts.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
//
// Alerts
// --------------------------------------------------


// Base styles
// -------------------------

.alert {
padding: @alert-padding;
margin-bottom: @line-height-computed;
border: 1px solid transparent;
border-radius: @alert-border-radius;

// Headings for larger alerts
h4 {
margin-top: 0;
// Specified for the h4 to prevent conflicts of changing @headings-color
color: inherit;
}
// Provide class for links that match alerts
.alert-link {
font-weight: @alert-link-font-weight;
}

// Improve alignment and spacing of inner content
> p,
> ul {
margin-bottom: 0;
}
> p + p {
margin-top: 5px;
}
}

// Dismissable alerts
//
// Expand the right padding and account for the close button's positioning.

.alert-dismissable {
padding-right: (@alert-padding + 20);

// Adjust close link position
.close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
}

// Alternate styles
//
// Generate contextual modifier classes for colorizing the alert.

.alert-success {
.alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
}
.alert-info {
.alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
}
.alert-warning {
.alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
}
.alert-danger {
.alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
}
17 changes: 17 additions & 0 deletions client/ag-admin/css/animate-loader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.js-loader {
width:200px;
height:200px;
position:absolute;
left:50%;
top:50%;
background-image:url(../assets/img/loader.gif);
background-repeat:no-repeat;
background-position:center;
margin:-100px 0 0 -100px;
}
.js body.home-site-loading .content{
display:none;
}
body.site-loading .content{
display:none;
}
55 changes: 55 additions & 0 deletions client/ag-admin/css/badges.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//
// Badges
// --------------------------------------------------


// Base classes
.badge {
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: @font-size-small;
font-weight: @badge-font-weight;
color: @badge-color;
line-height: @badge-line-height;
vertical-align: baseline;
white-space: nowrap;
text-align: center;
background-color: @badge-bg;
border-radius: @badge-border-radius;

// Empty badges collapse automatically (not available in IE8)
&:empty {
display: none;
}

// Quick fix for badges in buttons
.btn & {
position: relative;
top: -1px;
}
.btn-xs & {
top: 0;
padding: 1px 5px;
}
}

// Hover state, but only for links
a.badge {
&:hover,
&:focus {
color: @badge-link-hover-color;
text-decoration: none;
cursor: pointer;
}
}

// Account for counters in navs
a.list-group-item.active > .badge,
.nav-pills > .active > a > .badge {
color: @badge-active-color;
background-color: @badge-active-bg;
}
.nav-pills > li > a > .badge {
margin-left: 3px;
}
55 changes: 55 additions & 0 deletions client/ag-admin/css/bootstrap.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Core variables and mixins
@import "variables.less";
@import "mixins.less";

// Reset
@import "normalize.less";
@import "print.less";

// Core CSS
@import "scaffolding.less";
@import "type.less";
@import "code.less";
@import "grid.less";
@import "tables.less";
@import "forms.less";
@import "buttons.less";

// Components
@import "component-animations.less";
@import "glyphicons.less";
@import "dropdowns.less";
@import "button-groups.less";
@import "input-groups.less";
@import "navs.less";
@import "navbar.less";
@import "breadcrumbs.less";
@import "pagination.less";
@import "pager.less";
@import "labels.less";
@import "badges.less";
@import "jumbotron.less";
@import "thumbnails.less";
@import "alerts.less";
@import "progress-bars.less";
@import "media.less";
@import "list-group.less";
@import "panels.less";
@import "wells.less";
@import "close.less";
@import "font-awesome.less";

// Components w/ JavaScript
@import "modals.less";
@import "tooltip.less";
@import "popovers.less";
@import "carousel.less";

// Utility classes
@import "utilities.less";
@import "responsive-utilities.less";

//custom less

@import "ngadmin.less";
@import "timeline.css";
26 changes: 26 additions & 0 deletions client/ag-admin/css/breadcrumbs.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// Breadcrumbs
// --------------------------------------------------


.breadcrumb {
padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
margin-bottom: @line-height-computed;
list-style: none;
background-color: @breadcrumb-bg;
border-radius: @border-radius-base;

> li {
display: inline-block;

+ li:before {
content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
padding: 0 5px;
color: @breadcrumb-color;
}
}

> .active {
color: @breadcrumb-active-color;
}
}
Loading

0 comments on commit f3a88a7

Please sign in to comment.