當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。