• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP valid_folder函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中valid_folder函数的典型用法代码示例。如果您正苦于以下问题:PHP valid_folder函数的具体用法?PHP valid_folder怎么用?PHP valid_folder使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了valid_folder函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: generateMenuStructure

 private function generateMenuStructure()
 {
     $export_array[] = "----";
     // Search for plugins and make sure they are registered
     $raidexport_folder = $this->root_path . 'core/calendarexport/';
     if ($dir = opendir($raidexport_folder)) {
         while ($d_plugin_code = @readdir($dir)) {
             $cwd = $raidexport_folder . $d_plugin_code;
             // regenerate the link to the 'plugin'
             if (@is_file($cwd) && valid_folder($d_plugin_code)) {
                 // check if valid
                 include $cwd;
                 $export_array[$rpexport_plugin[$d_plugin_code]['function']] = $rpexport_plugin[$d_plugin_code]['name'];
                 // add to array
             }
         }
     }
     // search for game export plugins
     $raidexport_game = $this->root_path . 'games/' . $this->game->get_game() . '/raidexport/';
     if (is_dir($raidexport_game) && ($dir = opendir($raidexport_game))) {
         while ($d_plugin_code = @readdir($dir)) {
             $cwd = $raidexport_game . $d_plugin_code;
             // regenerate the link to the 'plugin'
             if (@is_file($cwd) && valid_folder($d_plugin_code)) {
                 // check if valid
                 include $cwd;
                 $export_array[$rpexport_plugin[$d_plugin_code]['function']] = $rpexport_plugin[$d_plugin_code]['name'];
                 // add to array
             }
         }
     }
     return $export_array;
 }
开发者ID:rswiders,项目名称:core,代码行数:33,代码来源:calendareventexport_pageobject.class.php


示例2: run

 public function run()
 {
     if ($dir = @opendir($this->pfh->FolderPath('imageupload', 'eqdkp'))) {
         while ($file = @readdir($dir)) {
             if (is_file($this->pfh->FolderPath('imageupload', 'eqdkp') . $file) && valid_folder($file) && substr($file, 10, 2) == '__') {
                 $this->pfh->Delete('imageupload/' . $file, 'eqdkp');
             }
         }
     }
 }
开发者ID:ubick,项目名称:lorekeepers.org,代码行数:10,代码来源:remove_uploadedimages_crontask.class.php


示例3: scanGlobalHookFolder

 private function scanGlobalHookFolder()
 {
     if ($dir = @opendir($this->root_path . 'core/hooks/')) {
         while ($file = @readdir($dir)) {
             if (is_file($this->root_path . 'core/hooks/' . $file) && valid_folder($file)) {
                 $path_parts = pathinfo($file);
                 $filename = str_replace("_hook", "", $path_parts['filename']);
                 $filename = str_replace(".class", "", $filename);
                 $strHook = substr($filename, strrpos($filename, '_') + 1);
                 $strClassname = str_replace(".class", "", $path_parts['filename']);
                 $strMethodname = $strHook;
                 $strClasspath = 'core/hooks';
                 $this->register($strHook, $strClassname, $strMethodname, $strClasspath);
             }
         }
     }
 }
开发者ID:ubick,项目名称:lorekeepers.org,代码行数:17,代码来源:hooks.class.php


示例4: myScandir

function myScandir(&$parentDir, $actual_dir)
{
    global $pfh;
    $scanDir = scandir($actual_dir);
    for ($i = 0; $i < count($scanDir); $i++) {
        if (!valid_folder($scanDir[$i]) || $scanDir[$i] == "thumbs") {
            continue;
        }
        if (is_file($actual_dir . '/' . $scanDir[$i])) {
        } elseif (is_dir($actual_dir . '/' . $scanDir[$i])) {
            $dir = $scanDir[$i];
            $parentDir[$dir] = str_replace($pfh->FolderPath('system', 'files'), "system", "{$actual_dir}*+*+*{$dir}");
            myScandir($parentDir, "{$actual_dir}/{$dir}");
        }
    }
    return true;
}
开发者ID:rswiders,项目名称:core,代码行数:17,代码来源:get_folder.php


示例5: generateMenuStructure

 private function generateMenuStructure()
 {
     $export_array[] = "----";
     // Search for plugins and make sure they are registered
     if ($dir = opendir($this->root_path . 'calendar/raidexport/plugins/')) {
         while ($d_plugin_code = @readdir($dir)) {
             $cwd = $this->root_path . 'calendar/raidexport/plugins/' . $d_plugin_code;
             // regenerate the link to the 'plugin'
             if (@is_file($cwd) && valid_folder($d_plugin_code)) {
                 // check if valid
                 include $cwd;
                 $export_array[$rpexport_plugin[$d_plugin_code]['function']] = $rpexport_plugin[$d_plugin_code]['name'];
                 // add to array
             }
         }
     }
     return $export_array;
 }
开发者ID:ubick,项目名称:lorekeepers.org,代码行数:18,代码来源:exports.php


示例6: deleteWatermarkImages

 private function deleteWatermarkImages()
 {
     $strThumbfolder = $this->pfh->FolderPath('thumbs', 'mediacenter');
     $arrFiles = scandir($strThumbfolder);
     foreach ($arrFiles as $strFile) {
         if (valid_folder($strFile)) {
             if (strpos($strFile, 'wm_') === 0) {
                 $this->pfh->Delete($strThumbfolder . $strFile);
             }
         }
     }
 }
开发者ID:ZerGabriel,项目名称:plugin-mediacenter,代码行数:12,代码来源:settings.php


