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

PHP get_dir_file_info函数代码示例

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

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



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

示例1: profile

 public function profile()
 {
     $this->load->helper('file');
     $this->data['avatars'] = get_dir_file_info('../public/admin/avatars', FALSE);
     $this->data['admin'] = $this->data['user_info'];
     $this->load->view('index/profile', $this->data);
 }
开发者ID:tatfan,项目名称:fb_backend,代码行数:7,代码来源:index.php


示例2: create

 /**
  * Create Database
  *
  * Creates database tables and fields.
  *
  * @access public
  * @return bool
  */
 function create()
 {
     /**
      * This is a dirty hack.
      *
      * SQLite doesn't support database listing as each
      * database is a different file.
      *
      * The code below gets file information from the root
      * directory and looks at the filesize of "database.db".
      *
      * If "database.db" has a filesize of 0 (i.e. it
      * has not been written to) private functions setup
      * the database.
      */
     $this->load->helper('file');
     $this->load->helper('error');
     $info = get_dir_file_info('./', $top_level_only = true);
     if ($info['db.sqlite3']['size'] > 0) {
         // Database is already setup
         return error('Database was already setup');
     } else {
         $this->_create_posts();
         $this->_create_sitemap();
         return true;
     }
 }
开发者ID:ralphsaunders,项目名称:payload,代码行数:35,代码来源:database_model.php


示例3: get_languages

	function get_languages()
	{
		$theme_folders = get_dir_file_info(dirname(dirname(__FILE__)).'/language');
		//unset($la_folders[$this->get('admin_theme')]);
		unset($theme_folders['index.html']);
		return $theme_folders;	
	}
开发者ID:bmfelix,项目名称:draftlounge,代码行数:7,代码来源:options.php


示例4: getNewImages

    public function getNewImages()
    {
        $this->CI->load->helper(array('file', 'gallery'));
        $this->CI->load->model('photo_model');

        $exif_availabale = is_exif_available();
        $files = get_dir_file_info($this->CI->config->item('image_dir', 'gallery'), true);
        $i = 0;
        $images = array();
        $photos = $this->CI->photo_model->getFilenames();

        foreach($files as $file)
        {
            $fn = $file['name'];

            if(!in_array($fn, $photos) && preg_match('/\.jpg/i', $fn))
            {
                if($exif_availabale)
                {
                    $images[$i]['exif'] = exif_read_data($this->CI->config->item('image_folder', 'gallery').$fn);
                }
                $images[$i]['filename'] = $fn;
                $i++;
            }
        }

        return $images;
    }
开发者ID:JohannesFischer,项目名称:adora-gallery,代码行数:28,代码来源:Image_library.php


示例5: restore

 public function restore($sqlfile = '')
 {
     $data['title'] = '数据库还原';
     $data['act'] = $this->uri->segment(3);
     $data['sqlfiles'] = get_dir_file_info(FCPATH . 'data/db', $top_level_only = TRUE);
     //echo var_dump($data['sqlfiles']);
     if ($_POST) {
         $sqlfiles = array_slice($this->input->post(), 0, -1);
         //echo var_export($sqlfiles);
         foreach ($sqlfiles as $k => $v) {
             unlink(FCPATH . 'data/db/' . $v);
         }
         $this->session->set_flashdata('error', '删除sql文件成功!');
         redirect('admin/db_admin/restore');
     }
     if ($sqlfile) {
         $sql = file_get_contents(FCPATH . 'data/db/' . $sqlfile);
         if ($this->run_sql($sql)) {
             $this->session->set_flashdata('error', '还原sql文件成功!');
             redirect('admin/db_admin/restore');
         }
     }
     $data['csrf_name'] = $this->security->get_csrf_token_name();
     $data['csrf_token'] = $this->security->get_csrf_hash();
     $this->load->view('db_admin', $data);
 }
开发者ID:sun-friderick,项目名称:startbbs,代码行数:26,代码来源:db_admin.php


示例6: backups

 public function backups()
 {
     // Get a list of existing backup files
     $this->load->helper('file');
     Template::set('backups', get_dir_file_info($this->backup_folder));
     Template::set('toolbar_title', lang('db_database_backups'));
     Template::render();
 }
开发者ID:nazrulworld,项目名称:Bonfire,代码行数:8,代码来源:developer.php


示例7: banner

 function banner()
 {
     $banners = get_dir_file_info('./images/banners', TRUE);
     $banners = array_values($banners);
     $count = count($banners);
     $i = rand(0, $count - 1);
     return $banners[$i]['name'];
 }
