@@ -9,64 +9,64 @@ |
||
| 9 | 9 | |
| 10 | 10 | # Cadmium |
| 11 | 11 | |
| 12 | -define('CADMIUM_NAME', 'Cadmium CMS'); |
|
| 13 | -define('CADMIUM_HOME', 'http://cadmium-cms.com'); |
|
| 12 | +define('CADMIUM_NAME', 'Cadmium CMS'); |
|
| 13 | +define('CADMIUM_HOME', 'http://cadmium-cms.com'); |
|
| 14 | 14 | |
| 15 | -define('CADMIUM_VERSION', '0.4.6'); |
|
| 16 | -define('CADMIUM_COPY', '2017'); |
|
| 15 | +define('CADMIUM_VERSION', '0.4.6'); |
|
| 16 | +define('CADMIUM_COPY', '2017'); |
|
| 17 | 17 | |
| 18 | 18 | # Third-party |
| 19 | 19 | |
| 20 | -define('JQUERY_VERSION', '3.2.1'); |
|
| 21 | -define('SEMANTIC_UI_VERSION', '2.2.10'); |
|
| 22 | -define('CKEDITOR_VERSION', '4.6.2'); |
|
| 23 | -define('ACE_VERSION', '1.2.6'); |
|
| 20 | +define('JQUERY_VERSION', '3.2.1'); |
|
| 21 | +define('SEMANTIC_UI_VERSION', '2.2.10'); |
|
| 22 | +define('CKEDITOR_VERSION', '4.6.2'); |
|
| 23 | +define('ACE_VERSION', '1.2.6'); |
|
| 24 | 24 | |
| 25 | 25 | # Sections |
| 26 | 26 | |
| 27 | -define('SECTION_SITE', 'site'); |
|
| 28 | -define('SECTION_ADMIN', 'admin'); |
|
| 27 | +define('SECTION_SITE', 'site'); |
|
| 28 | +define('SECTION_ADMIN', 'admin'); |
|
| 29 | 29 | |
| 30 | 30 | # Access |
| 31 | 31 | |
| 32 | -define('ACCESS_PUBLIC', 0); |
|
| 33 | -define('ACCESS_REGISTERED', 1); |
|
| 34 | -define('ACCESS_ADMINISTRATOR', 2); |
|
| 32 | +define('ACCESS_PUBLIC', 0); |
|
| 33 | +define('ACCESS_REGISTERED', 1); |
|
| 34 | +define('ACCESS_ADMINISTRATOR', 2); |
|
| 35 | 35 | |
| 36 | 36 | # Frequency |
| 37 | 37 | |
| 38 | -define('FREQUENCY_ALWAYS', 'always'); |
|
| 39 | -define('FREQUENCY_HOURLY', 'hourly'); |
|
| 40 | -define('FREQUENCY_DAILY', 'daily'); |
|
| 41 | -define('FREQUENCY_WEEKLY', 'weekly'); |
|
| 42 | -define('FREQUENCY_MONTHLY', 'monthly'); |
|
| 43 | -define('FREQUENCY_YEARLY', 'yearly'); |
|
| 44 | -define('FREQUENCY_NEVER', 'never'); |
|
| 38 | +define('FREQUENCY_ALWAYS', 'always'); |
|
| 39 | +define('FREQUENCY_HOURLY', 'hourly'); |
|
| 40 | +define('FREQUENCY_DAILY', 'daily'); |
|
| 41 | +define('FREQUENCY_WEEKLY', 'weekly'); |
|
| 42 | +define('FREQUENCY_MONTHLY', 'monthly'); |
|
| 43 | +define('FREQUENCY_YEARLY', 'yearly'); |
|
| 44 | +define('FREQUENCY_NEVER', 'never'); |
|
| 45 | 45 | |
| 46 | 46 | # Rank |
| 47 | 47 | |
| 48 | -define('RANK_GUEST', 0); |
|
| 49 | -define('RANK_USER', 1); |
|
| 50 | -define('RANK_ADMINISTRATOR', 2); |
|
| 48 | +define('RANK_GUEST', 0); |
|
| 49 | +define('RANK_USER', 1); |
|
| 50 | +define('RANK_ADMINISTRATOR', 2); |
|
| 51 | 51 | |
| 52 | 52 | # Sex |
| 53 | 53 | |
| 54 | -define('SEX_NOT_SELECTED', 0); |
|
| 55 | -define('SEX_MALE', 1); |
|
| 56 | -define('SEX_FEMALE', 2); |
|
| 54 | +define('SEX_NOT_SELECTED', 0); |
|
| 55 | +define('SEX_MALE', 1); |
|
| 56 | +define('SEX_FEMALE', 2); |
|
| 57 | 57 | |
| 58 | 58 | # Status |
| 59 | 59 | |
| 60 | -define('STATUS_ONLINE', 0); |
|
| 61 | -define('STATUS_MAINTENANCE', 1); |
|
| 62 | -define('STATUS_UPDATE', 2); |
|
| 60 | +define('STATUS_ONLINE', 0); |
|
| 61 | +define('STATUS_MAINTENANCE', 1); |
|
| 62 | +define('STATUS_UPDATE', 2); |
|
| 63 | 63 | |
| 64 | 64 | # Target |
| 65 | 65 | |
| 66 | -define('TARGET_SELF', 0); |
|
| 67 | -define('TARGET_BLANK', 1); |
|
| 66 | +define('TARGET_SELF', 0); |
|
| 67 | +define('TARGET_BLANK', 1); |
|
| 68 | 68 | |
| 69 | 69 | # Visibility |
| 70 | 70 | |
| 71 | -define('VISIBILITY_DRAFT', 0); |
|
| 72 | -define('VISIBILITY_PUBLISHED', 1); |
|
| 71 | +define('VISIBILITY_DRAFT', 0); |
|
| 72 | +define('VISIBILITY_PUBLISHED', 1); |
|
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Filemanager\Common\Addons; |
| 17 | 17 | |
| 18 | - protected $path_full = (DIR_SYSTEM_CLASSES . 'Addons/'); |
|
| 18 | + protected $path_full = (DIR_SYSTEM_CLASSES.'Addons/'); |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Filemanager\Common\Templates; |
| 17 | 17 | |
| 18 | - protected $path_full = (DIR_SYSTEM_TEMPLATES . SECTION_SITE . '/'); |
|
| 18 | + protected $path_full = (DIR_SYSTEM_TEMPLATES.SECTION_SITE.'/'); |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | # Set link |
| 30 | 30 | |
| 31 | - $query = (('' !== $this->parent->getPath()) ? ('?parent=' . $this->parent->getPath()) : ''); |
|
| 31 | + $query = (('' !== $this->parent->getPath()) ? ('?parent='.$this->parent->getPath()) : ''); |
|
| 32 | 32 | |
| 33 | - $bar->link = (INSTALL_PATH . '/admin/content/filemanager' . $query); |
|
| 33 | + $bar->link = (INSTALL_PATH.'/admin/content/filemanager'.$query); |
|
| 34 | 34 | |
| 35 | 35 | # Implement form |
| 36 | 36 | |
@@ -45,9 +45,9 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | private function getPaginationBlock() { |
| 47 | 47 | |
| 48 | - $query = (('' !== $this->parent->getPath()) ? ('?parent=' . $this->parent->getPath()) : ''); |
|
| 48 | + $query = (('' !== $this->parent->getPath()) ? ('?parent='.$this->parent->getPath()) : ''); |
|
| 49 | 49 | |
| 50 | - $url = new Url(INSTALL_PATH . '/admin/content/filemanager' . $query); |
|
| 50 | + $url = new Url(INSTALL_PATH.'/admin/content/filemanager'.$query); |
|
| 51 | 51 | |
| 52 | 52 | # ------------------------ |
| 53 | 53 | |
@@ -148,9 +148,9 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | if (isset($submitted)) { |
| 150 | 150 | |
| 151 | - Request::redirect(INSTALL_PATH . '/admin/content/filemanager/' . static::$origin . '?' . (('' !== |
|
| 151 | + Request::redirect(INSTALL_PATH.'/admin/content/filemanager/'.static::$origin.'?'.(('' !== |
|
| 152 | 152 | |
| 153 | - ($parent = $this->parent->getPath())) ? ('parent=' . $parent . '&') : '') . 'submitted=' . $submitted); |
|
| 153 | + ($parent = $this->parent->getPath())) ? ('parent='.$parent.'&') : '').'submitted='.$submitted); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | # Display success message |
@@ -25,9 +25,9 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | $name = $entity->getName(); $path = $entity->getPath(); |
| 27 | 27 | |
| 28 | - $query = ('?parent=' . $parent->getPath() . '&name=' . $name); |
|
| 28 | + $query = ('?parent='.$parent->getPath().'&name='.$name); |
|
| 29 | 29 | |
| 30 | - $link = (INSTALL_PATH . '/admin/content/filemanager/' . $parent->getOrigin() . '/dir' . $query); |
|
| 30 | + $link = (INSTALL_PATH.'/admin/content/filemanager/'.$parent->getOrigin().'/dir'.$query); |
|
| 31 | 31 | |
| 32 | 32 | # Set data |
| 33 | 33 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | # Set link |
| 37 | 37 | |
| 38 | - $view->link = (INSTALL_PATH . '/admin/content/filemanager/' . $parent->getOrigin() . '?parent=' . $path); |
|
| 38 | + $view->link = (INSTALL_PATH.'/admin/content/filemanager/'.$parent->getOrigin().'?parent='.$path); |
|
| 39 | 39 | |
| 40 | 40 | # Set buttons |
| 41 | 41 | |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | $format = Filemanager\Utils\Mime::getFormat($entity->getExtension()); |
| 31 | 31 | |
| 32 | - $query = ('?parent=' . $parent->getPath() . '&name=' . $name); |
|
| 32 | + $query = ('?parent='.$parent->getPath().'&name='.$name); |
|
| 33 | 33 | |
| 34 | - $link = (INSTALL_PATH . '/admin/content/filemanager/' . $parent->getOrigin() . '/file' . $query); |
|
| 34 | + $link = (INSTALL_PATH.'/admin/content/filemanager/'.$parent->getOrigin().'/file'.$query); |
|
| 35 | 35 | |
| 36 | 36 | # Set data |
| 37 | 37 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | # Set link |
| 41 | 41 | |
| 42 | - $view->link = ($permissions['browse'] ? (INSTALL_PATH . '/uploads/' . $path) : $link); |
|
| 42 | + $view->link = ($permissions['browse'] ? (INSTALL_PATH.'/uploads/'.$path) : $link); |
|
| 43 | 43 | |
| 44 | 44 | $view->target = ($permissions['browse'] ? '_blank' : '_self'); |
| 45 | 45 | |
@@ -118,9 +118,9 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | if (!$this->entity->isInited()) { |
| 120 | 120 | |
| 121 | - $query = (('' !== $this->parent->getPath()) ? ('?parent=' . $this->parent->getPath()) : ''); |
|
| 121 | + $query = (('' !== $this->parent->getPath()) ? ('?parent='.$this->parent->getPath()) : ''); |
|
| 122 | 122 | |
| 123 | - Request::redirect(INSTALL_PATH . '/admin/content/filemanager/' . static::$origin . '/' . $query); |
|
| 123 | + Request::redirect(INSTALL_PATH.'/admin/content/filemanager/'.static::$origin.'/'.$query); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | # Create rename form |
@@ -142,9 +142,9 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | foreach ($this->forms as $name => $form) if ($form->handle($this->controllers[$name], true)) { |
| 144 | 144 | |
| 145 | - Request::redirect(INSTALL_PATH . '/admin/content/filemanager/' . static::$origin . '/' . static::$type . |
|
| 145 | + Request::redirect(INSTALL_PATH.'/admin/content/filemanager/'.static::$origin.'/'.static::$type. |
|
| 146 | 146 | |
| 147 | - '?parent=' . $this->parent->getPath() . '&name=' . $this->entity->getName() . '&submitted=' . $name); |
|
| 147 | + '?parent='.$this->parent->getPath().'&name='.$this->entity->getName().'&submitted='.$name); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | # Display success message |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | |
| 28 | 28 | if ($this->parent->isIgnoreHidden() && preg_match('/^\./', $name)) return false; |
| 29 | 29 | |
| 30 | - $path = (($this->parent->getPath() ? ($this->parent->getPath() . '/') : '') . $name); |
|
| 30 | + $path = (($this->parent->getPath() ? ($this->parent->getPath().'/') : '').$name); |
|
| 31 | 31 | |
| 32 | - $path_full = ($this->parent->getPathFull() . $name); |
|
| 32 | + $path_full = ($this->parent->getPathFull().$name); |
|
| 33 | 33 | |
| 34 | 34 | # ------------------------ |
| 35 | 35 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | $scheme = array_diff(preg_split('/[\/\\\\]+/', $path, -1, PREG_SPLIT_NO_EMPTY), ['.', '..']); |
| 27 | 27 | |
| 28 | - $path_full = ($this->path_full . (('' !== ($path = implode('/', $scheme))) ? ($path . '/') : '')); |
|
| 28 | + $path_full = ($this->path_full.(('' !== ($path = implode('/', $scheme))) ? ($path.'/') : '')); |
|
| 29 | 29 | |
| 30 | 30 | if (!Explorer::isDir($path_full)) return; |
| 31 | 31 | |