示例7: file_tree

 private function file_tree($folder, $first_call = true)
 {
     if (!is_array($this->value)) {
         $this->value = array($this->value);
     }
     // Get and sort directories/files
     $file = scandir($folder);
     natcasesort($file);
     // Make directories first
     $files = $dirs = array();
     foreach ($file as $this_file) {
         if (is_dir("{$folder}/{$this_file}")) {
             $dirs[] = $this_file;
         } elseif (!$this->dirsOnly && valid_folder($this_file)) {
             $files[] = $this_file;
         }
     }
     $file = array_merge($dirs, $files);
     // Filter unwanted extensions
     if (!empty($this->extensions)) {
         foreach (array_keys($file) as $key) {
             if (!is_dir("{$folder}/{$file[$key]}")) {
                 $ext = substr($file[$key], strrpos($file[$key], ".") + 1);
                 if (!in_array($ext, $this->extensions)) {
                     unset($file[$key]);
                 }
             }
         }
     }
     $dd_data = array();
     if (count($file) > 2) {
         // Use 2 instead of 0 to account for . and .. "directories"
         $php_file_tree = "<ul";
         //if( $first_call ) { $php_file_tree .= " class=\"file-tree-".$this->name."\""; $first_call = false; }
         $php_file_tree .= ">";
         foreach ($file as $this_file) {
             if ($this_file != "." && $this_file != "..") {
                 if (is_dir("{$folder}/{$this_file}")) {
                     // Directory
                     $php_file_tree .= "<li class=\"pft-directory\"><i class=\"fa fa-lg fa-folder-o\"></i> " . ($this->inputBoxFormat == "checkbox" ? "<input type=\"checkbox\" name=\"" . $this->name . "[]\" value=\"" . str_replace("//", "/", $folder . "/" . $this_file) . "\"> " : '') . "<a href=\"javascript:void(0);\">" . sanitize($this_file) . "</a>";
                     $php_file_tree .= $this->file_tree("{$folder}/{$this_file}", false);
                     $php_file_tree .= "</li>";
                     $dd_data["{$folder}/{$this_file}"] = $this_file;
                     $bla = $this->file_tree(str_replace("//", "/", $folder . "/" . $this_file), false);
                     if (is_array($bla)) {
                         foreach ($bla as $key => $value) {
                             $dd_data[$key] = '&nbsp;&nbsp;&nbsp;' . $value;
                         }
                     }
                     $i++;
                 } else {
                     // File
                     // Get extension (prepend 'ext-' to prevent invalid classes from extensions that begin with numbers)
                     $ext = "ext-" . substr($this_file, strrpos($this_file, ".") + 1);
                     $link = str_replace("[link]", "{$folder}/" . urlencode($this_file), $return_link);
                     $php_file_tree .= "<li class=\"pft-file " . strtolower($ext) . "\">" . ($this->inputBoxFormat == "checkbox" ? '<input type="checkbox" name="' . $this->name . '[]" value="' . str_replace("//", "/", $folder . "/" . $this_file) . '"> ' : '') . (true ? "<input type=\"radio\" name=\"" . $this->name . "\" value=\"" . str_replace("//", "/", $folder . "/" . $this_file) . "\"" . (in_array(str_replace("//", "/", $folder . "/" . $this_file), $this->value) ? ' checked="checked"' : '') . "> " : '') . "<a>" . sanitize($this_file) . "</a></li>";
                 }
             }
         }
         $php_file_tree .= "</ul>";
     }
     return $php_file_tree;
 }
开发者ID:rswiders,项目名称:core,代码行数:63,代码来源:hfiletree.class.php


示例8: get_all_modules

 public function get_all_modules()
 {
     $this->pdh->process_hook_queue();
     $modules = $this->pdh->aget('portal', 'path', 0, array($this->pdh->get('portal', 'id_list')));
     foreach ($modules as $id => $path) {
         if (!$this->get_module($path, $this->pdh->get('portal', 'plugin', array($id)))) {
             continue;
         }
         $this->check_update($id, $path);
     }
     //EQDKP PORTAL MODULES
     // Search for portal-modules and make sure they are registered
     if ($dir = @opendir($this->root_path . 'portal/')) {
         while ($d_plugin_code = @readdir($dir)) {
             $cwd = $this->root_path . 'portal/' . $d_plugin_code;
             if (valid_folder($cwd)) {
                 if (in_array($d_plugin_code, $modules)) {
                     continue;
                 } else {
                     $this->install($d_plugin_code);
                 }
             }
             unset($d_plugin_code, $cwd);
         }
         // readdir
     }
     // EQDKP PLUGIN PORTAL MODULES
     foreach ($this->pm->get_plugins() as $plugin_code) {
         $plug_modules = $this->pm->get_plugin($plugin_code)->get_portal_modules();
         foreach ($plug_modules as $module_name) {
             if (!in_array($module_name, $modules)) {
                 $this->install($module_name, $plugin_code);
             }
         }
     }
     $this->pdh->process_hook_queue();
     return $this->objs;
 }
开发者ID:ubick,项目名称:lorekeepers.org,代码行数:38,代码来源:portal.class.php