开发者ID:rbgvictoria,项目名称:melisr,代码行数:8,代码来源:update.php


示例8: check_is_install_folder_exist

 function check_is_install_folder_exist()
 {
     if (get_dir_file_info('./application/modules/install')) {
         return true;
     } else {
         return false;
     }
 }
开发者ID:pojok-webdev,项目名称:pattimura,代码行数:8,代码来源:common.php


示例9: index

 function index()
 {
     $this->load->helper('file');
     $this->load->helper('inflector');
     $data->page_name = 'Options';
     $theme_folder = get_dir_file_info(BASEPATH . 'application/views/themes', FALSE, TRUE);
     foreach ($theme_folder as $key => $value) {
         if (is_dir(BASEPATH . 'application/views/themes/' . $key)) {
             $themes[$key]->folder = $key;
             $themes[$key]->name = humanize($key);
         }
     }
     $data->themes = $themes;
     if ($_POST) {
         $this->load->library('validation');
         $fields['lifestream_title'] = 'Lifestream Title';
         $fields['admin_email'] = 'Admin Email';
         $fields['new_password'] = 'New Password';
         $fields['new_password_confirm'] = 'New Password Confirm';
         $fields['per_page'] = 'Items Per Page';
         $this->validation->set_fields($fields);
         $rules['lifestream_title'] = "trim|required";
         $rules['admin_email'] = "trim|required|valid_email";
         $rules['new_password'] = "trim|matches[new_password_confirm]";
         $rules['new_password_confirm'] = "trim";
         $rules['per_page'] = "numeric";
         $this->validation->set_rules($rules);
         if ($this->validation->run() == FALSE) {
             $data->errors = $this->validation->error_string;
             $this->load->view('admin/_header', $data);
             $this->load->view('admin/options', $data);
             $this->load->view('admin/_footer');
         } else {
             //set new password if required
             if ($this->validation->new_password && $this->validation->new_password != '') {
                 $password = md5($this->validation->new_password);
                 $this->db->update('users', array('user_pass' => $password), array('ID' => $this->data->user->ID));
             }
             //set admin email
             $this->db->update('users', array('user_email' => $this->validation->admin_email), array('ID' => $this->data->user->ID));
             unset($_POST['new_password']);
             unset($_POST['new_password_confirm']);
             //save options
             foreach ($_POST as $key => $value) {
                 $option_array[$key]->option_name = $key;
                 $option_array[$key]->option_value = $value;
             }
             foreach ($option_array as $option) {
                 $this->option_model->add_option($option);
             }
             header('Location: ' . $this->config->item('base_url') . 'admin/options');
         }
     } else {
         $this->load->view('admin/_header', $data);
         $this->load->view('admin/options', $data);
         $this->load->view('admin/_footer');
     }
 }
开发者ID:vu-nguyen,项目名称:sweetcron,代码行数:58,代码来源:options.php


示例10: __construct

 public function __construct()
 {
     $this->class =& get_instance();
     $this->class->load->helper("file");
     $m = get_dir_file_info(APPPATH . "models/", false);
     $c = get_dir_file_info(APPPATH . "controllers/", false);
     $this->model_ = $this->SetWrite($m, "models\\");
     $this->controller_ = $this->SetWrite($c, "controllers\\");
 }
开发者ID:prosenjit-itobuz,项目名称:Unitee,代码行数:9,代码来源:Plugin.php


示例11: importar_data

 protected function importar_data()
 {
     $ruta = "//199.69.69.93\\interfaces_cedentes\\Cargas Procesos\\APLICACIONES\\UVM_CARSIT\\ENTRADA";
     $listado = get_dir_file_info($ruta);
     foreach ($listado as $key => $value) {
         $r = $listado[$key];
         $this->data[$r["name"]] = load_file($r["server_path"], null, "dia");
     }
 }
开发者ID:bsanchezdev,项目名称:p_solvencia,代码行数:9,代码来源:uvm_c_robot_panel.php


