當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Alert::make方法代碼示例

本文整理匯總了PHP中Alert::make方法的典型用法代碼示例。如果您正苦於以下問題:PHP Alert::make方法的具體用法?PHP Alert::make怎麽用?PHP Alert::make使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Alert的用法示例。


在下文中一共展示了Alert::make方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: allowOnlyRefer

 public static function allowOnlyRefer($inputData)
 {
     $refer = Http::get('refer');
     $inputData = str_replace('/', '\\/', $inputData);
     if (!preg_match('/' . $inputData . '/i', $refer)) {
         Alert::make('Page not found');
     }
 }
開發者ID:neworldwebsites,項目名稱:noblessecms,代碼行數:8,代碼來源:Security.php

示例2: makeWithPath

 public static function makeWithPath($viewName, $inputData, $themePath)
 {
     $filepath = $themePath . $viewName . '.php';
     if (!file_exists($filepath)) {
         Alert::make('View ' . $viewName . ' not exists.');
     }
     // $data=file_get_contents($themePath.$viewName);
     $data = self::parseData($filepath);
     extract($inputData);
     include $data;
 }
開發者ID:neworldwebsites,項目名稱:noblessecms,代碼行數:11,代碼來源:Template.php

示例3: index

 public function index()
 {
     System::systemStatus();
     // if($match=Uri::match('^(\w+)$'))
     // {
     // 	echo $match[1];
     // }
     $themePath = System::getThemePath();
     $indexPath = $themePath . 'index.php';
     if (file_exists($indexPath)) {
         Theme::checkDomain();
         Theme::checkThemePrefix();
         Theme::loadShortCode();
         include $indexPath;
     } else {
         Alert::make('Theme not found');
     }
 }
開發者ID:neworldwebsites,項目名稱:noblessecms,代碼行數:18,代碼來源:controlFrontEnd.php

示例4: index

 public function index()
 {
     $controlName = 'admincp/controlDashboard';
     if (Cookie::has('userid')) {
         $valid = UserGroups::getPermission(Users::getCookieGroupId(), 'can_view_admincp');
         if ($valid != 'yes') {
             Alert::make('You not have permission to view this page');
         }
         $controlName = 'admincp/controlDashboard';
         $default_adminpage_method = trim(System::getSetting('default_adminpage_method', 'none'));
         if ($default_adminpage_method == 'url') {
             $default_adminpage = trim(System::getSetting('default_adminpage_url', 'admincp/'));
             if ($default_adminpage != 'admincp/' && System::getUri() == 'admincp/') {
                 $beginUri = 'admincp';
                 if ($default_adminpage[0] != '/') {
                     $beginUri .= '/';
                 }
                 System::setUri($beginUri . $default_adminpage);
             }
         }
         if ($match = Uri::match('^admincp\\/(\\w+)')) {
             $controlName = 'admincp/control' . ucfirst($match[1]);
         }
     } else {
         $controlName = 'admincp/controlLogin';
         if ($match = Uri::match('^admincp\\/forgotpass')) {
             $controlName = 'admincp/controlForgotpass';
         }
     }
     $codeHead = Plugins::load('admincp_header');
     $codeHead = is_array($codeHead) ? '' : $codeHead;
     $codeFooter = Plugins::load('admincp_footer');
     $codeFooter = is_array($codeFooter) ? '' : $codeFooter;
     // print_r($codeHead);die();
     System::defineGlobalVar('admincp_header', $codeHead);
     System::defineGlobalVar('admincp_footer', $codeFooter);
     Controller::load($controlName);
 }
開發者ID:neworldwebsites,項目名稱:noblessecms,代碼行數:38,代碼來源:controlAdmincp.php

示例5: array

<?php

if ((int) GlobalCMS::$setting['enable_rss'] == 0) {
    Alert::make('Page not found');
}
$pageName = 'rss';
$pageData = array();
$headData = GlobalCMS::$setting;
Theme::model('rss');
$pageData['listPost'] = listRss();
$pageData['setting'] = $headData;
Theme::view($pageName, $pageData);
開發者ID:neworldwebsites,項目名稱:noblessecms,代碼行數:12,代碼來源:rss.php

示例6: controller

 public function controller()
 {
     $post = array();
     if ($matchCtr = Uri::match('\\/setting\\/(\\w+)\\/controller\\/(\\w+)')) {
         $controllerName = $matchCtr[2];
         $themeName = $matchCtr[1];
         $path = THEMES_PATH . $themeName . '/cp/controller/control' . ucfirst($controllerName) . '.php';
         if (!file_exists($path)) {
             Alert::make('Controller <b>' . $controllerName . '</b> of theme ' . $themeName . ' not found.');
         }
         define("THEME_CP_PATH", THEMES_PATH . $themeName . 'cp/');
         $post['file'] = $path;
         $post['themename'] = $themeName;
         View::make('admincp/head', array('title' => 'Setting theme ' . $themeName . ' - ' . ADMINCP_TITLE));
         self::makeContents('themeControl', $post);
         View::make('admincp/footer');
     }
 }
開發者ID:neworldwebsites,項目名稱:noblessecms,代碼行數:18,代碼來源:controlTheme.php

示例7: onlyWord

 public static function onlyWord()
 {
     global $cmsUri;
     //        echo $cmsUri;
     //        die();
     if (preg_match('/[\\<\\>\\$]/i', $cmsUri)) {
         Alert::make('Page not found');
     }
 }
開發者ID:neworldwebsites,項目名稱:noblessecms,代碼行數:9,代碼來源:Uri.php


注:本文中的Alert::make方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。