示例9: display_form

 public function display_form()
 {
     if ((int) $this->config->get('cmsbridge_active') == 1 && strlen($this->config->get('cmsbridge_reg_url'))) {
         redirect($this->config->get('cmsbridge_reg_url'), false, true);
     }
     //Captcha
     if ($this->config->get('enable_captcha') == 1) {
         require $this->root_path . 'libraries/recaptcha/recaptcha.class.php';
         $captcha = new recaptcha();
         $this->tpl->assign_vars(array('CAPTCHA' => $captcha->get_html($this->config->get('lib_recaptcha_okey')), 'S_DISPLAY_CATPCHA' => true));
     }
     $language_array = array();
     if ($dir = @opendir($this->root_path . 'language/')) {
         while ($file = @readdir($dir)) {
             if (!is_file($this->root_path . 'language/' . $file) && !is_link($this->root_path . 'language/' . $file) && valid_folder($file)) {
                 $language_array[$file] = ucfirst($file);
             }
         }
     }
     //User Profilefields
     $arrUserProfileFields = $this->pdh->get('user_profilefields', 'registration_fields');
     if (count($arrUserProfileFields)) {
         $form = register('form', array('register'));
         $form->validate = true;
         $form->add_fields($arrUserProfileFields);
         $form->output($this->userProfileData);
     }
     $this->tpl->assign_vars(array('S_CURRENT_PASSWORD' => false, 'S_NEW_PASSWORD' => false, 'S_SETTING_ADMIN' => false, 'S_MU_TABLE' => false, 'S_PROFILEFIELDS' => count($arrUserProfileFields) ? true : false, 'VALID_EMAIL_INFO' => $this->config->get('account_activation') == 1 ? '<br />' . $this->user->lang('valid_email_note') : '', 'AUTH_REGISTER_BUTTON' => ($arrRegisterButtons = $this->user->handle_login_functions('register_button')) ? implode(' ', $arrRegisterButtons) : '', 'REGISTER' => true, 'DD_LANGUAGE' => new hdropdown('user_lang', array('options' => $language_array, 'value' => $this->data['user_lang'])), 'DD_TIMEZONES' => new hdropdown('user_timezone', array('options' => $this->time->timezones, 'value' => $this->data['user_timezone'])), 'HIDDEN_FIELDS' => isset($this->data['auth_account']) ? new hhidden('lmethod', array('value' => $this->in->get('lmethod'))) . new hhidden('auth_account', array('value' => $this->crypt->encrypt($this->data['auth_account']))) : '', 'USERNAME' => $this->data['username'], 'USER_EMAIL' => $this->data['user_email'], 'USER_EMAIL2' => $this->data['user_email2']));
     $this->core->set_vars(array('page_title' => $this->user->lang('register_title'), 'template_file' => 'register.html', 'display' => true));
 }
开发者ID:rswiders,项目名称:core,代码行数:30,代码来源:register_pageobject.class.php


示例10: get_available_bridges

 public function get_available_bridges()
 {
     $bridges = array();
     // Build auth array
     if ($dir = @opendir($this->root_path . 'core/bridges/')) {
         while ($file = @readdir($dir)) {
             if (is_file($this->root_path . 'core/bridges/' . $file) && valid_folder($file)) {
                 include_once $this->root_path . 'core/bridges/' . $file;
                 $name = substr($file, 0, strpos($file, '.'));
                 $classname = $name . '_bridge';
                 $class = registry::register($classname);
                 $bridges[$name] = isset($class->name) ? $class->name : $name;
                 unset($class);
             }
         }
     }
     return $bridges;
 }
开发者ID:ubick,项目名称:lorekeepers.org,代码行数:18,代码来源:bridge_generic.class.php


示例11: display_form

 public function display_form()
 {
     if ((int) $this->config->get('cmsbridge_reg_redirect') == 1 && (int) $this->config->get('cmsbridge_active') == 1) {
         if (strlen($this->config->get('cmsbridge_reg_url')) > 1) {
             redirect($this->config->get('cmsbridge_reg_url'), false, true);
         } else {
             redirect('index.php');
         }
     }
     //Captcha
     if ($this->config->get('pk_enable_captcha') == 1) {
         require $this->root_path . 'libraries/recaptcha/recaptcha.class.php';
         $captcha = new recaptcha();
         $this->tpl->assign_vars(array('CAPTCHA' => $captcha->recaptcha_get_html($this->config->get('lib_recaptcha_okey')), 'S_DISPLAY_CATPCHA' => true));
     }
     $language_array = array();
     if ($dir = @opendir($this->root_path . 'language/')) {
         while ($file = @readdir($dir)) {
             if (!is_file($this->root_path . 'language/' . $file) && !is_link($this->root_path . 'language/' . $file) && valid_folder($file)) {
                 $language_array[$file] = ucfirst($file);
             }
         }
     }
     $this->tpl->assign_vars(array('S_CURRENT_PASSWORD' => false, 'S_NEW_PASSWORD' => false, 'S_SETTING_ADMIN' => false, 'S_MU_TABLE' => false, 'VALID_EMAIL_INFO' => $this->config->get('account_activation') == 1 ? '<br />' . $this->user->lang('valid_email_note') : '', 'AUTH_REGISTER_BUTTON' => ($arrRegisterButtons = $this->user->handle_login_functions('register_button')) ? implode(' ', $arrRegisterButtons) : '', 'REGISTER' => true, 'DD_LANGUAGE' => $this->html->DropDown('user_lang', $language_array, $this->data['user_lang']), 'DD_TIMEZONES' => $this->html->DropDown('user_timezone', $this->time->timezones, $this->data['user_timezone']), 'HIDDEN_FIELDS' => isset($this->data['auth_account']) ? $this->html->TextField('lmethod', '', $this->in->get('lmethod'), 'hidden') . $this->html->TextField('auth_account', '', $this->crypt->encrypt($this->data['auth_account']), 'hidden') : '', 'USERNAME' => $this->data['username'], 'USER_EMAIL' => $this->data['user_email'], 'USER_EMAIL2' => $this->data['user_email2']));
     $this->core->set_vars(array('page_title' => $this->user->lang('register_title'), 'template_file' => 'register.html', 'display' => true));
 }
开发者ID:ubick,项目名称:lorekeepers.org,代码行数:26,代码来源:register.php