示例12: up

 function up()
 {
     // fix the fuckup from version 0.7 caching comic entries
     $all_files = get_dir_file_info('content/comics', FALSE);
     if (is_array($all_files)) {
         foreach ($all_files as $key => $file) {
             if (strtolower(substr($file["name"], -4) == ".zip")) {
                 // remove every zip
                 unlink($file["relative_path"] . $file["name"]);
             }
         }
     }
     // remove also all the database entries
     $this->db->query("TRUNCATE TABLE `" . $this->db->dbprefix('archives') . "`");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('archives') . "` ADD INDEX ( `size` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('archives') . "` ADD INDEX ( `chapter_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('archives') . "` CHANGE `edited` `updated` DATETIME NOT NULL");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `comic_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `team_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `joint_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `chapter` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `subchapter` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `volume` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `language` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `stub` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `uniqid` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('chapters') . "` ADD INDEX ( `updated` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('comics') . "` ADD INDEX ( `stub` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('comics') . "` ADD INDEX ( `uniqid` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('comics') . "` ADD INDEX ( `hidden` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('comics') . "` ADD INDEX ( `created` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('joints') . "` ADD INDEX ( `joint_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('joints') . "` ADD INDEX ( `team_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('licenses') . "` ADD INDEX ( `comic_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('licenses') . "` ADD INDEX ( `nation` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `team_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `user_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `is_leader` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `accepted` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `requested` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `applied` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `created` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` CHANGE `edited` `updated` DATETIME NOT NULL");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('memberships') . "` ADD INDEX ( `updated` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('profiles') . "` ADD INDEX ( `user_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('profiles') . "` ADD INDEX ( `group_id` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('teams') . "` ADD INDEX ( `name` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('teams') . "` ADD INDEX ( `stub` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('teams') . "` ADD INDEX ( `created` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('teams') . "` ADD INDEX ( `updated` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('users') . "` ADD INDEX ( `username` )");
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('users') . "` ADD INDEX ( `created` )");
     //create a new field in chapters for the custom chapter titles
     $this->db->query("ALTER TABLE `" . $this->db->dbprefix('comics') . "` ADD `customchapter` VARCHAR( 32 ) NOT NULL AFTER `thumbnail`");
 }
开发者ID:KasaiDot,项目名称:FoOlSlide,代码行数:55,代码来源:005_Update005.php


示例13: list_items

 function list_items($limit = null, $offset = 0, $col = 'name', $order = 'asc')
 {
     $CI =& get_instance();
     $CI->load->helper('array');
     $CI->load->helper('convert');
     if (!isset($this->filters['group_id'])) {
         return array();
     }
     $group_id = $this->filters['group_id'];
     // not encoded yet... then decode
     if (!$this->_encoded) {
         $this->filters['group_id'] = uri_safe_encode($group_id);
         // to pass the current folder
         $this->_encoded = TRUE;
     } else {
         $group_id = uri_safe_decode($group_id);
     }
     $asset_dir = $this->get_dir($group_id);
     $assets_path = $CI->asset->assets_server_path . $asset_dir . DIRECTORY_SEPARATOR;
     $tmpfiles = directory_to_array($assets_path, TRUE, $CI->config->item('assets_excluded_dirs', 'fuel'), FALSE);
     $files = get_dir_file_info($assets_path, TRUE);
     $cnt = count($tmpfiles);
     $return = array();
     $asset_type_path = WEB_PATH . $CI->config->item('assets_path') . $asset_dir . '/';
     //for ($i = $offset; $i < $cnt - 1; $i++)
     for ($i = 0; $i < $cnt; $i++) {
         if (!empty($tmpfiles[$i]) && !empty($files[$tmpfiles[$i]])) {
             $key = $tmpfiles[$i];
             if (empty($this->filters['name']) || !empty($this->filters['name']) && (strpos($files[$key]['name'], $this->filters['name']) !== FALSE || strpos($key, $this->filters['name']) !== FALSE)) {
                 $file['id'] = uri_safe_encode(assets_server_to_web_path($files[$tmpfiles[$i]]['server_path'], TRUE));
                 //$file['filename'] = $files[$key]['name'];
                 $file['name'] = $key;
                 $file['preview/kb'] = $files[$key]['size'];
                 $file['link'] = NULL;
                 $file['last_updated'] = english_date($files[$key]['date'], true);
                 $return[] = $file;
             }
         }
     }
     $return = array_sorter($return, $col, $order, TRUE);
     // do a check for empty limit values to prevent issues found where an empty $limit value would return nothing in 5.16
     $return = empty($limit) ? array_slice($return, $offset) : array_slice($return, $offset, $limit);
     // after sorting add the images
     foreach ($return as $key => $val) {
         if (is_image_file($return[$key]['name'])) {
             $return[$key]['preview/kb'] = $return[$key]['preview/kb'] . ' kb <div class="img_crop"><a href="' . $asset_type_path . $return[$key]['name'] . '" target="_blank"><img src="' . $asset_type_path . $return[$key]['name'] . '" border="0"></a></div>';
             $return[$key]['link'] = '<a href="' . $asset_type_path . $return[$key]['name'] . '" target="_blank">' . $asset_dir . '/' . $return[$key]['name'] . '</a>';
         } else {
             $return[$key]['preview/kb'] = $return[$key]['preview/kb'];
             $return[$key]['link'] = '<a href="' . $asset_type_path . $return[$key]['name'] . '" target="_blank">' . $asset_dir . '/' . $return[$key]['name'] . '</a>';
         }
     }
     return $return;
 }
