本文整理汇总了PHP中show_info函数的典型用法代码示例。如果您正苦于以下问题:PHP show_info函数的具体用法?PHP show_info怎么用?PHP show_info使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_info函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rating_insert
$retval = rating_insert($r);
if ($retval) {
vol_new_rating($vol, $rating);
}
}
if (!$retval) {
echo mysql_error();
boinc_error_page("database error");
}
page_head("Feedback recorded");
echo "Your feedback has been recorded. Thanks.\n <p>\n <a href=help.php>Return to BOINC Help</a>.\n ";
page_tail();
} else {
page_head("Help Volunteer: {$vol->name}");
skype_script();
echo show_info($vol);
if (false) {
$status = skype_status($vol->skypeid);
if ($status != $vol->status) {
$vol->status = $status;
$vol->last_check = time();
if (online($vol->status)) {
$vol->last_online = time();
}
vol_update_status($vol);
}
$image = button_image($status);
echo "\n <script type=\"text/javascript\" src=\"http://download.skype.com/share/skypebuttons/js/skypeCheck.js\"></script>\n <img src=images/help/{$image}><p>\n ";
echo "<table class=box cellpadding=8 width=100%><tr><td width=40%>";
if (online($status)) {
live_contact($vol);
示例2: show_info
$res = show_info('succ', '处理成功');
} else {
$res = show_info('succ', '处理成功');
}
echo json_encode($res);
log_info("set friend action: send_notice_to_uid {$ret}");
return 0;
} else {
log_info("set friend action fail: 请选择执行的动作");
$res = show_info('fail', '请选择执行的动作');
echo json_encode($res);
return 0;
}
} catch (PDOException $e) {
$db->rollback();
log_info("set friend action fail, " . $e->getMessage());
$res = show_info('fail', $e->getMessage());
$res['localdes'] = $e->getMessage();
echo json_encode($res);
return 1;
}
return 0;
} else {
log_info("set friend action fail: parameters error");
$res['status'] = 'fail';
$res['des'] = 'parameters error';
}
echo json_encode($res);
?>
示例3: elseif
}
} elseif ($action == 'ziped') {
if ($dir) {
require_once THIS_DIR . '/pclzip.lib.php';
unlink($dir . '/folder.zip');
$archive = new PclZip($dir . '/folder.zip');
$archive->add($dir, PCLZIP_OPT_REMOVE_PATH, $dir);
} else {
show_info('info', 'Ошибка: директория не найдена');
}
} elseif ($action == 'createDir') {
$dirname = isset($_POST['dirname']) ? replase($_POST['dirname']) : false;
if ($dirname && $dirname !== '') {
@mkdir($dir . '/' . $dirname);
} else {
show_info('info', 'Ошибка при создании директории');
}
} elseif ($action == 'edit') {
print @file_get_contents($dir . '/' . $idName);
} elseif ($action == 'save_edit') {
$dataf = convert_ch(stripcslashes(trim($_POST['data'])));
print @file_put_contents($dir . '/' . $idName, $dataf);
} elseif ($action == 'convert') {
$p = isset($_POST['p']) ? intval($_POST['p']) : false;
$fileload = @file_get_contents($dir . '/' . $idName);
if ($p) {
$fileload = mb_convert_encoding($fileload, "Windows-1251", "UTF-8");
@file_put_contents($dir . '/' . $idName, $fileload);
} else {
$fileload = mb_convert_encoding($fileload, "UTF-8", "Windows-1251");
@file_put_contents($dir . '/' . $idName, $fileload);
示例4: while
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$g_member = array();
$g_member['uid'] = $row['id'];
$g_member['nickname'] = $row['nickname'];
$g_member['birthday'] = $row['birthday'];
$g_member['gender'] = $row['gender'];
$g_member['status'] = $row['status'];
$g_member['icon'] = get_avatar_url($row['id']);
$g_member_list[] = $g_member;
}
//不管执行成功还是失败最后都要在关闭自动提交
$db->setAttribute(PDO::ATTR_AUTOCOMMIT, 1);
log_info("make group succ. uid:{$uid}");
$group_data = array();
$group_data['gid'] = $gid;
$group_data['nickname'] = $group_name;
$group_data['owner'] = $owner_id;
$group_data['status'] = 0;
$group_data['icon'] = get_group_avatar_url($gid);
$group_data['members'] = $g_member_list;
$res = show_info('succ', '注册成功!');
$res['group'] = $group_data;
echo json_encode($res);
return 0;
} else {
log_info("register fail, parameters error");
$res['status'] = 'fail';
$res['des'] = 'parameters error';
echo json_encode($res);
}
示例5: prp_count_cats
}
if (!checkgroup($data['access']) && $prp->settings['hide_cats']) {
continue;
}
$cnt_cats = prp_count_cats($id);
$cnt_downs = prp_count_dl($all_cats, $id);
$cats[$id] = array("name" => $data['name'], "cnt_downs" => $cnt_downs, "cnt_cats" => $cnt_cats, "desc" => parseubb($data['desc']));
}
}
prp_render_cats($catid, $review->id, $path, $cats);
unset($path, $cats);
if (!is_null($access_group)) {
if ($prp->settings['hide_cats']) {
fallback("error.php?type=access");
}
show_info('<img src="icons/lock.png" alt="' . $locale['prp_locked'] . '" /> ' . str_replace('%s', getgroupname($access_group), $locale['PRP215']));
}
}
/***************************************************************************
* DOWNLOADS *
***************************************************************************/
if (is_null($access_group) && !$review->id && (!isset($catid) || $catid != 0)) {
$rowstart = 0;
if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])) {
$rowstart = $_GET['rowstart'];
}
$downs = array();
if (isset($catid)) {
$get = array('type' => 'cat', 'data' => $catid);
} else {
$get = array('type' => 'none');
示例6: dbquery
$sel_cat = "<option value='0'>" . $locale['PDP033'] . "</option>\n{$sel_cat}";
/*
* CREATE LICENSE SEL
*/
$query_id = dbquery("SELECT license_id, license_name" . " FROM " . DB_PDP_LICENSES);
$sel_license = "<option value='0'>" . $locale['PDP033'] . "</option>\n";
while ($data = dbarray($query_id)) {
$sel_license .= "<option value='" . $data['license_id'] . "'>" . $data['license_name'] . "</option>\n";
}
/*
* GUI
*/
opentable($locale['PDP860']);
pdp_admin_menu();
if (count($all_cats) == 0) {
show_info($locale['PDP825']);
}
// php fusion downloads -> pro/download downloads
$query_id = dbquery("SELECT download_title, download_cat_name, download_url,\n\tdownload_id, download_license\n\tFROM " . DB_DOWNLOADS . "\n\tLEFT JOIN " . DB_DOWNLOAD_CATS . "\n\t\tON download_cat=download_cat_id");
echo "<p>" . $locale['PDP863'] . "\n<p><form method='post' action='" . FUSION_SELF . "?do_import=yes'>\n<table class='tbl-border' width='100%' cellspacing='1'>\n<tr>\n\t<th colspan='3'>" . $locale['PDP864'] . "</th>\n\t<th width='1%'><img src='" . THEME . "images/right.gif' alt='-->'></th>\n\t<th colspan='2'>" . $locale['PDP865'] . "</th>\n</tr>\n<tr>\n\t<td class='tbl2' width='1%'></td>\n\t<td class='tbl2'><b>" . $locale['PDP002'] . "</b></td>\n\t<td class='tbl2'><b>" . $locale['PDP217'] . " / " . $locale['PDP012'] . " / " . $locale['pdp_license'] . "</b></td>\n\t<td class='tbl2'><img src='" . THEME . "images/right.gif' alt='-->'></td>\n\t<td class='tbl2'></td>\n</tr>\n";
while ($data = dbarray($query_id)) {
$id = $data['download_id'];
if (!isset($imported[$id])) {
$imported[$id] = "";
}
echo "<tr>\n\t<td class='tbl1' style='white-space:nowrap;'>" . $imported[$id] . "<input type='checkbox' name='take[{$id}]' checked></td>\n\t<td class='tbl1'>" . $data['download_title'] . "</td>\n\t<td class='tbl1' colspan='3'><input type='text' class='textbox' size='60'" . " value='" . $data['download_url'] . "' name='down[{$id}]'></td>\n</tr>\n<tr>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'>" . $data['download_cat_name'] . "</td>\n\t<td class='tbl2'><img src='" . THEME . "images/right.gif' alt='-->'></td>\n\t<td class='tbl1'><select name='cat[{$id}]' class='textbox'>{$sel_cat}</select></td>\n</tr>\n<tr>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'>" . $data['download_license'] . "</td>\n\t<td class='tbl2'><img src='" . THEME . "images/right.gif' alt='-->'></td>\n\t<td class='tbl1'><select name='license[{$id}]' class='textbox'>{$sel_license}</select></td>\n</tr>\n<tr>\n\t<td class='forum-caption' colspan='5'></td>\n</tr>\n";
}
echo "</table>\n";
if ($do_import) {
echo "\n<p>\n\t<strong>" . $locale['PDP861'] . "</strong>\n</p>\n";
} else {
示例7: opendir
}
if ($host) {
$libdir = $libdir . "/{$host}";
$imgdir = "img/{$host}";
}
$handle = opendir($libdir);
$hosts = array();
while ($file = readdir($handle)) {
if ($file != "." && is_dir("{$libdir}/{$file}")) {
if (file_exists("{$libdir}/{$file}/{$as_pkg}.state")) {
$hosts[] = $file;
}
}
}
if (extension_loaded('Reflection') && $debug == 'true') {
$dbg_msg .= show_info('dummy', 0);
}
/*
* Finish up the html with the description of the message classifications
*/
if ($legend == 'true') {
$legend_msg = "<table style=\"font-size:x-small;\" cellpadding=0 border=0 cellspacing=0>\n\t<tr>\n\t\t<td><b><font color=green>Passed CLEAN</font></b>:</td><td> </td><td>clean or '\$tag_level' < '\$tag2_level'</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=green>Passed SPAM</font></b>:</td><td></td><td>classified as SPAM but delivered because '\$tag_level' < '\$kill_level'</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=green>Passed BANNED</font></b>:</td><td></td><td>classified as BANNED but delivered</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=green>Passed BAD-HEADER</font></b>:</td><td></td><td>classified as BAD-HEADER but delivered</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked SPAM</font></b>:</td><td></td><td>not delivered, spam classified with '\$tag_level' >= '\$kill_level' and '\$final_spam_destiny' != 'pass'</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked BANNED</font></b>:</td><td></td><td>not delivered, banned file extension attached.</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked BAD-HEADER</font></b>:</td><td></td><td>not delivered, contains bad headers.</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked INFECTED</font></b>:</td><td></td><td>not delivered, contains virus</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Not Delivered</font></b>:</td><td></td><td>could not be delivered, e.g. destination host refuses to accept delivery.</td>\n\t</tr>\n</table>\n";
}
$template = new Template($as_root_path . $template_path);
$template->assign_vars(array("PAGE_TITLE" => $title));
$template->set_filenames(array('body' => 'index_body.tpl'));
$template->assign_vars(array('S_CONTENT_DIRECTION' => 'ltr', 'S_CONTENT_ENCODING' => 'iso-8859-1', 'RATE' => $rate, 'META_REFRESH' => $refresh && is_numeric($refresh) && $refresh > 0 ? "<meta http-equiv=\"refresh\" content=\"{$refresh}\">" : NULL, 'REFRESH' => $refresh && is_numeric($refresh) && $refresh > 0 ? $refresh : 0, 'LEGEND' => $legend, 'LEGEND_MSG' => $legend_msg, 'SPAN' => $span, 'PGRAPH' => asLoadStats($host) ? asPGraph("{$imgdir}/passed-{$span}.png", $now, $span) : "No statistics available.", 'VGRAPH' => asLoadStats($host) ? asVGraph("{$imgdir}/virus-{$span}.png", $now, $span) : "No statistics available.", 'SBGRAPH' => asLoadStats($host) ? asSBGraph("{$imgdir}/sb-{$span}.png", $now, $span) : "No statistics available.", 'VERSION' => $as_version, 'OUT_MSG' => $out_msg ? $out_msg : '', 'DBG_MSG' => $dbg_msg ? $dbg_msg : '', "PAGE_TITLE" => $title, 'HOST' => $host));
$template->assign_block_vars("time_date_row", array("CURRENT_DATE" => strftime("%A %B %d %H:%M:%S (GMT%z)", time())));
$template->assign_block_vars("button_row", array("BUTTON" => $debug != 'true' ? "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug=true&rate={$rate}&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=debug\"></a>" : "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug=false&rate={$rate}&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=nodebug\"></a>"));
$template->assign_block_vars("button_row", array("BUTTON" => $rate != 3600 ? "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug={$debug}&rate=3600&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=hour\"></a>" : "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug={$debug}&rate=60&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=min\"></a>"));
$button_text = array('daily', 'weekly', 'monthly', 'yearly');
示例8: array
***************************************************************************/
if (!defined('IN_FUSION') || !checkrights('IP')) {
die;
}
/****************************************************************************
* CHECK FOR FILE UPDATES
*/
$obsolete_files = array('tooltips.js', 'cross.js', 'week.php', 'browse.php');
$files_to_delete = array();
foreach ($obsolete_files as $file) {
if (file_exists($file)) {
$files_to_delete[] = $file;
}
}
if (count($files_to_delete)) {
show_info($files_to_delete, 'warning', $locale['awec_pls_delete']);
}
/****************************************************************************
* CHECK FOR DB UPDATES
*/
$mysql = array();
switch ($awec_settings['version']) {
case "0.2.0":
case "0.3.0":
$newver = "0.3.5";
$mysql[] = "ALTER TABLE " . DB_PREFIX . "aw_ec_events\n\t\tADD COLUMN ev_login_limit tinyint(1) unsigned NOT NULL default '0'";
$mysql[] = "ALTER TABLE " . DB_PREFIX . "aw_ec_events\n\t\tCHANGE COLUMN ev_rep_year ev_repeat tinyint(1) unsigned NOT NULL default '0'";
break;
case "0.3.5":
case "0.4.1":
$newver = "0.3.7";
示例9: opentable
* Copyright (C) pirdani *
* pirdani@hotmail.de *
* http://pirdani.de/ *
* *
* Copyright (C) 2005 EdEdster (Stefan Noss) *
* http://edsterathome.de/ *
* *
* Copyright (C) 2006-2008 Artur Wiebe *
* wibix@gmx.de *
* http://wibix.de/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
require_once 'include/common.php';
require_once 'include/theme_funcs.php';
if (isset($_GET['type']) && isset($locale['PDP341'][$_GET['type']])) {
$err = $_GET['type'];
} else {
$err = '-';
}
opentable($pdp->settings['title']);
pdp_menu();
closetable();
opentable($locale['PDP049']);
echo '<p>' . $locale['PDP340'] . '</p>';
show_info('<strong>' . $locale['PDP341'][$err] . '</strong>', 'warning');
closetable();
require_once 'include/die.php';
示例10: dbquery
}
$res = dbquery("SELECT ev.*, user_name,\n\tDATE_FORMAT(ev_start, '" . $awec_settings['date_fmt'] . "') AS date,\n\tDATE_FORMAT(ev_end, '" . $awec_settings['date_fmt'] . "') AS end_date,\n\tDATE_FORMAT(ev_end_time, '" . $awec_settings['time_fmt'] . "') AS end_time,\n\tDATE_FORMAT(ev_start_time, '" . $awec_settings['time_fmt'] . "') AS start_time\n\tFROM " . AWEC_DB_EVENTS . " AS ev\n\tLEFT JOIN " . DB_USERS . " AS fu USING(user_id)\n\tWHERE ev_id='" . $_GET['id'] . "' {$user_access}");
if (dbrows($res) == 0) {
fallback('index.php');
}
$event = dbarray($res);
if (!empty($user_access) && !checkgroup($event['ev_access'])) {
fallback('index.php');
}
$event['date'] = '<a href="day.php?date=' . $event['ev_start'] . '">' . $event['date'] . '</a>';
$event['hide_logins'] = true;
/****************************************************************************
* GUI
*/
//opentable($locale['EC300']);
opentable($event['ev_title']);
awec_menu();
if ($event['ev_status']) {
show_info($locale['awec_status_longdesc'][$event['ev_status']]);
}
awec_render_event($event, '&time=' . $event['ctime']);
closetable();
/*
require_once INCLUDES."comments_include.php";
showcomments("E","aw_ec_events","ev_id",$event['ev_id'],FUSION_SELF.'?id='.$event['ev_id']);
*/
$can_login = checkgroup($event['ev_login_access']);
if ($event['ev_allow_logins'] && ($can_login || !$event['hide_logins'])) {
require_once 'include/event_logins.php';
}
require_once 'include/die.php';
示例11: get_user_data
.transbox{
background:rgba(0, 0, 0, .07);
border-radius: 10px;
box-shadow: 1px 7px 36px -5px;
}
</style>
</head>
<body>
<?php
static $row;
$row = get_user_data();
?>
<div class="container text-center top-container">
<h1>Welcome <?php
show_info("first_name");
?>
</h1>
</div>
<div class="container top-container transbox">
<div class="container text-center">
<a href="add_realtor.php"> Create A Realtor</a>
</div><br>
<div class="container text-center">
<a href="admin_database.php"> Edit Listings</a>
</div><br>
<div class="container text-center">
<a href="contactUsers.php"> User Messages</a>
</div> </div>
示例12: define
<?php
@session_start();
@set_time_limit(0);
@error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
@ini_set('display_errors', true);
@ini_set('html_errors', false);
@ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE);
define('ROOT_DIR', dirname(dirname(__FILE__)));
define('THIS_DIR', dirname(__FILE__));
require_once THIS_DIR . '/function.php';
require_once THIS_DIR . '/login.php';
if (!$is_logged) {
show_info('sesion');
}
$is_logged = login_alt($is_logged);
@mkdir(ROOT_DIR . '/cache/' . $is_logged);
$loadSt = isset($_GET['prew']) ? false : true;
?>
<!DOCTYPE HTML>
<head>
<title>RAID - Iframe Result</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="styleIframe.css" type="text/css" />
<?php
if ($loadSt) {
print html_js('../lib/js', array('jquery'));
print html_js('../lib/js', array('iframe_result'));
?>
<script>
$(document).ready(function(){
示例13: opentable
* Copyright (C) pirdani *
* pirdani@hotmail.de *
* http://pirdani.de/ *
* *
* Copyright (C) 2005 EdEdster (Stefan Noss) *
* http://edsterathome.de/ *
* *
* Copyright (C) 2006-2008 Artur Wiebe *
* wibix@gmx.de *
* http://wibix.de/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
require_once 'include/common.php';
require_once 'include/theme_funcs.php';
if (isset($_GET['type']) && isset($locale['PDP341'][$_GET['type']])) {
$err = $_GET['type'];
} else {
$err = '-';
}
opentable($pdp->settings['title']);
pdp_menu();
closetable();
opentable($locale['PDP049']);
echo '<p>' . $locale['PDP340'] . '</p>';
show_info('<img src="icons/messagebox_warning.png" alt="' . $locale['pdp_warning'] . '" style="float:left; padding-right:10px;" /> <strong>' . $locale['PDP341'][$err] . '</strong>', 'warning', true);
closetable();
require_once 'include/die.php';
示例14: foreach
foreach ($values as $style => $value) {
$compliteStyle .= ' ' . $style . ': ' . $value . ";\n";
}
$compliteStyle .= "}\n";
}
}
}
}
$compliteStyle .= "</style>\n";
}
$compliteStyle = preg_replace("'<style[^>]*>\\s*<\\/style>'si", '', $compliteStyle);
@mkdir(ROOT_DIR . '/userData/userData/' . $is_logged);
@file_put_contents(ROOT_DIR . '/userData/userData/' . $is_logged . '/' . $filenames . '.html', $compliteStyle . $dataPost);
}
} else {
show_info('info', 'Возникла ошибка получения данных.');
}
} elseif ($action == 'allPrj') {
$file = my_fileBuld($dirName);
$allowed = array('prj');
if (count($file['dir']) > 0) {
foreach ($file['dir'] as $name) {
$p++;
$p = $p > 2 ? 1 : $p;
$date = @date("F d Y", @filemtime($dirName . '/' . $name));
$size = FSizeNumber(sizeFolder($dirName . '/' . $name));
$prj .= '<li class="li_prj_' . $name . ' p_' . $p . '"><div class="lineB"><img src="lib/images/future_projects.png" class="left" /><div class="left textPad" style="min-width: 100px; font-weight: bold">' . $name . '</div><div class="left grayColor textPad" style="min-width: 110px">' . $date . '</div><div class="left grayColor textPad">' . $size . '</div><div class="right"><div class="grayBtn" style="margin-right: 10px" onclick="file.open(\'' . $name . '\')">Открыть</div><div class="grayBtn" onclick="file.del(\'' . $name . '\')">Удалить</div></div><div class="clear"></div></div></li>';
}
print '<ul class="ul tableList projectList">' . $prj . '</ul>';
} else {
print 'Вы еще не создали ни один проект.';
示例15: show_end
show_end();
unset($_SESSION["option"]);
unset($_SESSION["info"]);
unset($_SESSION["history"]);
session_destroy();
}
} else {
# i.e. strcmp($option, 'choice') == 0
$value = $_POST["value"];
# Get the choice
$_SESSION["history"][] = $value;
# Update the history
if ($value == 1) {
# Show correct output based on choice
show_header();
show_info();
show_menu();
show_end();
} elseif ($value == 2) {
show_header();
$time = time();
$strtime = date("Y-m-d-H:i:s", $time);
# see date() function
echo "{$strtime} <br />";
show_menu();
show_end();
} elseif ($value == 3) {
show_header();
$hist = $_SESSION["history"];
foreach ($hist as $key => $value) {
echo "{$key}: ";