示例12: scan_backgrounds

 public function scan_backgrounds()
 {
     $arrOut = array();
     $strFolder = $this->root_path . 'plugins/siggenerator/includes/backgrounds/';
     $arrFiles = scandir($strFolder);
     $arrExtensions = array('jpg', 'gif', 'png');
     foreach ($arrFiles as $filename) {
         if (valid_folder($filename)) {
             $strExtension = pathinfo($filename, PATHINFO_EXTENSION);
             if (in_array($strExtension, $arrExtensions)) {
                 $arrOut[str_replace($this->root_path, '', $strFolder . $filename)] = $filename;
             }
         }
     }
     $strFolder = $this->pfh->FolderPath('backgrounds', 'signatures');
     $arrFiles = scandir($strFolder);
     $arrExtensions = array('jpg', 'gif', 'png');
     foreach ($arrFiles as $filename) {
         if (valid_folder($filename)) {
             $strExtension = pathinfo($filename, PATHINFO_EXTENSION);
             if (in_array($strExtension, $arrExtensions)) {
                 $arrOut[str_replace($this->root_path, '', $strFolder . $filename)] = $filename;
             }
         }
     }
     return $arrOut;
 }
开发者ID:ZerGabriel,项目名称:plugin-siggenerator,代码行数:27,代码来源:signature.class.php


示例13: save

 public function save()
 {
     $strFileFolder = $this->pfh->FolderPath('files', 'mediacenter');
     $finfo = new finfo(FILEINFO_MIME_TYPE);
     $arrFiles = scandir($strFileFolder);
     $arrLocalFilenames = $this->pdh->aget('mediacenter_media', 'localfile', 0, array($this->pdh->get('mediacenter_media', 'id_list', array())));
     $intAlbumID = $this->in->get('album');
     if (substr($intAlbumID, 0, 1) == 'c') {
         $intCategoryID = (int) substr($intAlbumID, 1);
         $intAlbumID = 0;
     } else {
         $intCategoryID = $this->pdh->get('mediacenter_albums', 'category_id', array($intAlbumID));
         $intAlbumID = intval($intAlbumID);
     }
     $arrTypes = $this->pdh->get('mediacenter_categories', 'types', array($intCategoryID));
     if (!$intCategoryID || !$arrTypes || count($arrTypes) == 0) {
         return false;
     }
     foreach ($arrFiles as $strFile) {
         if (valid_folder($strFile)) {
             if (in_array($strFile, $arrLocalFilenames)) {
                 continue;
             }
             $strMime = $finfo->file($strFileFolder . $strFile);
             $strName = $strFile;
             if (strpos($strMime, 'image/') === 0) {
                 $intType = 2;
             } elseif (strpos($strMime, 'video/') === 0) {
                 $intType = 1;
             } else {
                 $intType = 0;
             }
             //If Type is not allowed, make type file
             if (!in_array($intType, $arrTypes)) {
                 $intType = 0;
                 //File
             }
             //Try to find an image extension
             $strExtension = strtolower(pathinfo($strFile, PATHINFO_EXTENSION));
             if (!$strExtension || $strExtension == "") {
                 $strExtension = $this->mimetype_to_extension($strMime);
             }
             //If type file now allowed: wrong type
             if (!in_array($intType, $arrTypes)) {
                 $arrError[$strFile] = "filetype_not_allowed";
                 $this->tpl->assign_block_vars('mc_media_row', array('ICON' => $this->core->icon_font('fa-times'), 'NAME' => $strFile, 'STATUS' => "filetype_not_allowed", 'EXTENSION' => $strExtension));
                 continue;
             }
             $arrAdditionalData = array();
             $strLocalfile = $strFile;
             $strFileFolder = $this->pfh->FolderPath('files', 'mediacenter');
             if (file_exists($strFileFolder . $strLocalfile)) {
                 $arrAdditionalData['size'] = filesize($strFileFolder . $strLocalfile);
             }
             $strLocalPreviewImage = "";
             $strThumbfolder = $this->pfh->FolderPath('thumbs', 'mediacenter');
             if ($intType == 2 || $oldType == 2) {
                 //Preview Image
                 $filename = md5(rand() . unique_id());
                 $this->pfh->copy($strFileFolder . $strLocalfile, $strThumbfolder . $filename . '.' . $strExtension);
                 $this->pfh->thumbnail($strThumbfolder . $filename . '.' . $strExtension, $strThumbfolder, $filename . '.64.' . $strExtension, 64);
                 $this->pfh->thumbnail($strThumbfolder . $filename . '.' . $strExtension, $strThumbfolder, $filename . '.240.' . $strExtension, 240);
                 $strLocalPreviewImage = $filename . '.' . $strExtension;
             }
             if ($intType == 2) {
                 //Exif Data
                 if ($strExtension == 'jpg') {
                     $arrExif = $this->exif_data($strFileFolder . $strLocalfile);
                     if ($arrExif) {
                         $arrAdditionalData = array_merge($arrAdditionalData, $arrExif);
                     }
                 }
             }
             //Default Publish State
             $blnDefaultPublishState = $this->pdh->get('mediacenter_categories', 'default_published_state', array($intCategoryID));
             $intPublished = $this->user->check_auth('a_mediacenter_manage', false) ? 1 : $blnDefaultPublishState;
             if ($strExtension != "") {
                 $strFilename = $strFile . '.' . $strExtension;
             } else {
                 $strFilename = $strFile;
             }
             $arrQuery = array('album_id' => $intAlbumID, 'category_id' => $intCategoryID, 'name' => $strName, 'description' => "", 'type' => $intType, 'tags' => serialize(array()), 'filename' => $strFilename, 'localfile' => $strLocalfile, 'externalfile' => "", 'previewimage' => $strLocalPreviewImage, 'published' => $intPublished, 'additionaldata' => serialize($arrAdditionalData), 'date' => $this->time->time, 'user_id' => $this->user->id);
             $objQuery = $this->db->prepare("INSERT INTO __mediacenter_media :p")->set($arrQuery)->execute();
             if ($objQuery) {
                 $id = $objQuery->insertId;
                 $arrSucces[] = $strFile;
                 $this->tpl->assign_block_vars('mc_media_row', array('ICON' => $this->core->icon_font('fa-check'), 'NAME' => $strFile, 'STATUS' => "OK", 'EXTENSION' => $strExtension));
             }
         }
     }
     $this->pdh->enqueue_hook('mediacenter_media_update');
     $this->pdh->enqueue_hook('mediacenter_categories_update');
     $this->pdh->process_hook_queue();
     $this->display(false);
 }
