コード例 #1
0
 public function displayList()
 {
     global $cookie, $currentIndex;
     $warnings = array();
     if (!file_exists(_PS_ROOT_DIR_ . '/.htaccess')) {
         $warnings[] = $this->l('In order to enable the PrestaShop Webservice, please generate the .htaccess file via the "Generators" tab (in the "Tools" tab).');
     }
     if (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') === false) {
         $warnings[] = $this->l('To avoid operating problems, please use an Apache server.');
     }
     if (function_exists('apache_get_modules')) {
         $apache_modules = apache_get_modules();
         if (!in_array('mod_auth_basic', $apache_modules)) {
             $warnings[] = $this->l('Please activate the Apache module \'mod_auth_basic\' to allow authentication of PrestaShop webservice.');
         }
         if (!in_array('mod_rewrite', $apache_modules)) {
             $warnings[] = $this->l('Please activate the Apache module \'mod_rewrite\' to allow using the PrestaShop webservice.');
         }
     } else {
         $warnings[] = $this->l('We could not check if basic authentication and rewrite extensions are activated. Please manually check if they are activated in order to use the PrestaShop webservice.');
     }
     if (!extension_loaded('SimpleXML')) {
         $warnings[] = $this->l('Please activate the PHP extension \'SimpleXML\' to allow testing of PrestaShop webservice.');
     }
     if (!_PS_SSL_ENABLED_) {
         $warnings[] = $this->l('If possible, it is preferable to use SSL (https) for webservice calls, as it avoids the security issues of type "man in the middle".');
     }
     $this->displayWarning($warnings);
     foreach ($this->_list as $k => $item) {
         if ($item['is_module'] && $item['class_name'] && $item['module_name'] && ($instance = Module::getInstanceByName($item['module_name'])) && !$instance->useNormalPermissionBehaviour()) {
             unset($this->_list[$k]);
         }
     }
     parent::displayList();
 }
コード例 #2
0
 public function displayList()
 {
     parent::displayList();
     $this->displayImagePreferences();
     $this->displayRegenerate();
     $this->displayMoveImages();
 }
コード例 #3
0
    public function displayList()
    {
        global $cookie, $currentIndex;
        parent::displayList();
        $tabs = Tab::getTabs(intval($cookie->id_lang), 0);
        echo '<br /><h2>' . $this->l('Positions') . '</h2>
		<h3>' . $this->l('Level') . ' 1</h3>';
        $this->_posTabs($this->l('Main'), $tabs);
        echo '<h3>' . $this->l('Level') . ' 2</h3>';
        foreach ($tabs as $t) {
            $this->_posTabs(stripslashes($t['name']), Tab::getTabs(intval($cookie->id_lang), $t['id_tab']));
        }
    }
コード例 #4
0
ファイル: AdminImages.php プロジェクト: sealence/local
 public function displayList()
 {
     parent::displayList();
     $this->displayRegenerate();
 }
コード例 #5
0
 public function displayList()
 {
     $this->displayWarning($this->l('Cookies are different on each subdomain of your Website. If you want to use the same cookie, please add here the subdomains used by your shop. The most common is "www".'));
     return parent::displayList();
 }
コード例 #6
0
 public function displayList()
 {
     global $currentIndex;
     // Test if the backup dir is writable
     if (!is_writable(PS_ADMIN_DIR . '/backups/')) {
         $this->displayWarning($this->l('dir backups on admin dir must be writable (CHMOD 777)'));
     }
     $this->displayErrors();
     echo '<br /><a href="' . $currentIndex . '&add' . $this->table . '&token=' . $this->token . '"><img src="../img/admin/add.gif" border="0" /> ' . $this->l('Create new back-up') . '</a><br /><br />';
     parent::displayList();
 }
コード例 #7
0
 public function displayList()
 {
     global $currentIndex;
     $this->displayWarning($this->l('When you delete a language, all related translations in the database will be deleted.'));
     parent::displayList();
     $languages = Language::getLanguages(false);
 }
コード例 #8
0
 public function displayList()
 {
     echo '<fieldset>' . $this->l('Cookies are different on each subdomain of your Website. If you want to use the same cookie, please add here the subdomains used by your shop. The most common is "www".') . '</fieldset>';
     return parent::displayList();
 }
コード例 #9
0
 public function displayList()
 {
     global $currentIndex;
     // Test if the backup dir is writable
     if (!is_writable(PS_ADMIN_DIR . '/backups/')) {
         $this->displayWarning($this->l('"Backups" Directory in admin directory must be writeable (CHMOD 755 / 777)'));
     }
     $this->displayErrors();
     $this->displayHowTo();
     parent::displayList();
 }
コード例 #10
0
ファイル: AdminBackup.php プロジェクト: sealence/local
 public function displayList()
 {
     global $currentIndex;
     $this->displayErrors();
     echo '<br /><a href="' . $currentIndex . '&add' . $this->table . '&token=' . $this->token . '"><img src="../img/admin/add.gif" border="0" /> ' . $this->l('Create new back-up') . '</a><br /><br />';
     parent::displayList();
 }