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


PHP suggest_site_path函數代碼示例

本文整理匯總了PHP中suggest_site_path函數的典型用法代碼示例。如果您正苦於以下問題:PHP suggest_site_path函數的具體用法?PHP suggest_site_path怎麽用?PHP suggest_site_path使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: suggest_site_path

    $LANG = $_POST['lang'];
}
include 'inc/common.php';
# default variables
if (defined('GSLOGINSALT')) {
    $logsalt = GSLOGINSALT;
} else {
    $logsalt = null;
}
$kill = '';
$status = '';
$err = null;
$message = null;
$random = null;
$fullpath = suggest_site_path();
$path_parts = suggest_site_path(true);
# if the form was submitted, continue
if (isset($_POST['submitted'])) {
    if ($_POST['sitename'] != '') {
        $SITENAME = htmlentities($_POST['sitename'], ENT_QUOTES, 'UTF-8');
    } else {
        $err .= i18n_r('WEBSITENAME_ERROR') . '<br />';
    }
    $urls = $_POST['siteurl'];
    if (preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $urls)) {
        $SITEURL = tsl($_POST['siteurl']);
    } else {
        $err .= i18n_r('WEBSITEURL_ERROR') . '<br />';
    }
    if ($_POST['user'] != '') {
        $USR = strtolower($_POST['user']);
開發者ID:google-code-backups,項目名稱:get-simple-cms,代碼行數:31,代碼來源:setup.php

示例2: suggest_site_path

    <script type="text/javascript" src="template/js/ckeditor/ckeditor.js"></script>
    <script type="text/javascript">
      var editor = CKEDITOR.replace('<?php 
        echo $text_area_name;
        ?>
', {
        skin : 'getsimple',
        forcePasteAsPlainText : true,
        language : '<?php 
        echo $EDLANG;
        ?>
',
        defaultLanguage : 'en',
        <?php 
        if (file_exists(GSTHEMESPATH . $TEMPLATE . '/editor.css')) {
            $path = suggest_site_path();
            ?>
          contentsCss: '<?php 
            echo $path;
            ?>
theme/<?php 
            echo $TEMPLATE;
            ?>
/editor.css',
          <?php 
        }
        ?>
        entities : true,
        uiColor : '#FFFFFF',
        height: '<?php 
        echo $EDHEIGHT;
開發者ID:sevenns,項目名稱:e-detective,代碼行數:31,代碼來源:ckeditor.php

示例3: delete_file

            $filedeletionstatus = delete_file(GSADMINPATH . 'install.php');
        }
        if (file_exists(GSADMINPATH . 'setup.php')) {
            $filedeletionstatus = delete_file(GSADMINPATH . 'setup.php');
        }
        if (file_exists(GSADMINPATH . 'update.php')) {
            $filedeletionstatus = delete_file(GSADMINPATH . 'update.php');
        }
        if (!$filedeletionstatus) {
            $error = sprintf(i18n_r('ERR_CANNOT_DELETE'), '<code>/' . $GSADMIN . '/install.php</code>, <code>/' . $GSADMIN . '/setup.php</code> or <code>/' . $GSADMIN . '/update.php</code>');
        }
    }
}
// set these for install, empty if website.xml doesnt exist yet
if (empty($SITEURL)) {
    $SITEURL = suggest_site_path();
}
if (empty($SITEURL_ABS)) {
    $SITEURL_ABS = $SITEURL;
}
if (empty($SITEURL_REL)) {
    $SITEURL_REL = $SITEURL;
}
if (empty($ASSETURL)) {
    $ASSETURL = $SITEURL;
}
/**
 * Include other files depending if they are needed or not
 */
require_once GSADMININCPATH . 'cookie_functions.php';
require_once GSADMININCPATH . 'assets.php';
開發者ID:kix23,項目名稱:GetSimpleCMS,代碼行數:31,代碼來源:common.php

示例4: suggest_site_path

    ?>
		<script type="text/javascript" src="template/js/ckeditor/ckeditor.js"></script>
		<script type="text/javascript">
		var editor = CKEDITOR.replace( 'codetext', {
			skin : 'core',
			language : '<?php 
    echo $EDLANG;
    ?>
',
			defaultLanguage : '<?php 
    echo $EDLANG;
    ?>
',
			<?php 
    if (file_exists(GSTHEMESPATH . $TEMPLATE . "/editor.css")) {
        $fullpath = suggest_site_path();
        ?>
			contentsCss: '<?php 
        echo $fullpath;
        ?>
theme/<?php 
        echo $TEMPLATE;
        ?>
/editor.css',
			<?php 
    }
    ?>
			entities : true,
			uiColor : '#FFFFFF',
			height: '<?php 
    echo $EDHEIGHT;
開發者ID:Emmett-Brown,項目名稱:linea,代碼行數:31,代碼來源:backup-edit.php

示例5: nm_generate_htaccess

function nm_generate_htaccess()
{
    global $NMPAGEURL, $PERMALINK;
    $path = tsl(suggest_site_path(true));
    $prefix = '';
    $page = '';
    # format prefix and page directions
    if ($NMPAGEURL != 'index') {
        if (nm_get_parent() != '' && ($PERMALINK == '' || strpos($PERMALINK, '%parent%') !== false)) {
            $prefix = nm_get_parent() . '/' . $NMPAGEURL . '/';
        } else {
            $prefix = $NMPAGEURL . '/';
        }
        $page = 'id=' . $NMPAGEURL . '&';
    }
    # generate .htaccess contents
    $htaccess = file_get_contents(GSPLUGINPATH . 'news_manager/temp.htaccess');
    $htaccess = str_replace('**PATH**', $path, $htaccess);
    $htaccess = str_replace('**PREFIX**', $prefix, $htaccess);
    $htaccess = str_replace('**PAGE**', $page, $htaccess);
    $htaccess = htmlentities($htaccess, ENT_QUOTES, 'UTF-8');
    # show .htaccess
    include NMTEMPLATEPATH . 'htaccess.php';
}
開發者ID:hatasu,項目名稱:appdroid,代碼行數:24,代碼來源:settings.php


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