@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - /* you can add your own middleware here */ |
|
| 4 | + /* you can add your own middleware here */ |
|
| 5 | 5 | |
| 6 | - 'middleware' => [], |
|
| 6 | + 'middleware' => [], |
|
| 7 | 7 | |
| 8 | - /* you can set your own table prefix here */ |
|
| 9 | - 'table_prefix' => 'chck_', |
|
| 8 | + /* you can set your own table prefix here */ |
|
| 9 | + 'table_prefix' => 'chck_', |
|
| 10 | 10 | |
| 11 | 11 | /* you can set your own table names */ |
| 12 | 12 | 'table_name_menus' => 'menus', |
@@ -1,46 +1,46 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - /* you can add your own middleware here */ |
|
| 4 | + /* you can add your own middleware here */ |
|
| 5 | 5 | |
| 6 | - 'auth' => [ |
|
| 7 | - 'get_login' => [ |
|
| 8 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\LoginController', |
|
| 9 | - 'action' => 'showLoginForm' |
|
| 10 | - ], |
|
| 11 | - 'post_login' => [ |
|
| 12 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\LoginController', |
|
| 13 | - 'action' => 'login' |
|
| 14 | - ], |
|
| 15 | - 'post_logout' => [ |
|
| 16 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\LoginController', |
|
| 17 | - 'action' => 'logout' |
|
| 18 | - ], |
|
| 19 | - 'get_register' => [ |
|
| 20 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\RegisterController', |
|
| 21 | - 'action' => 'showRegistrationForm' |
|
| 22 | - ], |
|
| 23 | - 'post_register' => [ |
|
| 24 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\RegisterController', |
|
| 25 | - 'action' => 'register' |
|
| 26 | - ], |
|
| 27 | - 'get_password_reset' => [ |
|
| 28 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 29 | - 'action' => 'showLinkRequestForm' |
|
| 30 | - ], |
|
| 31 | - 'post_password_email' => [ |
|
| 32 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 33 | - 'action' => 'sendResetLinkEmail' |
|
| 34 | - ], |
|
| 35 | - 'get_password_reset_token' => [ |
|
| 36 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 37 | - 'action' => 'showResetForm' |
|
| 38 | - ], |
|
| 39 | - 'post_password_reset' => [ |
|
| 40 | - 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 41 | - 'action' => 'reset' |
|
| 42 | - ], |
|
| 6 | + 'auth' => [ |
|
| 7 | + 'get_login' => [ |
|
| 8 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\LoginController', |
|
| 9 | + 'action' => 'showLoginForm' |
|
| 10 | + ], |
|
| 11 | + 'post_login' => [ |
|
| 12 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\LoginController', |
|
| 13 | + 'action' => 'login' |
|
| 14 | + ], |
|
| 15 | + 'post_logout' => [ |
|
| 16 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\LoginController', |
|
| 17 | + 'action' => 'logout' |
|
| 18 | + ], |
|
| 19 | + 'get_register' => [ |
|
| 20 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\RegisterController', |
|
| 21 | + 'action' => 'showRegistrationForm' |
|
| 22 | + ], |
|
| 23 | + 'post_register' => [ |
|
| 24 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\RegisterController', |
|
| 25 | + 'action' => 'register' |
|
| 26 | + ], |
|
| 27 | + 'get_password_reset' => [ |
|
| 28 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 29 | + 'action' => 'showLinkRequestForm' |
|
| 30 | + ], |
|
| 31 | + 'post_password_email' => [ |
|
| 32 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 33 | + 'action' => 'sendResetLinkEmail' |
|
| 34 | + ], |
|
| 35 | + 'get_password_reset_token' => [ |
|
| 36 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 37 | + 'action' => 'showResetForm' |
|
| 38 | + ], |
|
| 39 | + 'post_password_reset' => [ |
|
| 40 | + 'controller' => 'Chuckbe\ChuckcmsModuleEcommerce\Controllers\Auth\ForgotPasswordController', |
|
| 41 | + 'action' => 'reset' |
|
| 42 | + ], |
|
| 43 | 43 | |
| 44 | - ], |
|
| 44 | + ], |
|
| 45 | 45 | |
| 46 | 46 | ]; |
| 47 | 47 | \ No newline at end of file |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - 'allLocales' => [ |
|
| 6 | - 'ace' => ['name' => 'Achinese', 'script' => 'Latn', 'native' => 'Aceh', 'regional' => ''], |
|
| 5 | + 'allLocales' => [ |
|
| 6 | + 'ace' => ['name' => 'Achinese', 'script' => 'Latn', 'native' => 'Aceh', 'regional' => ''], |
|
| 7 | 7 | 'af' => ['name' => 'Afrikaans', 'script' => 'Latn', 'native' => 'Afrikaans', 'regional' => 'af_ZA'], |
| 8 | 8 | 'agq' => ['name' => 'Aghem', 'script' => 'Latn', 'native' => 'Aghem', 'regional' => ''], |
| 9 | 9 | 'ak' => ['name' => 'Akan', 'script' => 'Latn', 'native' => 'Akan', 'regional' => 'ak_GH'], |
@@ -29,19 +29,19 @@ discard block |
||
| 29 | 29 | // parameter represents the DataTables column identifier. In this case simple |
| 30 | 30 | // indexes |
| 31 | 31 | $columns = array( |
| 32 | - array( 'db' => 'id', 'dt' => 0 ), |
|
| 33 | - array( 'db' => 'firstname', 'dt' => 1 ), |
|
| 34 | - array( 'db' => 'surname', 'dt' => 2 ), |
|
| 35 | - array( 'db' => 'zip', 'dt' => 3 ), |
|
| 36 | - array( 'db' => 'country', 'dt' => 4 ) |
|
| 32 | + array( 'db' => 'id', 'dt' => 0 ), |
|
| 33 | + array( 'db' => 'firstname', 'dt' => 1 ), |
|
| 34 | + array( 'db' => 'surname', 'dt' => 2 ), |
|
| 35 | + array( 'db' => 'zip', 'dt' => 3 ), |
|
| 36 | + array( 'db' => 'country', 'dt' => 4 ) |
|
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | // SQL server connection information |
| 40 | 40 | $sql_details = array( |
| 41 | - 'user' => '', |
|
| 42 | - 'pass' => '', |
|
| 43 | - 'db' => '', |
|
| 44 | - 'host' => '' |
|
| 41 | + 'user' => '', |
|
| 42 | + 'pass' => '', |
|
| 43 | + 'db' => '', |
|
| 44 | + 'host' => '' |
|
| 45 | 45 | ); |
| 46 | 46 | |
| 47 | 47 | |
@@ -53,6 +53,6 @@ discard block |
||
| 53 | 53 | require( '../../../../examples/server_side/scripts/ssp.class.php' ); |
| 54 | 54 | |
| 55 | 55 | echo json_encode( |
| 56 | - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) |
|
| 56 | + SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) |
|
| 57 | 57 | ); |
| 58 | 58 | |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | $contentStart += $startDelimiterLength; |
| 143 | 143 | $contentEnd = strpos($str, $endDelimiter, $contentStart); |
| 144 | 144 | if (false === $contentEnd) { |
| 145 | - break; |
|
| 145 | + break; |
|
| 146 | 146 | } |
| 147 | 147 | $contents[] = substr($str, $contentStart, $contentEnd - $contentStart); |
| 148 | 148 | $startFrom = $contentEnd + $endDelimiterLength; |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class UserRepository |
| 10 | 10 | { |
| 11 | - public function __construct(User $user) |
|
| 11 | + public function __construct(User $user) |
|
| 12 | 12 | { |
| 13 | 13 | $this->user = $user; |
| 14 | 14 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | public static function updateOrCreateFromRequest($req) |
| 11 | 11 | { |
| 12 | - $settings = []; |
|
| 12 | + $settings = []; |
|
| 13 | 13 | foreach ($req->get('socialmedia') as $smKey => $smValue) { |
| 14 | 14 | $settings['socialmedia'][$smKey] = $smValue; |
| 15 | 15 | } |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | $blockKey = str_replace('.html', '', $value); |
| 161 | 161 | $blockName = str_replace('-', ' ', $blockKey); |
| 162 | 162 | if (file_exists($dir . DIRECTORY_SEPARATOR . $blockKey . '.jpg')) { |
| 163 | - $blockImage = $dir . DIRECTORY_SEPARATOR . $blockKey . '.jpg'; |
|
| 163 | + $blockImage = $dir . DIRECTORY_SEPARATOR . $blockKey . '.jpg'; |
|
| 164 | 164 | } elseif (file_exists($dir . DIRECTORY_SEPARATOR . $blockKey . '.jpeg')) { |
| 165 | 165 | $blockImage = $dir . DIRECTORY_SEPARATOR . $blockKey . '.jpeg'; |
| 166 | 166 | } elseif (file_exists($dir . DIRECTORY_SEPARATOR . $blockKey . '.png')) { |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | |
| 64 | 64 | $page = $this->page->where('slug->'.app()->getLocale(), $slug)->first(); |
| 65 | 65 | if($page == null){ |
| 66 | - foreach(\LaravelLocalization::getSupportedLocales() as $localeCode => $properties){ |
|
| 66 | + foreach(\LaravelLocalization::getSupportedLocales() as $localeCode => $properties){ |
|
| 67 | 67 | $page = $this->page->where('slug->'.$localeCode, $slug)->first(); |
| 68 | 68 | if($page !== null && $localeCode == app()->getLocale()) break; |
| 69 | 69 | |