@@ -67,6 +67,10 @@ |
||
| 67 | 67 | self::$eventsStatic[$name][] = $method; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $name |
|
| 72 | + * @param Connector $method |
|
| 73 | + */ |
|
| 70 | 74 | public static function trigger_static($name, $method) |
| 71 | 75 | { |
| 72 | 76 | $arg_list = func_get_args(); |
@@ -190,6 +190,9 @@ |
||
| 190 | 190 | die(); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | + /** |
|
| 194 | + * @param boolean $edit |
|
| 195 | + */ |
|
| 193 | 196 | public static function checkCSRF($edit) |
| 194 | 197 | { |
| 195 | 198 | if (self::$security_key) { |
@@ -121,19 +121,19 @@ |
||
| 121 | 121 | if (class_exists('tidy')) { |
| 122 | 122 | $tidy = new tidy(); |
| 123 | 123 | $tidyOptions = ['output-xhtml' => true, |
| 124 | - 'show-body-only' => true, |
|
| 125 | - 'clean' => true, |
|
| 126 | - 'wrap' => '350', |
|
| 127 | - 'indent' => true, |
|
| 128 | - 'indent-spaces' => 1, |
|
| 129 | - 'ascii-chars' => false, |
|
| 130 | - 'wrap-attributes' => false, |
|
| 131 | - 'alt-text' => '', |
|
| 132 | - 'doctype' => 'loose', |
|
| 133 | - 'numeric-entities' => true, |
|
| 134 | - 'drop-proprietary-attributes' => true, |
|
| 135 | - 'enclose-text' => false, |
|
| 136 | - 'enclose-block-text' => false, |
|
| 124 | + 'show-body-only' => true, |
|
| 125 | + 'clean' => true, |
|
| 126 | + 'wrap' => '350', |
|
| 127 | + 'indent' => true, |
|
| 128 | + 'indent-spaces' => 1, |
|
| 129 | + 'ascii-chars' => false, |
|
| 130 | + 'wrap-attributes' => false, |
|
| 131 | + 'alt-text' => '', |
|
| 132 | + 'doctype' => 'loose', |
|
| 133 | + 'numeric-entities' => true, |
|
| 134 | + 'drop-proprietary-attributes' => true, |
|
| 135 | + 'enclose-text' => false, |
|
| 136 | + 'enclose-block-text' => false, |
|
| 137 | 137 | |
| 138 | 138 | ]; |
| 139 | 139 | $tidy->parseString($string, $tidyOptions, 'utf8'); |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | |
| 178 | 178 | return self::$filterClass->basic($value); |
| 179 | 179 | } |
| 180 | - throw new Error('Invalid security mode:' + $mode); |
|
| 180 | + throw new Error('Invalid security mode:' +$mode); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | public static function CSRF_detected() |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('mailchimp_lists', function (Blueprint $table) { |
|
| 15 | + Schema::create('mailchimp_lists', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('list_id'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('frontend_pages', function (Blueprint $table) { |
|
| 15 | + Schema::create('frontend_pages', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('parent_page_id'); |
| 18 | 18 | $table->string('slug'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('product_bundle_relations', function (Blueprint $table) { |
|
| 15 | + Schema::table('product_bundle_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('bundle_id')->references('id')->on('product_bundles')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | $table->foreign('product_id')->references('id')->on('products')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 18 | 18 | }); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('product_bundle_relations', function (Blueprint $table) { |
|
| 28 | + Schema::table('product_bundle_relations', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropForeign('product_bundle_relations_bundle_id_foreign'); |
| 30 | 30 | $table->dropForeign('product_bundle_relations_product_id_foreign'); |
| 31 | 31 | }); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('currencies', function (Blueprint $table) { |
|
| 15 | + Schema::create('currencies', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('code')->unique(); |
| 18 | 18 | $table->string('symbol'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('company_types', function (Blueprint $table) { |
|
| 15 | + Schema::create('company_types', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('short'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('ccavenue', function (Blueprint $table) { |
|
| 15 | + Schema::create('ccavenue', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('merchant_id'); |
| 18 | 18 | $table->string('access_code'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('product_groups', function (Blueprint $table) { |
|
| 15 | + Schema::create('product_groups', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('headline'); |