开发者ID:randombrad,项目名称:FUEL-CMS,代码行数:54,代码来源:assets_model.php


示例14: index

 public function index()
 {
     $this->load->library('inc');
     $this->load->helper('my');
     $this->load->helper('file');
     $this->load->model('sys_db_m');
     $data['js'] = array('system/sys_db_restore.js');
     $data['Menus'] = $this->inc->getMenuAdmin($this);
     $data['file'] = get_dir_file_info($this->config->config['backup'], false);
     $this->inc->adminView($this, 'system/db/restore/index', $data);
 }
开发者ID:atzq1234,项目名称:huatongbao,代码行数:11,代码来源:Sys_db_restore.php


示例15: database_backup

 public function database_backup()
 {
     $this->data['ignore_tabls'] = $this->ignore_tabls;
     $this->data['items'] = $this->db->list_tables();
     $this->load->helper('file');
     $files = get_dir_file_info('./db_backup', TRUE);
     //只遍历一层
     unset($files['index.html']);
     $this->data['files'] = $files;
     $this->load->view('tools/database_backup', $this->data);
 }
开发者ID:tatfan,项目名称:fb_backend,代码行数:11,代码来源:tools.php


示例16: index

 public function index()
 {
     $this->Purview_model->checkPurview($this->tablefunc);
     $func = '';
     $isdel = $this->Purview_model->checkPurviewFunc($this->tablefunc, 'del');
     $isgenerate = $this->Purview_model->checkPurviewFunc($this->tablefunc, 'generate');
     $func .= $isgenerate ? $this->Purview_model->getOtherFunc('submitTo(\'' . site_aurl($this->tablefunc . '/generate') . '\',\'generate\')', 'generate') : '';
     $func .= $isdel ? $this->Purview_model->getOtherFunc('submitTo(\'' . site_aurl($this->tablefunc . '/del') . '\',\'del\')', 'del') : '';
     $btngenerate = $this->Purview_model->getOtherFunc('submitTo(\'' . site_aurl($this->tablefunc . '/generate') . '\',\'generate\')', 'generate');
     $list = get_dir_file_info($this->backuppath);
     $res = array('tablefunc' => $this->tablefunc, 'list' => get_dir_file_info($this->backuppath), 'func' => $func, 'isdel' => $isdel, 'langarr' => $this->Cache_model->loadLang(), 'isdownload' => $this->Purview_model->checkPurviewFunc($this->tablefunc, 'download'), 'btngenerate' => $btngenerate);
     $this->load->view($this->tablefunc, $res);
 }
开发者ID:pondyond,项目名称:x6cms,代码行数:13,代码来源:sitemap.php


示例17: pages

 /**
  * List pages in a folder
  */
 public function pages()
 {
     $this->CI = get_instance();
     $this->CI->load->helper('file');
     // Get the folder
     if (!($url = $this->get_param('url', FALSE))) {
         return;
     }
     $url = ltrim($url, '/');
     // Check this out.
     if (!is_dir('site/' . $url)) {
         return;
     }
     $map = get_dir_file_info('site/' . $url, true);
     // Do we want to remove the index file?
     if ($this->get_param('include_index', 'no') == 'no') {
         if (isset($map['index.html'])) {
             unset($map['index.html']);
         }
     }
     $vars = array();
     $count = 0;
     $this->CI->simpletags->set_trigger('var');
     // Run through each page and get some info
     foreach ($map as $file_name => $file_info) {
         // Create guessed name
         $name = str_replace('.html', '', $file_name);
         $name = str_replace(array('-', '.', '_'), ' ', $name);
         // Guess the name
         $vars['pages'][$count]['guessed_name'] = ucwords($name);
         $vars['pages'][$count]['uri'] = $url . '/' . str_replace('.html', '', $file_name);
         $vars['pages'][$count]['url'] = site_url($url . '/' . str_replace('.html', '', $file_name));
         // Get the date
         $vars['pages'][$count]['date'] = date($this->CI->config->item('fizl_date_format'), $file_info['date']);
         // Get any vars from the item
         if ($file_content = read_file($file_info['server_path'])) {
             if (strpos($file_content, '{var ') !== FALSE) {
                 // Grab them vars
                 $this->CI->simpletags->parse($file_content, array(), array($this, 'var_callback'));
                 $vars['pages'][$count] = array_merge($vars['pages'][$count], $this->vars);
                 // Clear it
                 $this->vars = array();
             }
         }
         $count++;
     }
     // Total
     $vars['total'] = count($map);
     return $this->CI->parser->parse_string($this->tag_content, $vars, TRUE);
 }