开发者ID:ZerGabriel,项目名称:plugin-mediacenter,代码行数:95,代码来源:index_files.php


示例14: display

 public function display()
 {
     // Build the default game array
     $games = array();
     foreach ($this->game->get_games() as $sgame) {
         $games[$sgame] = $this->game->game_name($sgame);
     }
     // ---------------------------------------------------------
     // Build the Dropdown Arrays
     // ---------------------------------------------------------
     $newsloot_limit = array('all' => 0, '5' => 5, '10' => 10, '15' => 15, '20' => 20);
     $a_startday = array('sunday' => $this->user->lang(array('time_daynames', 6)), 'monday' => $this->user->lang(array('time_daynames', 0)));
     $a_calraid_status = array(0 => $this->user->lang(array('raidevent_raid_status', 0)), 1 => $this->user->lang(array('raidevent_raid_status', 1)), 2 => $this->user->lang(array('raidevent_raid_status', 2)), 3 => $this->user->lang(array('raidevent_raid_status', 3)), 4 => $this->user->lang(array('raidevent_raid_status', 4)));
     $a_calraid_nsfilter = array('twinks' => 'raidevent_raid_nsf_twink', 'inactive' => 'raidevent_raid_nsf_inctv', 'hidden' => 'raidevent_raid_nsf_hiddn', 'special' => 'raidevent_raid_nsf_special');
     $a_debug_mode = array('0' => 'pk_set_debug_type0', '1' => 'pk_set_debug_type1', '2' => 'pk_set_debug_type2', '3' => 'pk_set_debug_type3');
     $a_modelviewer = array('0' => 'WoWHead', '1' => 'Thottbot', '2' => 'SpeedyDragon');
     $accact_array = array('0' => 'none', '1' => 'user', '2' => 'admin');
     $portal_positions = array('right' => 'portalplugin_right', 'middle' => 'portalplugin_middle', 'bottom' => 'portalplugin_bottom');
     $mail_array = array('mail' => 'lib_email_mail', 'sendmail' => 'lib_email_sendmail', 'smtp' => 'lib_email_smtp');
     $stmp_connection_methods = array('' => 'none', 'ssl' => 'SSL/TLS', 'tls' => 'STARTTLS');
     $a_calendar_addevmode = array('event' => 'calendar_mode_event', 'raid' => 'calendar_mode_raid');
     $a_groups = $this->pdh->aget('user_groups', 'name', 0, array($this->pdh->get('user_groups', 'id_list')));
     // Startpage
     $menus = $this->core->gen_menus();
     $pages = array_merge($menus['menu1'], $menus['menu2']);
     unset($menus);
     if (is_array($this->pdh->get('pages', 'startpage_list', array()))) {
         // Add Pages to startpage array
         $pages = array_merge_recursive($pages, $this->pdh->get('pages', 'startpage_list', array()));
     }
     foreach ($pages as $page) {
         $link = preg_replace('#\\?s\\=([0-9A-Za-z]{1,32})?#', '', $page['link']);
         $link = preg_replace('#\\.php&amp;#', '.php?', $link);
         $link = preg_replace('#\\.php&#', '.php?', $link);
         $text = isset($this->user->data['username']) ? str_replace($this->user->data['username'], $this->user->lang('username'), $page['text']) : $page['text'];
         if ($link != 'login.php?logout=true') {
             $startpage_array[$link] = $text;
         }
         unset($link, $text);
     }
     // Build language array
     if ($dir = @opendir($this->core->root_path . 'language/')) {
         while ($file = @readdir($dir)) {
             if (!is_file($this->core->root_path . 'language/' . $file) && !is_link($this->core->root_path . 'language/' . $file) && valid_folder($file)) {
                 include $this->core->root_path . 'language/' . $file . '/lang_main.php';
                 $lang_name_tp = $lang['ISO_LANG_NAME'] ? $lang['ISO_LANG_NAME'] . ' (' . $lang['ISO_LANG_SHORT'] . ')' : ucfirst($file);
                 $language_array[$file] = $lang_name_tp;
                 $locale_array[$lang['ISO_LANG_SHORT']] = $lang_name_tp;
             }
         }
     }
     //Social Plugins
     $arrSocialPlugins = $this->social->getSocialPlugins();
     $arrSocialFields = array();
     foreach ($arrSocialPlugins as $key => $value) {
         $arrSocialFields['sp_' . $key] = array('fieldtype' => 'checkbox', 'name' => 'sp_' . $key);
     }
     $arrSocialButtons = $this->social->getSocialButtons();
     foreach ($arrSocialButtons as $key => $value) {
         $arrSocialFields['sp_' . $key] = array('fieldtype' => 'checkbox', 'name' => 'sp_' . $key);
     }
     // ---------------------------------------------------------
     // Member Array
     // ---------------------------------------------------------
     $members = $this->pdh->aget('member', 'name', 0, array($this->pdh->get('member', 'id_list', array(false, false, false))));
     asort($members);
     // ---------------------------------------------------------
     // Portal position
     // ---------------------------------------------------------
     $selected_portal_pos = unserialize(stripslashes($this->config->get('pk_permanent_portal')));
     // ---------------------------------------------------------
     // Default email signature
     // ---------------------------------------------------------
     $signature = "--\n";
     $signature .= $this->user->lang('lib_signature_defaultval');
     $signature .= ' ' . $this->config->get('guildtag');
     $signature .= "\nEQdkp Plus: ";
     $signature .= $this->env->link;
     // Bit of jQuery..
     if ($this->game->get_importAuth('a_members_man', 'char_mupdate')) {
         $this->jquery->Dialog('MassUpdateChars', $this->user->lang('uc_import_adm_update'), array('url' => $this->game->get_importers('char_mupdate', true), 'width' => '600', 'height' => '450', 'onclose' => $this->env->link . 'admin/manage_settings.php'));
     }
     if ($this->game->get_importAuth('a_members_man', 'guild_import')) {
         $this->jquery->Dialog('GuildImport', $this->user->lang('uc_import_guild_wh'), array('url' => $this->game->get_importers('guild_import', true), 'width' => '600', 'height' => '450', 'onclose' => $this->env->link . 'admin/manage_settings.php'));
     }
     if (($this->game->get_importAuth('a_members_man', 'char_mupdate') || $this->game->get_importAuth('a_members_man', 'guild_import')) && $this->game->get_importers('import_data_cache')) {
         $this->jquery->Dialog('ClearImportCache', $this->user->lang('uc_importer_cache'), array('url' => $this->game->get_importers('import_reseturl', true), 'width' => '400', 'height' => '250', 'onclose' => $this->env->link . 'admin/manage_settings.php'));
     }
     $this->jquery->spinner('#inactive_period, #pk_round_precision, #inactive_period, #default_nlimit, #calendar_raid_classbreak, #calendar_addraid_deadline, #failed_logins_inactivity', array('multiselector' => true));
     $this->jquery->spinner('#default_alimit, #default_climit, #default_ilimit, #default_rlimit, #default_elimit, #calendar_addraid_duration, #calendar_repeat_crondays', array('step' => 10, 'multiselector' => true));
     $this->jquery->spinner('pk_newsloot_limit', array('step' => 10, 'max' => 25, 'steps' => 5, 'min' => 0));
     // ---------------------------------------------------------
     // Output to the page
     // ---------------------------------------------------------
     $this->jquery->Tab_header('plus_sett_tabs', true);
     $this->jquery->Dialog('template_preview', $this->user->lang('template_preview'), array('url' => $this->root_path . "viewnews.php" . $this->SID . "&amp;style='+ \$(\"select[name='user_style'] option:selected\").val()+'", 'width' => '750', 'height' => '520', 'modal' => true));
     $game_array = $this->jquery->dd_ajax_request('default_game', 'game_language', $games, array('--------'), $this->config->get('default_game'), 'manage_settings.php' . $this->SID . '&ajax=games');
     $settingsdata = array('global' => array('global' => array('pk_updatecheck' => array('fieldtype' => 'checkbox', 'name' => 'pk_updatecheck', 'not4hmode' => true), 'guildtag' => array('fieldtype' => 'text', 'name' => 'guildtag', 'size' => 35), 'main_title' => array('fieldtype' => 'text', 'name' => 'main_title', 'size' => 40), 'sub_title' => array('fieldtype' => 'text', 'name' => 'sub_title', 'size' => 40), 'dkp_name' => array('fieldtype' => 'text', 'name' => 'dkp_name', 'size' => 5), 'pk_color_items' => array('fieldtype' => 'slider', 'name' => 'pk_color_items', 'label' => $this->user->lang('pk_color_items'), 'min' => 0, 'max' => 100, 'width' => '300px', 'format' => 'range', 'serialized' => true, 'datatype' => 'int'), 'pk_enable_comments' => array('fieldtype' => 'checkbox', 'name' => 'pk_enable_comments'), 'pk_round_activate' => array('fieldtype' => 'checkbox', 'name' => 'pk_round_activate', 'default' => 0), 'pk_round_precision' => array('fieldtype' => 'text', 'name' => 'pk_round_precision', 'size' => 2, 'id' => 'pk_round_precision', 'class' => '', 'default' => 0), 'pk_debug' => array('fieldtype' => 'dropdown', 'name' => 'pk_debug', 'options' => $a_debug_mode)), 'meta' => array('pk_meta_keywords' => array('fieldtype' => 'text', 'name' => 'pk_meta_keywords', 'size' => 40), 'pk_meta_description' => array('fieldtype' => 'text', 'name' => 'pk_meta_description', 'size' => 40)), 'disclaimer' => array('pk_disclaimer_show' => array('fieldtype' => 'checkbox', 'name' => 'pk_disclaimer_show'), 'pk_disclaimer_name' => array('fieldtype' => 'text', 'name' => 'pk_disclaimer_name', 'size' => 40, 'dependency' => 'pk_disclaimer_show'), 'pk_disclaimer_address' => array('fieldtype' => 'textarea', 'name' => 'pk_disclaimer_address', 'cols' => 50, 'rows' => 4, 'dependency' => 'pk_disclaimer_show'), 'pk_disclaimer_email' => array('fieldtype' => 'text', 'name' => 'pk_disclaimer_email', 'size' => 40, 'dependency' => 'pk_disclaimer_show'), 'pk_disclaimer_irc' => array('fieldtype' => 'text', 'name' => 'pk_disclaimer_irc', 'size' => 40, 'dependency' => 'pk_disclaimer_show'), 'pk_disclaimer_messenger' => array('fieldtype' => 'text', 'name' => 'pk_disclaimer_messenger', 'size' => 40, 'dependency' => 'pk_disclaimer_show'), 'pk_disclaimer_custom' => array('fieldtype' => 'text', 'name' => 'pk_disclaimer_custom', 'size' => 50, 'dependency' => 'pk_disclaimer_show'))), 'system' => array('globalsettings' => array('default_locale' => array('fieldtype' => 'dropdown', 'name' => 'default_locale', 'options' => $locale_array, 'no_lang' => true), 'server_path' => array('fieldtype' => 'text', 'name' => 'server_path', 'size' => 50, 'not4hmode' => true), 'enable_gzip' => array('fieldtype' => 'checkbox', 'name' => 'enable_gzip', 'not4hmode' => true, 'default' => 0), 'upload_allowed_extensions' => array('fieldtype' => 'text', 'name' => 'upload_allowed_extensions', 'size' => 50)), 'auth' => array('auth_method' => array('fieldtype' => 'dropdown', 'name' => 'auth_method', 'options' => $this->user->get_available_authmethods(), 'default' => 'db')), 'login' => array('login_method' => array('fieldtype' => 'jq_multiselect', 'name' => 'login_method', 'options' => $this->user->get_available_loginmethods(), 'serialized' => true, 'default' => '')), 'cookie' => array('cookie_domain' => array('fieldtype' => 'text', 'name' => 'cookie_domain', 'size' => 25, 'not4hmode' => true), 'cookie_name' => array('fieldtype' => 'text', 'name' => 'cookie_name', 'size' => 25, 'not4hmode' => true), 'cookie_path' => array('fieldtype' => 'text', 'name' => 'cookie_path', 'size' => 25, 'not4hmode' => true)), 'email' => array('lib_email_method' => array('fieldtype' => 'dropdown', 'name' => 'lib_email_method', 'options' => $mail_array), 'admin_email' => array('fieldtype' => 'text', 'name' => 'admin_email', 'size' => 30, 'encrypt' => true), 'lib_email_sender_name' => array('fieldtype' => 'text', 'name' => 'lib_email_sender_name', 'size' => 30), 'lib_email_sendmail_path' => array('fieldtype' => 'text', 'name' => 'lib_email_sendmail_path', 'size' => 30, 'dependency' => array('lib_email_method', 'sendmail')), 'lib_email_smtp_host' => array('fieldtype' => 'text', 'name' => 'lib_email_smtp_host', 'size' => 30, 'dependency' => array('lib_email_method', 'smtp')), 'lib_email_smtp_port' => array('fieldtype' => 'text', 'name' => 'lib_email_smtp_port', 'size' => 5, 'default' => 25, 'dependency' => array('lib_email_method', 'smtp')), 'lib_email_smtp_connmethod' => array('fieldtype' => 'dropdown', 'name' => 'lib_email_smtp_connmethod', 'options' => $stmp_connection_methods, 'dependency' => array('lib_email_method', 'smtp')), 'lib_email_smtp_auth' => array('fieldtype' => 'checkbox', 'name' => 'lib_email_smtp_auth', 'dependency' => array('lib_email_method', 'smtp')), 'lib_email_smtp_user' => array('fieldtype' => 'text', 'name' => 'lib_email_smtp_user', 'size' => 30, 'dependency' => array('lib_email_method', 'smtp')), 'lib_email_smtp_pw' => array('fieldtype' => 'password', 'name' => 'lib_email_smtp_pw', 'size' => 30, 'dependency' => array('lib_email_method', 'smtp')), 'lib_email_signature' => array('fieldtype' => 'checkbox', 'name' => 'lib_email_signature', 'default' => 0), 'lib_email_signature_value' => array('fieldtype' => 'textarea', 'name' => 'lib_email_signature_value', 'default' => $signature, 'cols' => 80, 'rows' => 5, 'dependency' => 'lib_email_signature')), 'recaptcha' => array('lib_recaptcha_okey' => array('fieldtype' => 'text', 'name' => 'lib_recaptcha_okey', 'size' => 30), 'lib_recaptcha_pkey' => array('fieldtype' => 'text', 'name' => 'lib_recaptcha_pkey', 'size' => 30)), 'date' => array('timezone' => array('fieldtype' => 'dropdown', 'name' => 'timezone', 'options' => $this->time->timezones), 'pk_date_startday' => array('fieldtype' => 'dropdown', 'name' => 'pk_date_startday', 'options' => $a_startday, 'no_lang' => true), 'default_date_time' => array('fieldtype' => 'text', 'name' => 'default_date_time', 'size' => 10, 'default' => $this->user->lang('style_time')), 'default_date_short' => array('fieldtype' => 'text', 'name' => 'default_date_short', 'size' => 20, 'default' => $this->user->lang('style_date_short')), 'default_date_long' => array('fieldtype' => 'text', 'name' => 'default_date_long', 'size' => 20, 'default' => $this->user->lang('style_date_long')))), 'user' => array('user' => array('default_lang' => array('fieldtype' => 'dropdown', 'name' => 'default_lang', 'options' => $language_array, 'no_lang' => true), 'account_activation' => array('fieldtype' => 'radio', 'name' => 'account_activation', 'options' => $accact_array, 'default' => 0), 'failed_logins_inactivity' => array('fieldtype' => 'text', 'name' => 'failed_logins_inactivity', 'size' => 5, 'id' => 'failed_logins_inactivity', 'class' => '', 'default' => 5), 'disable_registration' => array('fieldtype' => 'checkbox', 'name' => 'disable_registration'), 'pk_enable_captcha' => array('fieldtype' => 'checkbox', 'name' => 'pk_enable_captcha'), 'pk_disable_username_change' => array('fieldtype' => 'checkbox', 'name' => 'pk_disable_username_change'), 'default_style_overwrite' => array('fieldtype' => 'checkbox', 'name' => 'default_style_overwrite'), 'special_user' => array('fieldtype' => 'jq_multiselect', 'name' => 'special_user', 'options' => $this->pdh->aget('user', 'name', 0, array($this->pdh->get('user', 'id_list'))), 'serialized' => true, 'datatype' => 'int', 'no_lang' => true))), 'chars' => array('chars' => array('pk_class_color' => array('fieldtype' => 'checkbox', 'name' => 'pk_class_color'), 'special_members' => array('fieldtype' => 'jq_multiselect', 'name' => 'special_members', 'options' => $members, 'serialized' => true, 'datatype' => 'int', 'no_lang' => true), 'pk_show_twinks' => array('fieldtype' => 'checkbox', 'name' => 'pk_show_twinks', 'default' => 0), 'pk_detail_twink' => array('fieldtype' => 'checkbox', 'name' => 'pk_detail_twink', 'default' => 0), 'hide_inactive' => array('fieldtype' => 'checkbox', 'name' => 'hide_inactive', 'default' => 0), 'inactive_period' => array('fieldtype' => 'text', 'name' => 'inactive_period', 'size' => 5, 'id' => 'inactive_period', 'class' => '', 'default' => 0))), 'calendar' => array('calendar' => array('calendar_addevent_mode' => array('fieldtype' => 'dropdown', 'name' => 'calendar_addevent_mode', 'options' => $a_calendar_addevmode)), 'raids' => array('calendar_raid_guests' => array('fieldtype' => 'checkbox', 'name' => 'calendar_raid_guests'), 'calendar_raid_random' => array('fieldtype' => 'checkbox', 'name' => 'calendar_raid_random'), 'calendar_raid_classbreak' => array('fieldtype' => 'text', 'name' => 'calendar_raid_classbreak', 'size' => 4, 'id' => 'calendar_raid_classbreak', 'class' => ''), 'calendar_raid_status' => array('fieldtype' => 'jq_multiselect', 'name' => 'calendar_raid_status', 'options' => $a_calraid_status, 'serialized' => true, 'datatype' => 'int', 'no_lang' => true), 'calendar_raid_nsfilter' => array('fieldtype' => 'jq_multiselect', 'name' => 'calendar_raid_nsfilter', 'options' => $a_calraid_nsfilter, 'serialized' => true, 'datatype' => 'string'), 'calendar_addraid_deadline' => array('fieldtype' => 'text', 'name' => 'calendar_addraid_deadline', 'size' => 5, 'id' => 'calendar_addraid_deadline', 'class' => '', 'default' => '1'), 'calendar_addraid_duration' => array('fieldtype' => 'text', 'name' => 'calendar_addraid_duration', 'size' => 5, 'id' => 'calendar_addraid_duration', 'class' => '', 'default' => '120'), 'calendar_addraid_use_def_start' => array('fieldtype' => 'checkbox', 'name' => 'calendar_addraid_use_def_start'), 'calendar_addraid_def_starttime' => array('fieldtype' => 'timepicker', 'name' => 'calendar_addraid_def_starttime', 'dependency' => 'calendar_addraid_use_def_start', 'default' => '20:00'), 'calendar_repeat_crondays' => array('fieldtype' => 'text', 'name' => 'calendar_repeat_crondays', 'size' => 5, 'id' => 'calendar_repeat_crondays', 'class' => '', 'default' => '40'), 'calendar_raid_autoconfirm' => array('fieldtype' => 'jq_multiselect', 'name' => 'calendar_raid_autoconfirm', 'options' => $a_groups, 'serialized' => true, 'datatype' => 'int', 'no_lang' => true), 'calendar_raid_autocaddchars' => array('fieldtype' => 'jq_multiselect', 'name' => 'calendar_raid_autocaddchars', 'options' => $a_groups, 'serialized' => true, 'datatype' => 'int', 'no_lang' => true), 'calendar_raid_shownotes' => array('fieldtype' => 'jq_multiselect', 'name' => 'calendar_raid_shownotes', 'options' => $a_groups, 'serialized' => true, 'datatype' => 'int', 'no_lang' => true), 'calendar_raid_notsigned_classsort' => array('fieldtype' => 'checkbox', 'name' => 'calendar_raid_notsigned_classsort'), 'calendar_raid_coloredclassnames' => array('fieldtype' => 'checkbox', 'name' => 'calendar_raid_coloredclassnames'), 'calendar_raid_shownotsigned' => array('fieldtype' => 'checkbox', 'name' => 'calendar_raid_shownotsigned'), 'calendar_raid_allowstatuschange' => array('fieldtype' => 'checkbox', 'name' => 'calendar_raid_allowstatuschange')), 'calendar_mails' => array('calendar_email_statuschange' => array('fieldtype' => 'checkbox', 'name' => 'calendar_email_statuschange'), 'calendar_email_newraid' => array('fieldtype' => 'checkbox', 'name' => 'calendar_email_newraid'), 'calendar_email_openclose' => array('fieldtype' => 'checkbox', 'name' => 'calendar_email_openclose'))), 'game' => array('game' => array('pk_defaultgame' => array('fieldtype' => 'direct', 'name' => 'pk_defaultgame', 'direct' => $game_array[0]), 'pk_defaultgamelang' => array('fieldtype' => 'direct', 'name' => 'pk_defaultgamelang', 'direct' => $game_array[1]))), 'portal' => array('portal' => array('start_page' => array('fieldtype' => 'dropdown', 'name' => 'start_page', 'options' => $startpage_array), 'pk_permanent_portal' => array('fieldtype' => 'jq_multiselect', 'name' => 'pk_permanent_portal', 'options' => $portal_positions, 'selected' => $selected_portal_pos, 'serialized' => true, 'datatype' => 'string'), 'pk_portal_website' => array('fieldtype' => 'text', 'name' => 'pk_portal_website', 'size' => 40), 'eqdkpm_shownote' => array('fieldtype' => 'checkbox', 'name' => 'eqdkpm_shownote')), 'news' => array('enable_newscategories' => array('fieldtype' => 'checkbox', 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP valid_hex32函数代码示例发布时间:2022-05-23
下一篇:
PHP valid_email_address函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap