当前位置: 首页>>代码示例>>PHP>>正文


PHP is_installed函数代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     $this->active_theme = get_active_theme();
 }
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:7,代码来源:show404_core.php

示例2: handle

 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure $next
  * @param  string|null $guard
  * @return mixed
  */
 public function handle($request, Closure $next, $guard = null)
 {
     if (!is_installed() && !is_request_install()) {
         return redirect()->route('install-welcome');
     }
     return $next($request);
 }
开发者ID:NuclearCMS,项目名称:Nuclear,代码行数:15,代码来源:RedirectIfNotInstalled.php

示例3: boot

 /**
  * Register any application authentication / authorization services.
  *
  * @param  \Illuminate\Contracts\Auth\Access\Gate $gate
  * @return void
  */
 public function boot(GateContract $gate)
 {
     $this->registerPolicies($gate);
     if (is_installed()) {
         $this->registerReactorPolicies($gate);
     }
 }
开发者ID:NuclearCMS,项目名称:Nuclear,代码行数:13,代码来源:AuthServiceProvider.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     remove_featured_if_expired();
     $this->PER_PAGE = get_per_page_value();
     #defined in auth helper
     $this->active_theme = get_active_theme();
     $this->load->model('show_model');
     $this->load->model('user/user_model');
     $this->load->library('encrypt');
     $this->load->helper('text');
     $this->output->enable_profiler($this->config->item('debug_site'));
     if (isset($_POST['view_orderby'])) {
         $this->session->set_userdata('view_orderby', $this->input->post('view_orderby'));
     }
     if (isset($_POST['view_ordertype'])) {
         $this->session->set_userdata('view_ordertype', $this->input->post('view_ordertype'));
     }
     $system_currency_type = get_settings('realestate_settings', 'system_currency_type', 0);
     if ($system_currency_type == 0) {
         $system_currency = get_currency_icon(get_settings('realestate_settings', 'system_currency', 'USD'));
     } else {
         $system_currency = get_settings('realestate_settings', 'system_currency', 'USD');
     }
     $this->session->set_userdata('system_currency', $system_currency);
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:ageo80,项目名称:test,代码行数:29,代码来源:show_core.php

示例5: installation

 public static function installation()
 {
     if (!is_installed()) {
         echo View::create('intro')->render();
         exit(0);
     }
 }
开发者ID:anchorcms,项目名称:anchor-cms,代码行数:7,代码来源:anchor.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en';
     if ($curr_lang == 'ar') {
         $this->config->set_item('language', 'arabic');
     }
     is_installed();
     #defined in auth helper
     remove_featured_if_expired();
     checksavedlogin();
     #defined in auth helper
     if (!is_admin() && !is_agent()) {
         if (count($_POST) <= 0) {
             $this->session->set_userdata('req_url', current_url());
         }
         redirect(site_url('admin/auth'));
     }
     $this->per_page = get_per_page_value();
     #defined in auth helper
     $this->load->helper('text');
     $this->load->model('show/show_model');
     $this->load->model('admin/realestate_model');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:firastunsi,项目名称:oskon,代码行数:25,代码来源:realestate_core.php

示例7: default_lang

 function default_lang()
 {
     if (is_installed('return') != 'no') {
         if (defined('DEFAULT_LANG')) {
             return constant('DEFAULT_LANG');
         } else {
             $CI = get_instance();
             $CI->load->database();
             $query = $CI->db->get_where('options', array('key' => 'site_settings'));
             if ($query->num_rows() > 0) {
                 $row = $query->row();
                 $settings = json_decode($row->values);
                 $default_lang = $settings->site_lang;
             } else {
                 $default_lang = 'en';
             }
             if (!defined('DEFAULT_LANG')) {
                 define('DEFAULT_LANG', $default_lang);
             }
             return $default_lang;
         }
     } else {
         return 'en';
     }
 }
开发者ID:firastunsi,项目名称:oskon,代码行数:25,代码来源:dbcbase_helper.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in bookit helper
     $this->load->model('auth_model');
     $this->load->library('form_validation');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:priyranjansingh,项目名称:classified,代码行数:9,代码来源:auth_core.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     if (is_installed()) {
         header("Content-type:text/html;charset=utf-8");
         echo 'DiliCMS已经安装过,要重新安装请先删除install.lock';
         exit($this->output->get_output());
     }
 }
开发者ID:PoppyLi,项目名称:DiliCMS,代码行数:9,代码来源:install.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     //$this->output->enable_profiler(TRUE);
     //check if config file is empty or it's not empty but script is not installed
     if ((is_db_conf_empty() || !is_installed()) && !defined('CS_EXTERNAL')) {
         redirect("setup/index");
     }
     //load database, datamapper and login manager
     $this->load->database();
     $this->load->library('datamapper');
     $this->load->library('translate');
     $this->load->library('loginmanager');
     //hack for datamapper prefix
     DataMapper::$config['prefix'] = $this->db->dbprefix;
     //set web site name in title
     $this->templatemanager->set_title(Setting::value('website_title', CS_PRODUCT_NAME));
     //test if should save uri
     $should = true;
     if ($this instanceof Process) {
         $uri = $path = trim($this->uri->uri_string());
         $file = new File();
         $file->path = $path;
         $mime = $file->mime_type();
         if ($mime !== 'text/html') {
             $should = false;
         }
     }
     //set current url for auth controller to know where to redirect
     if (!$this instanceof Auth && !$this instanceof JS && !$this->is_ajax_request() && $should) {
         $this->loginmanager->set_redirect(current_url());
     }
     //set time zone
     date_default_timezone_set(Setting::value('default_time_zone', 'Europe/Belgrade'));
     //set language
     $sess_lang = $this->session->userdata('lang');
     if (!empty($sess_lang)) {
         if (is_numeric($sess_lang)) {
             $lang = Language::factory()->get_by_id((int) $sess_lang)->name;
         } else {
             $lang = $sess_lang;
         }
     } else {
         $lang = Setting::value('default_language', 'English');
     }
     $this->translate->set_language($lang);
     //fetch user from the database if logged in
     if ($this->loginmanager->is_logged_in()) {
         $this->user = User::factory($this->loginmanager->user->id);
         $this->templatemanager->assign('user', $this->user);
     }
     $this->templatemanager->set_template_name($this->in_admin() ? "administration" : "");
     if ($this->in_admin() && isset($_GET['iu-popup'])) {
         $this->templatemanager->popup();
     }
 }
开发者ID:jotavejv,项目名称:CMS,代码行数:56,代码来源:CS_Controller.php

示例11: index

 function index()
 {
     if (is_installed()) {
         return info_page(__('INSTALL_FINISHED'));
     } elseif (intval(v('do')) == 1) {
         db_init();
     } else {
         $data['title'] = $data['top_title'] = __('INSTALL_PAGE_TITLE');
         return render($data, 'web', 'fullwidth');
     }
 }
开发者ID:wangkf,项目名称:TeamToy,代码行数:11,代码来源:install.class.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     //$this->PER_PAGE = get_per_page_value();#defined in auth helper
     $this->PER_PAGE = get_settings('business_settings', 'posts_per_page', 6);
     $this->active_theme = get_active_theme();
     $this->load->model('review_model');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:11,代码来源:review_core.php

示例13: index

 function index()
 {
     if (is_installed()) {
         return info_page('API Server 已初始化完成,<a href="?c=guest">请使用管理账号登入</a>');
     } elseif (intval(v('do')) == 1) {
         db_init();
     } else {
         $data['title'] = $data['top_title'] = 'TeamToy安装页面';
         return render($data, 'web', 'fullwidth');
     }
 }
开发者ID:ramo01,项目名称:1kapp,代码行数:11,代码来源:install.class.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     $this->load->database();
     $this->active_theme = get_active_theme();
     $this->load->model('ajax_model');
     //$this->load->model('show/post_model');
     $this->load->helper('dbcvote');
     $this->form_validation->set_error_delimiters('<label class="col-lg-2 control-label">&nbsp;</label><div class="col-lg-8"><div class="alert alert-danger" style="margin-bottom:0;">', '</div></div>');
     //$this->output->enable_profiler(TRUE);
 }
开发者ID:ageo80,项目名称:test,代码行数:13,代码来源:ajax_core.php

示例15: mapWebRoutes

 /**
  * Define the "web" routes for the application.
  *
  * These routes all receive session state, CSRF protection, etc.
  *
  * @param  \Illuminate\Routing\Router $router
  * @return void
  */
 protected function mapWebRoutes(Router $router)
 {
     $router->group(['namespace' => $this->namespace, 'middleware' => 'web'], function ($router) {
         // Common routes
         require routes_path('common.php');
         // Reactor routes
         require routes_path(config('themes.active_reactor') . '.php');
         // Site routes
         require routes_path(config('themes.active') . '.php');
         // Install routes
         if (!is_installed()) {
             require routes_path('install.php');
         }
     });
 }
开发者ID:NuclearCMS,项目名称:Nuclear,代码行数:23,代码来源:RouteServiceProvider.php


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