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


PHP var_out函数代码示例

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


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

示例1: strtolower

     $USR = strtolower($_POST['user']);
 }
 if (isset($_POST['name'])) {
     $NAME = var_out($_POST['name']);
 }
 if (isset($_POST['email'])) {
     $EMAIL = var_out($_POST['email'], 'email');
 }
 if (isset($_POST['timezone'])) {
     $TIMEZONE = var_out($_POST['timezone']);
 }
 if (isset($_POST['lang'])) {
     $LANG = var_out($_POST['lang']);
 }
 if (isset($_POST['show_htmleditor'])) {
     $HTMLEDITOR = var_out($_POST['show_htmleditor']);
 } else {
     $HTMLEDITOR = '';
 }
 # check to see if passwords are changing
 if (isset($_POST['sitepwd'])) {
     $pwd1 = $_POST['sitepwd'];
 }
 if (isset($_POST['sitepwd_confirm'])) {
     $pwd2 = $_POST['sitepwd_confirm'];
 }
 if ($pwd1 != $pwd2) {
     #passwords do not match
     $error = i18n_r('PASSWORD_NO_MATCH');
 } else {
     # password cannot be null
开发者ID:Kevinf63,项目名称:KevPortfolio,代码行数:31,代码来源:settings.php

示例2: i18n

" ><?php 
i18n('ASK_RESTORE');
?>
</a> 
			 <a href="backup-edit.php?p=delete&amp;id=<?php 
echo var_out($id);
?>
&amp;nonce=<?php 
echo get_nonce("delete", "backup-edit.php");
?>
" 
			 	title="<?php 
i18n('DELETEPAGE_TITLE');
?>
: <?php 
echo var_out($title);
?>
?" 
			 	id="delback" 
			 	accesskey="<?php 
echo find_accesskey(i18n_r('ASK_DELETE'));
?>
" 
			 	class="delconfirm noajax" ><?php 
i18n('ASK_DELETE');
?>
</a>
			<div class="clear"></div>
		</div>
		
		<table class="simple highlight" >
开发者ID:hatasu,项目名称:appdroid,代码行数:31,代码来源:backup-edit.php

示例3: var_out

" value="<?php 
if (isset($PERMALINK)) {
    echo var_out($PERMALINK);
}
?>
" />
				</p>
			</div>
			<div class="rightsec">
				<p>
					<label for="email" ><?php 
i18n('LABEL_EMAIL');
?>
:</label>
					<input class="text" id="email" name="email" type="email" value="<?php 
echo var_out($SITEEMAIL);
?>
" />
				</p>
				<?php 
if (!check_email_address($SITEEMAIL)) {
    echo '<span class="input-warning">' . i18n_r('WARN_EMAILINVALID') . '</span>';
}
?>
			</div>
			<div class="clear"></div>
			<div class="widesec">
				<p>
					<label for="about" ><?php 
i18n('LABEL_SITEABOUT');
?>
开发者ID:HelgeSverre,项目名称:GetSimpleCMS,代码行数:31,代码来源:settings.php

示例4: login_cookie_check

<?php

/**
 * View Log
 *
 * Displays the log file passed to it 
 *
 * @package GetSimple
 * @subpackage Support
 */
// Setup inclusions
$load['plugin'] = true;
include 'inc/common.php';
// Variable Settings
login_cookie_check();
$log_name = var_out(isset($_GET['log']) ? $_GET['log'] : '');
$log_path = GSDATAOTHERPATH . 'logs/';
$log_file = $log_path . $log_name;
$whois_url = 'http://whois.arin.net/rest/ip/';
// filepath_is_safe returns false if file does nt exist
if (!isset($log_name) || !filepath_is_safe($log_file, $log_path)) {
    $log_data = false;
}
if (isset($_GET['action']) && $_GET['action'] == 'delete' && strlen($log_name) > 0) {
    // check for csrf
    if (!defined('GSNOCSRF') || GSNOCSRF == FALSE) {
        $nonce = $_GET['nonce'];
        if (!check_nonce($nonce, "delete")) {
            die("CSRF detected!");
        }
    }
开发者ID:hatasu,项目名称:appdroid,代码行数:31,代码来源:log.php

示例5: elseif

     } elseif ($ptype == 'delete') {
         doNotify(sprintf(i18n_r('ER_HASBEEN_DEL'), $errid) . '. <a href="backup-edit.php?p=restore&id=' . $errid . '&nonce=' . get_nonce("restore", "backup-edit.php") . '">' . i18n_r('UNDO') . '</a>', 'info');
     } else {
         if ($ptype == 'new') {
             doNotify(sprintf(i18n_r('ER_YOUR_CHANGES'), $id) . '. <a href="deletefile.php?id=' . $id . '&nonce=' . get_nonce("delete", "deletefile.php") . '">' . i18n_r('UNDO') . '</a>', 'success');
         }
     }
     break;
 case 'clone-success':
     doNotify(sprintf(i18n_r('CLONE_SUCCESS'), '<a href="edit.php?id=' . $errid . '">' . $errid . '</a>'), 'success');
     break;
 case 'edit-index':
     doNotify('<b>' . i18n_r('ERROR') . ':</b> ' . i18n_r('ER_CANNOT_INDEX'), 'error');
     break;
 case 'edit-error':
     doNotify('<b>' . i18n_r('ERROR') . ':</b> ' . var_out($ptype), 'error');
     break;
 case 'pwd-success':
     doNotify(i18n_r('ER_NEW_PWD_SENT') . '. <a href="index.php">' . i18n_r('LOGIN') . '</a>', 'info');
     break;
 case 'pwd-error':
     doNotify('<b>' . i18n_r('ERROR') . ':</b> ' . i18n_r('ER_SENDMAIL_ERR') . '.', 'error');
     break;
 case 'del-success':
     doNotify(i18n_r('ER_FILE_DEL_SUC') . ': <b>' . $errid . '</b>', 'success');
     break;
 case 'flushcache-success':
     doNotify(i18n_r('FLUSHCACHE-SUCCESS'), 'success');
     break;
 case 'del-error':
     doNotify('<b>' . i18n_r('ERROR') . ':</b> ' . i18n_r('ER_PROBLEM_DEL') . '.', 'error');
开发者ID:promil23,项目名称:GetSimpleCMS,代码行数:31,代码来源:error_checking.php

示例6: isset

echo $SESSIONHASH;
?>
';
		var uploadPath    = '<?php 
echo isset($_GET['path']) ? $_GET['path'] : "";
?>
';
		var maxFileSize   = '<?php 
echo toBytesShorthand(getMaxUploadSize(), 'M');
?>
';
		
		<?php 
if (isset($_COOKIE['gs_editor_theme'])) {
    // $editor_theme = var_out($_COOKIE['gs_editor_theme']);
    $editor_theme = var_out($_COOKIE['gs_editor_theme']);
    echo "// codemirror editortheme\n";
    echo '		var editorTheme = "' . $editor_theme . "\";\n";
}
if (getDef('GSAUTOSAVE', true)) {
    echo "\t\t// edit autosave\n";
    echo '		var GSAUTOSAVEPERIOD = ' . getDef('GSAUTOSAVE') . ";\n";
} else {
    echo "      var GSAUTOSAVEPERIOD = false;\n";
}
?>

        // ckeditor config obj shim for config
        if(typeof CKEDITOR == 'undefined'){
			CKEDITOR           = {};
			CKEDITOR.SHIM      = true;
开发者ID:kix23,项目名称:GetSimpleCMS,代码行数:31,代码来源:header.php

示例7: safe_slash_html

     $metak = safe_slash_html(strip_tags($_POST['post-metak']));
 }
 if (isset($_POST['post-metad'])) {
     $metad = safe_slash_html(strip_tags($_POST['post-metad']));
 }
 if (isset($_POST['post-author'])) {
     $author = safe_slash_html($_POST['post-author']);
 }
 if (isset($_POST['post-template'])) {
     $template = $_POST['post-template'];
 }
 if (isset($_POST['post-parent'])) {
     $parent = $_POST['post-parent'];
 }
 if (isset($_POST['post-menu'])) {
     $menu = var_out(xss_clean($_POST['post-menu']));
 }
 if (isset($_POST['post-menu-enable'])) {
     $menuStatus = "Y";
 } else {
     $menuStatus = "";
 }
 if (isset($_POST['post-private'])) {
     $private = safe_slash_html($_POST['post-private']);
 }
 if (isset($_POST['post-content'])) {
     $content = safe_slash_html($_POST['post-content']);
 }
 if (isset($_POST['post-menu-order'])) {
     if (is_numeric($_POST['post-menu-order'])) {
         $menuOrder = $_POST['post-menu-order'];
开发者ID:hatasu,项目名称:appdroid,代码行数:31,代码来源:changedata.php

示例8: stripslashes

    $parent = $data_edit->parent;
    $author = $data_edit->author;
    $menu = stripslashes($data_edit->menu);
    $private = $data_edit->private;
    $menuStatus = $data_edit->menuStatus;
    $menuOrder = $data_edit->menuOrder;
    $buttonname = i18n_r('BTN_SAVEUPDATES');
} else {
    // prefill fields is provided
    $title = isset($_GET['title']) ? var_out($_GET['title']) : '';
    $template = isset($_GET['template']) ? var_out($_GET['template']) : '';
    $parent = isset($_GET['parent']) ? var_out($_GET['parent']) : '';
    $menu = isset($_GET['menu']) ? var_out($_GET['menu']) : '';
    $private = isset($_GET['private']) ? var_out($_GET['private']) : '';
    $menuStatus = isset($_GET['menuStatus']) ? var_out($_GET['menuStatus']) : '';
    $menuOrder = isset($_GET['menuOrder']) ? var_out($_GET['menuOrder']) : '';
    $buttonname = i18n_r('BTN_SAVEPAGE');
}
// MAKE SELECT BOX OF AVAILABLE TEMPLATES
if ($template == '') {
    $template = 'template.php';
}
$themes_path = GSTHEMESPATH . $TEMPLATE;
$themes_handle = opendir($themes_path) or die("Unable to open " . GSTHEMESPATH);
while ($file = readdir($themes_handle)) {
    if (isFile($file, $themes_path, 'php')) {
        if ($file != 'functions.php' && substr(strtolower($file), -8) != '.inc.php' && substr($file, 0, 1) !== '.') {
            $templates[] = $file;
        }
    }
}
开发者ID:hatasu,项目名称:appdroid,代码行数:31,代码来源:edit.php

示例9: i18n

include 'template/include-nav.php';
?>

<div class="bodycontent clearfix">
	<div id="maincontent">
			
		<div class="main">
		<h3 class="floated"><?php 
i18n('IMG_CONTROl_PANEL');
?>
<span class="crumbs">
		<a href="upload.php"><?php 
echo i18n_r('FILES');
?>
</a> / <?php 
echo breadcrumbs(var_out($subPath . $src), 'upload.php?path=');
?>
</span></h3>
		<div class="edit-nav clearfix" >
			<?php 
exec_action(get_filename_id() . '-edit-nav');
?>
		</div>
		<?php 
exec_action(get_filename_id() . '-body');
echo '<div class="thumbs clearfix">';
echo '<div class="thumbcontainer"><a href="' . $src_url . rawurlencode($src) . '" rel="fancybox_i" >';
// echo '<div><img src="'.$thumb_url . 'thumbsm.'. rawurlencode($src).'"></div>';
echo '<div><img src="' . $src_url . rawurlencode($src) . '"></div>';
echo i18n_r('ORIGINAL_IMG') . '<br/><code>' . $imgwidth . 'x' . $imgheight . '</code>';
echo "</a></div>";
开发者ID:kix23,项目名称:GetSimpleCMS,代码行数:31,代码来源:image.php

示例10: i18n_r

		<div class="main">
		<?php 
if (empty($log_name)) {
    echo '<h3 class="floated">' . i18n_r('VIEW_LOG_FILE') . '</h3><div class="clear"></div>';
    echo '<ul>';
    echo '<li><a href="log.php?log=failedlogins.log">Failed Logins</a></li>';
    echo '<li><a href="log.php?log=logins.log">Logins</a></li>';
    echo '</ul>';
} else {
    ?>
	
			<h3 class="floated"><?php 
    echo i18n_r('VIEW_LOG_FILE');
    ?>
<span> / <?php 
    echo var_out($log_name);
    ?>
</span></h3>
			<div class="edit-nav" >
				<a href="log.php?log=<?php 
    echo $log_name;
    ?>
&action=delete&nonce=<?php 
    echo get_nonce("delete");
    ?>
" accesskey="<?php 
    echo find_accesskey(i18n_r('CLEAR_ALL_DATA'));
    ?>
" title="<?php 
    i18n('CLEAR_ALL_DATA');
    ?>
开发者ID:promil23,项目名称:GetSimpleCMS,代码行数:31,代码来源:log.php

示例11: get_pages_menu

/**
 * Recursive list of pages
 *
 * Returns a recursive list of items for the main page
 *
 * @author Mike
 *
 * @since 3.0
 * @uses $pagesSorted
 *
 * @param string $parent
 * @param string $menu
 * @param int $level
 * 
 * @returns string
 */
function get_pages_menu($parent, $menu, $level)
{
    global $pagesSorted;
    $items = array();
    foreach ($pagesSorted as $page) {
        if ($page['parent'] == $parent) {
            $items[(string) $page['url']] = $page;
        }
    }
    if (count($items) > 0) {
        foreach ($items as $page) {
            $dash = "";
            if ($page['parent'] != '') {
                $page['parent'] = $page['parent'] . "/";
            }
            for ($i = 0; $i <= $level - 1; $i++) {
                if ($i != $level - 1) {
                    $dash .= '<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>';
                } else {
                    $dash .= '<span>&nbsp;&nbsp;&ndash;&nbsp;&nbsp;&nbsp;</span>';
                }
            }
            $menu .= '<tr id="tr-' . $page['url'] . '" >';
            if ($page['title'] == '') {
                $page['title'] = '[No Title] &nbsp;&raquo;&nbsp; <em>' . $page['url'] . '</em>';
            }
            if ($page['menuStatus'] != '') {
                $page['menuStatus'] = ' <sup>[' . i18n_r('MENUITEM_SUBTITLE') . ']</sup>';
            } else {
                $page['menuStatus'] = '';
            }
            if ($page['private'] != '') {
                $page['private'] = ' <sup>[' . i18n_r('PRIVATE_SUBTITLE') . ']</sup>';
            } else {
                $page['private'] = '';
            }
            if ($page['url'] == 'index') {
                $homepage = ' <sup>[' . i18n_r('HOMEPAGE_SUBTITLE') . ']</sup>';
            } else {
                $homepage = '';
            }
            $menu .= '<td class="pagetitle">' . $dash . '<a title="' . i18n_r('EDITPAGE_TITLE') . ': ' . var_out($page['title']) . '" href="edit.php?id=' . $page['url'] . '" >' . cl($page['title']) . '</a><span class="showstatus toggle" >' . $homepage . $page['menuStatus'] . $page['private'] . '</span></td>';
            $menu .= '<td style="width:80px;text-align:right;" ><span>' . shtDate($page['pubDate']) . '</span></td>';
            $menu .= '<td class="secondarylink" >';
            $menu .= '<a title="' . i18n_r('VIEWPAGE_TITLE') . ': ' . var_out($page['title']) . '" target="_blank" href="' . find_url($page['url'], $page['parent']) . '">#</a>';
            $menu .= '</td>';
            if ($page['url'] != 'index') {
                $menu .= '<td class="delete" ><a class="delconfirm" href="deletefile.php?id=' . $page['url'] . '&amp;nonce=' . get_nonce("delete", "deletefile.php") . '" title="' . i18n_r('DELETEPAGE_TITLE') . ': ' . var_out($page['title']) . '" >&times;</a></td>';
            } else {
                $menu .= '<td class="delete" ></td>';
            }
            $menu .= '</tr>';
            $menu = get_pages_menu((string) $page['url'], $menu, $level + 1);
        }
    }
    return $menu;
}
开发者ID:elephantcode,项目名称:elephantcode,代码行数:73,代码来源:template_functions.php

示例12: var_in

function var_in($var, $filter = 'special')
{
    return var_out($var, $filter);
}
开发者ID:kix23,项目名称:GetSimpleCMS,代码行数:4,代码来源:security_functions.php

示例13: sprintf

         echo sprintf(i18n_r('ER_HASBEEN_DEL'), $errid) . '. <a href="backup-edit.php?p=restore&id=' . $errid . '&nonce=' . get_nonce("restore", "backup-edit.php") . '">' . i18n_r('UNDO') . '</a>';
     } else {
         if ($ptype == 'new') {
             echo sprintf(i18n_r('ER_YOUR_CHANGES'), $id) . '. <a href="deletefile.php?id=' . $id . '&nonce=' . get_nonce("delete", "deletefile.php") . '">' . i18n_r('UNDO') . '</a>';
         }
     }
     echo '</p></div>';
     break;
 case 'clone-success':
     echo '<div class="updated"><p>' . sprintf(i18n_r('CLONE_SUCCESS'), '<a href="edit.php?id=' . $errid . '">' . $errid . '</a>') . '.</p></div>';
     break;
 case 'edit-index':
     echo '<div class="error"><p><b>' . i18n_r('ERROR') . ':</b> ' . i18n_r('ER_CANNOT_INDEX') . '.</p></div>';
     break;
 case 'edit-error':
     echo '<div class="error"><p><b>' . i18n_r('ERROR') . ':</b> ' . var_out($ptype) . '.</p></div>';
     break;
 case 'pwd-success':
     echo '<div class="updated"><p>' . i18n_r('ER_NEW_PWD_SENT') . '. <a href="index.php">' . i18n_r('LOGIN') . '</a></p></div>';
     break;
 case 'pwd-error':
     echo '<div class="error"><p><b>' . i18n_r('ERROR') . ':</b> ' . i18n_r('ER_SENDMAIL_ERR') . '.</p></div>';
     break;
 case 'del-success':
     echo '<div class="updated"><p>' . i18n_r('ER_FILE_DEL_SUC') . ': <b>' . $errid . '</b></p></div>';
     break;
 case 'flushcache-success':
     echo '<div class="updated"><p>' . i18n_r('FLUSHCACHE-SUCCESS') . '</p></div>';
     break;
 case 'del-error':
     echo '<div class="error"><p><b>' . i18n_r('ERROR') . ':</b> ' . i18n_r('ER_PROBLEM_DEL') . '.</p></div>';
开发者ID:hatasu,项目名称:appdroid,代码行数:31,代码来源:error_checking.php

示例14: isset

$filesSorted = null;
$dirsSorted = null;
$path = isset($_GET['path']) ? "../data/uploads/" . $_GET['path'] : "../data/uploads/";
$subPath = isset($_GET['path']) ? $_GET['path'] : "";
if (!path_is_safe($path, GSDATAUPLOADPATH)) {
    die;
}
$returnid = isset($_GET['returnid']) ? var_out($_GET['returnid']) : "";
$func = isset($_GET['func']) ? $_GET['func'] : "";
$path = tsl($path);
// check if host uses Linux (used for displaying permissions
$isUnixHost = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? false : true;
$CKEditorFuncNum = isset($_GET['CKEditorFuncNum']) ? var_out($_GET['CKEditorFuncNum']) : '';
$sitepath = suggest_site_path();
$fullPath = $sitepath . "data/uploads/";
$type = isset($_GET['type']) ? var_out($_GET['type']) : '';
global $LANG;
$LANG_header = preg_replace('/(?:(?<=([a-z]{2}))).*/', '', $LANG);
?>
<!DOCTYPE html>
<html lang="<?php 
echo $LANG_header;
?>
">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"  />
	<title><?php 
echo i18n_r('FILE_BROWSER');
?>
</title>
	<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
开发者ID:Kevinf63,项目名称:KevPortfolio,代码行数:31,代码来源:filebrowser.php

示例15: list

    }
}
$thumb_exists = $thwidth = $thheight = $thtype = $athttr = '';
list($imgwidth, $imgheight, $imgtype, $imgattr) = getimagesize($src_folder . $subPath . $src);
if (file_exists($thumb_folder . 'thumbnail.' . $src)) {
    list($thwidth, $thheight, $thtype, $athttr) = getimagesize($thumb_folder . 'thumbnail.' . $src);
    $thumb_exists = ' &nbsp; | &nbsp; <a href="' . $thumb_url . 'thumbnail.' . rawurlencode($src) . '" rel="facybox_i" >' . i18n_r('CURRENT_THUMBNAIL') . '</a> <code>' . $thwidth . 'x' . $thheight . '</code>';
} else {
    // if thumb is missing recreate it
    require_once 'inc/imagemanipulation.php';
    if (genStdThumb($subPath, $src)) {
        list($thwidth, $thheight, $thtype, $athttr) = getimagesize($thumb_folder . 'thumbnail.' . $src);
        $thumb_exists = ' &nbsp; | &nbsp; <a href="' . $thumb_url . 'thumbnail.' . rawurlencode($src) . '" rel="facybox_i" >' . i18n_r('CURRENT_THUMBNAIL') . '</a> <code>' . $thwidth . 'x' . $thheight . '</code>';
    }
}
$pagetitle = i18n_r('IMAGES') . ' &middot; ' . var_out($src) . ' &middot; ' . i18n_r('FILE_MANAGEMENT');
get_template('header');
include 'template/include-nav.php';
?>

<div class="bodycontent clearfix">
	<div id="maincontent">
			
		<div class="main">
		<h3><?php 
i18n('IMG_CONTROl_PANEL');
?>
</h3>
	
			<?php 
echo '<p><a href="' . $src_url . rawurlencode($src) . '" rel="facybox_i" >' . i18n_r('ORIGINAL_IMG') . '</a> <code>' . $imgwidth . 'x' . $imgheight . '</code>' . $thumb_exists . '</p>';
开发者ID:promil23,项目名称:GetSimpleCMS,代码行数:31,代码来源:image.php


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