当前位置: 首页>>代码示例>>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;未经允许,请勿转载。