开发者ID:ngangchill,项目名称:Fizl,代码行数:53,代码来源:files.php


示例18: index

 public function index()
 {
     $list = get_dir_file_info($this->path);
     $temp = array();
     foreach ($list as $k => $v) {
         $temp[] = $v['date'];
     }
     array_multisort($temp, SORT_DESC, $list);
     // echo '<pre>';print_r($list);die;
     // $dbs = $this->dbutil->list_databases();
     // $tables = $this->db->list_tables();
     $this->assign('list', $list);
     $this->display();
 }
开发者ID:jimmysum,项目名称:potato-cms,代码行数:14,代码来源:Restore.php


示例19: delete_old_files

 function delete_old_files($dir, $older_than, $exclude = [])
 {
     $files = get_dir_file_info($dir);
     if (!is_numeric($older_than)) {
         $older_than = strtotime($older_than);
     }
     if (!empty($files)) {
         foreach ($files as $file) {
             if ($file['date'] < $older_than and is_null($exclude) || is_array($exclude) && !in_array($file['name'], $exclude) || is_string($exclude) && !preg_match($exclude, $file['name'])) {
                 @unlink($file['server_path']);
             }
         }
     }
 }
开发者ID:galdiolo,项目名称:orange,代码行数:14,代码来源:o_file_helper.php


示例20: read

 function read($keys = false)
 {
     $dir = get_dir_file_info(FCPATH . 'storage' . DIRECTORY_SEPARATOR . 'themes');
     $base_host = '//' . $_SERVER['HTTP_HOST'] . preg_replace('/api\\.php(.*)?$/', '', $_SERVER['SCRIPT_NAME']);
     $base = $base_host . 'storage/themes/';
     $final = array();
     foreach ($dir as $key => $val) {
         $p = $val['server_path'];
         $path = basename($p);
         if (strpos($path, ' ') !== false) {
             continue;
         }
         $info = $p . DIRECTORY_SEPARATOR . 'info.json';
         $guid = $p . DIRECTORY_SEPARATOR . 'koken.guid';
         $guid_old = $p . DIRECTORY_SEPARATOR . '.guid';
         if (is_dir($p) && file_exists($info)) {
             $info_array = json_decode(file_get_contents($info));
             if ($info_array) {
                 $preview = $p . DIRECTORY_SEPARATOR . 'preview.jpg';
                 if (file_exists($preview)) {
                     $preview = $base . $key . '/preview.jpg';
                 } else {
                     $preview = str_replace('storage/themes', 'app/site/themes', $base) . '/preview.jpg';
                 }
                 list($w, $h) = getimagesize(FCPATH . str_replace($base_host, '', $preview));
                 $a = array('name' => $info_array->name, 'version' => $info_array->version, 'description' => $info_array->description, 'demo' => isset($info_array->demo) ? $info_array->demo : false, 'documentation' => isset($info_array->documentation) ? $info_array->documentation : false, 'path' => $key, 'preview' => $preview, 'preview_aspect' => $w / $h, 'author' => $info_array->author);
                 if (file_exists($guid)) {
                     $a['koken_store_guid'] = file_get_contents($guid);
                 } else {
                     if (file_exists($guid_old)) {
                         $a['koken_store_guid'] = file_get_contents($guid_old);
                     }
                 }
                 if ($keys) {
                     $final[$key] = $a;
                 } else {
                     $final[] = $a;
                 }
             }
         }
     }
     if (!$keys) {
         function sortByName($a, $b)
         {
             return $a['name'] > $b['name'];
         }
         usort($final, 'sortByName');
     }
     return $final;
 }
开发者ID:Atomox,项目名称:benhelmerphotography,代码行数:50,代码来源:theme.php



注:本文中的get_dir_file_info函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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