• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP errorbox函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: settingsfileq

function settingsfileq()
{
    global $wgmicpgpsetfile;
    $html = null;
    if (@file_exists("extensions/GroupPermissions/settings.php")) {
        $set = @$wgmicpgpsetfile;
        if ($set !== "yes") {
            $html = $html . errorbox('<strong>WARNING: </strong>Please add require_once("$IP/extensions/GroupPermissions/settings.php"); to Localsettings.php for changes to be applied to this wiki');
        }
    }
    return $html;
}
开发者ID:mediawiki-extensions,项目名称:micp,代码行数:12,代码来源:GroupPermissions.php


示例2: array

invite/sentinvites"><b><?php 
echo $this->lang('os_invite_tab_sentinvites');
?>
</b></a>
			</div>
			<div class="invinfo">
				<?php 
echo $this->lang('os_invite_txt_uploadcsv', array('#SITE_TITLE#' => $C->SITE_TITLE));
?>
			</div>

			<?php 
if ($D->error) {
    ?>
			<?php 
    echo errorbox($this->lang('inv_uplfile_error'), $this->lang($D->errmsg), TRUE, 'margin-bottom:5px;');
    ?>
			<?php 
}
?>
			
			<div class="greygrad">
				<div class="greygrad2">
					<div class="greygrad3" style="padding-bottom:0px;">
						<form method="post" action="" enctype="multipart/form-data">
							<table id="setform" cellspacing="5">
								<tr>
									<td class="setparam"><?php 
echo $this->lang('inv_uplfile_finp');
?>
</td>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:invite_uploadcsv.php


示例3: header

        $error = TRUE;
        break;
    }
}
if (!$error) {
    $_SESSION['INSTALL_STEP'] = 3;
    header('Location: ?next&r=' . rand(0, 99999));
}
$html .= '
							<div class="ttl">
								<div class="ttl2">
									<h3>System Compatibility Check</h3>
								</div>
							</div>';
if ($error) {
    $html .= errorbox('Not Compatible', 'Please correct the highlighted settings and hit "Refresh".', FALSE, 'margin-top:5px;margin-bottom:0px;');
    $_SESSION['INSTALL_STEP'] = 2;
}
$html .= '
							<div class="greygrad" style="margin-top: 5px;">
								<div class="greygrad2">
									<div class="greygrad3" style="padding-top:0px;">
										<table cellpadding="5" style="width:100%;">';
foreach ($check as $k => $v) {
    $txt = $texts[$k];
    $html .= '
											<tr>
												<td colspan="2" style="font-size:0; line-height:0; height: 0; padding: 0; border-bottom: 1px solid #efefef;"></td>
											</tr>
											<tr>
												<td style="' . ($v ? '' : 'color:red;font-weight:bold;') . '">' . $txt . '</td>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:step_3.php


示例4: okbox

</h3></div>
					</div>
					<?php 
if ($D->submit && !$D->error) {
    ?>
						<?php 
    echo okbox($this->lang('cntf_ok_ttl'), $this->lang('cntf_ok_txt'), FALSE, 'margin-top:5px;margin-bottom:5px;');
    ?>
					<?php 
} else {
    ?>
						<?php 
    if ($D->error) {
        ?>
							<?php 
        echo errorbox($this->lang('cntf_error'), $this->lang($D->errmsg), TRUE, 'margin-top:5px;margin-bottom:5px;');
        ?>
						<?php 
    }
    ?>
						<div class="greygrad" style="margin-top:5px;">
							<div class="greygrad2">
								<div class="greygrad3">
									<form method="post" action="">	
										<table id="setform" style="width:100%;" cellspacing="5">			
											<tr>				
												<td class="setparam"><?php 
    echo $this->lang('cnt_frm_fullname');
    ?>
</td>
												<td><input type="text" class="setinp" name="fullname" value="<?php 
开发者ID:essa,项目名称:sharetronix_ja,代码行数:31,代码来源:contacts.php


示例5: okbox

							<div class="ttl"><div class="ttl2"><h3><?php 
echo $this->lang('settings_email_ttl2');
?>
</h3></div></div>
							
							<?php 
if ($D->submit && !$D->error && !$D->notif) {
    ?>
								<?php 
    echo okbox($this->lang('st_email_okttl'), $this->lang('st_email_oktxt'), FALSE, 'margin-top:5px;');
    ?>
							<?php 
} elseif ($D->submit && $D->error && !$D->notif) {
    ?>
								<?php 
    echo errorbox($this->lang('st_email_current_errttl'), $D->errmsg, TRUE, 'margin-top:5px;');
    ?>
							<?php 
} elseif ($D->submit && $D->error && $D->notif) {
    ?>
								<?php 
    echo msgbox($this->lang('st_email_notif_sendttl'), $this->lang('st_email_notif_send', array('#EMAIL#' => $D->new_email)), FALSE, 'margin-top:5px;');
    ?>
							<?php 
}
?>
							
							<?php 
if (!$D->notif && !$D->new_email_active) {
    ?>
							<div style='margin-top: 10px;'>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:settings_email.php


示例6: errorbox

    ?>
 / <?php 
    echo $D->steps;
    ?>
</span></div>
				<?php 
}
?>
			</div>
		</div>
		
		<?php 
if ($D->error) {
    ?>
			<?php 
    echo errorbox($this->lang('signup_step2_error'), $this->lang($D->errmsg, $D->errmsg_lngkeys));
    ?>
		<?php 
}
?>
		<form method="post" action="">
			<table id="regform" cellspacing="5" style="margin-bottom:10px;">
				<?php 
if (preg_match('/\\@proxymail\\.facebook\\.com$/iu', $D->email)) {
    ?>
				<?php 
} elseif ($C->USERS_EMAIL_CONFIRMATION) {
    ?>
				<tr>
					<td class="regparam" style="padding:5px; padding-top:7px;"><?php 
    echo $this->lang('signup_step2_form_email');
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:signup-step2.php


示例7: errorbox

							</div>
						</div>
						<div id="settings_right">
							<div class="ttl">
								<div class="ttl2">
									<h3><?php 
echo $this->lang('settings_delaccount_ttl2');
?>
</h3>
								</div>
							</div>
							<?php 
if ($D->error) {
    ?>
							<?php 
    echo errorbox($this->lang('st_delaccount_error'), $this->lang($D->errmsg), TRUE, 'margin-top:5px;margin-bottom:5px;');
    ?>
							<?php 
}
?>
							<div class="greygrad" style="margin-top:5px;">
								<div class="greygrad2">
									<div class="greygrad3">
										<?php 
echo $this->lang('st_delaccount_description');
?>
										
										<form method="post" name="delaccount" onsubmit="return confirm('<?php 
echo htmlspecialchars($this->lang('st_delaccount_confirm'));
?>
');" action="<?php 
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:settings_delaccount.php


示例8: errorbox

<?php

$this->load_template('header.php');
?>
		
			<?php 
if ($D->error) {
    ?>
				<?php 
    echo errorbox($this->lang('signin_form_error'), $this->lang($D->errmsg));
    ?>
			<?php 
} elseif ($this->param('pass') == 'changed') {
    ?>
				<?php 
    echo okbox($this->lang('signinforg_alldone_ttl'), $this->lang('signinforg_alldone_txt'));
    ?>
			<?php 
}
?>
			<div id="poblicpage_login">
				<form method="post" action="">
					<table id="regform" cellspacing="5">
						<tr>
							<td></td>
							<td>
								<b><?php 
echo $this->lang('signin_form_caption');
?>
</b>
								<a id="forgotpass" href="<?php 
开发者ID:essa,项目名称:sharetronix_ja,代码行数:31,代码来源:signin.php


示例9: elseif

api_details?app_id=<?php 
    echo $D->data['app_id'];
    ?>
' method='post'>
				<td>
				<input style="padding:4px; font-weight:bold;" type='submit' name='delete' value='<?php 
    echo $this->lang('api_app_del_msg2');
    ?>
' />
				</td>
				</form>
			</tr>
		</table>
	<?php 
} elseif ($D->error) {
    echo errorbox($this->lang('api_err_ttl'), $D->err_msg, FALSE);
} elseif (isset($D->complete)) {
    echo okbox($this->lang('api_ok_ttl'), $D->msg, FALSE);
}
if (isset($_POST['delete'])) {
    ?>
			<a href="<?php 
    echo $C->SITE_URL;
    ?>
api" class="ubluebtn"><b><?php 
    echo $this->lang('api_app_btn');
    ?>
</b></a>	
		<?php 
}
?>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:api_details.php


示例10: elseif

    }
    ?>
			<?php 
} elseif ($D->error_key) {
    ?>
				<?php 
    echo errorbox($this->lang('signinforg_errkey_ttl'), $this->lang('signinforg_errkey_txt'), FALSE);
    ?>
			<?php 
} else {
    ?>
				<?php 
    if ($D->error) {
        ?>
					<?php 
        echo errorbox($this->lang('signinforg_err'), $this->lang($D->errmsg));
        ?>
				<?php 
    }
    ?>
				<form method="post" action="">
					<table id="regform" cellspacing="5">
						<tr>
							<td class="regparam"><?php 
    echo $this->lang('signinforg_form_password');
    ?>
</td>
							<td><input type="password" name="pass1" value="" maxlength="100" class="reginp" autocomplete="off" /></td>
						</tr>
						<tr>
							<td class="regparam"><?php 
开发者ID:essa,项目名称:sharetronix_ja,代码行数:31,代码来源:signin_forgotten.php


示例11: preg_replace

        $s['SITE_URL'] = $s['SITE_URL'] . '/';
        $s['DOMAIN'] = preg_replace('/^(http|https)\\:\\/\\//', '', $s['SITE_URL']);
        $s['DOMAIN'] = trim($s['DOMAIN'], '/');
        $s['DOMAIN'] = preg_replace('/\\/.*$/', '', $s['DOMAIN']);
        $_SESSION['INSTALL_STEP'] = 6;
        header('Location: ?next&r=' . rand(0, 99999));
    }
}
$html .= '
							<div class="ttl">
								<div class="ttl2">
									<h3>Website Settings</h3>
								</div>
							</div>';
if ($error) {
    $html .= errorbox('Error', $errmsg, TRUE, 'margin-top:5px; margin-bottom:5px;');
}
$html .= '
							<div class="greygrad" style="margin-top: 5px;">
								<div class="greygrad2">
									<div class="greygrad3" style="padding-top:0px;">
										<form method="post" action="">
										<table id="setform" cellpadding="5">
											<tr>
												<td class="setparam" width="120">Website Address:</td>
												<td><input type="text" name="SITE_URL" value="' . htmlspecialchars($s['SITE_URL']) . '" class="setinp" /></td>
											</tr>
											<tr>
												<td class="setparam">Website Title:</td>
												<td><input type="text" name="SITE_TITLE" value="' . htmlspecialchars($s['SITE_TITLE']) . '" class="setinp" /></td>
											</tr>
开发者ID:essa,项目名称:sharetronix_ja,代码行数:31,代码来源:step_6.php


示例12: unset

        unset($rperms[$dr]);
        unset($recursive[$i]);
    }
}
if (!$error) {
    $_SESSION['INSTALL_STEP'] = 5;
    header('Location: ?next&r=' . rand(0, 99999));
}
$html .= '
							<div class="ttl">
								<div class="ttl2">
									<h3>Files & Folders Permissions</h3>
								</div>
							</div>';
if ($error) {
    $html .= errorbox('Please set the permissions', 'Set the permissions with your FTP client and hit "Refresh".', FALSE, 'margin-top:5px;margin-bottom:5px;');
    $_SESSION['INSTALL_STEP'] = 4;
}
$html .= '
							<div class="greygrad" style="margin-top: 5px;">
								<div class="greygrad2">
									<div class="greygrad3" style="padding-top:0px;">
										<p>The following files and folders must have read and write permissions (CHMOD <b>0777</b> or <b>0766</b>)</p>
										<table cellpadding="5" style="width:100%;">';
foreach ($files as $fl) {
    $html .= '
											<tr>
												<td colspan="2" style="font-size:0; line-height:0; height: 0; padding: 0; border-bottom: 1px solid #efefef;"></td>
											</tr>
											<tr>
												<td>' . $fl . '</td>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:step_5.php


示例13: header

            header('Location: ?next');
            exit;
        }
    }
    $html .= '
							<div class="ttl">
								<div class="ttl2">
									<h3>Welcome to ' . SITE_TITLE . ' Installation Wizard</h3>
								</div>
							</div>
							<div class="greygrad" style="margin-top: 5px;">
								<div class="greygrad2">
									<div class="greygrad3" style="padding-top:0px;">
										<p>This wizard will help you install ' . SITE_TITLE . ' ' . VERSION . ' on your webserver.</p>';
    if ($error) {
        $html .= errorbox('Sorry', 'You must accept the ' . SITE_TITLE . ' License terms and limitations to proceed with installation.');
    }
    $html .= '
								   		<form method="post" action="">
								   			<div style="margin-top: 10px; margin-left:2px;">
									   			<label>
													<input type="checkbox" name="accept1" value="1" style="margin:0px; padding:0px; border:0px solid; line-height:1; margin-right:8px;" />I accept the ' . SITE_TITLE . ' <a href="license.txt" target="_blank"> License&nbsp;terms&nbsp;and&nbsp;limitations</a>.
												</label>
												';
    //<label>
    //<input type="checkbox" name="accept2" value="1" style="margin:0px; padding:0px; border:0px solid; line-height:1; margin-right:8px;" />I accept the '.SITE_TITLE.' <a href="license_annual.txt" target="_blank">Annual License&nbsp;terms&nbsp;and&nbsp;limitations</a>.
    //</label>
    $html .= '						</div>
											<div style="margin-top: 10px;">
												<input type="submit" name="submit" value="Install" style="padding:4px; font-weight:bold;" />
								   			</div>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:step_1.php


示例14: errorbox

*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program.  If not, see <http://www.gnu.org/licenses/>.
*/
//CloudLevels Admin Control Panel
//Header + Vars:
$page_title = 'Administrator Control Panel';
include 'header.php';
//Admins only!
if ($user_type != 2) {
    errorbox('You do not have permission to view this page.');
    include 'footer.php';
    exit(0);
}
//When there is input data
if (!empty($_POST["name"])) {
    //Create configuration file:
    //Open file
    $configfile = fopen("configuration.php", "w") or die('<div class="card hoverable red"><div class="card-content white-text"><p>ERROR: File <strong>configuration.php</strong> could not be written to server.</p></div></div>');
    fwrite($configfile, "<?php\n");
    //Write database values
    fwrite($configfile, "\$db_type='" . $db_type . "';\n");
    fwrite($configfile, "\$db_hostname='" . $db_hostname . "';\n");
    fwrite($configfile, "\$db_username='" . $db_username . "';\n");
    fwrite($configfile, "\$db_password='" . $db_password . "';\n");
    fwrite($configfile, "\$db_database='" . $db_database . "';\n");
开发者ID:A-Aquino,项目名称:CloudLevels,代码行数:31,代码来源:admin.php


示例15: errorbox

}
if (($this->param('app') == 'new' || $this->param('app') == 'edit') && !$D->complete) {
    ?>
				<div class="ttl"><div class="ttl2">
					<h3><?php 
    echo $this->param('app') == 'new' ? $this->lang('api_a') : $this->lang('api_e');
    ?>
 <?php 
    echo $this->lang('api_app');
    ?>
</h3>
					</div></div>
				<div class="greygrad" style="margin-top:5px;"><div class="greygrad2"><div class="greygrad3">
				
				<?php 
    echo $D->post_fields_error ? errorbox($this->lang('api_fld_err'), $D->msg) : '';
    ?>
	
			<table id="setform" cellspacing="5">
			<form action="<?php 
    echo $C->SITE_URL;
    ?>
api/app:<?php 
    echo $this->param('app');
    echo isset($_GET['app_id']) ? '?app_id=' . $_GET['app_id'] : '';
    ?>
" enctype="multipart/form-data" method='post'>
				<tr>
					<td class="setparam" valign="top"><?php 
    echo $this->lang('api_icon_name');
    ?>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:api.php


示例16: array

			<?php 
    echo $f($D->mtitle, $D->message, FALSE);
    ?>
		<?php 
} else {
    ?>
			<div class="invinfo">
				<?php 
    echo $this->lang('os_invite_txt_colleagues', array('#SITE_TITLE#' => $C->SITE_TITLE, '#OUTSIDE_SITE_TITLE#' => $C->OUTSIDE_SITE_TITLE));
    ?>
			</div>
			<?php 
    if ($D->status == 'errorbox') {
        ?>
			<?php 
        echo errorbox($D->mtitle, $D->message, TRUE, 'margin-bottom:5px;');
        ?>
			<?php 
    }
    ?>
			<div class="greygrad">
				<div class="greygrad2">
					<div class="greygrad3" style="padding-bottom:0px;">
						<form method="post" action="">
							<table id="setform" cellspacing="5">
								<tr>
									<td></td>
									<td><b style="font-size:14px;"><?php 
    echo $this->lang('inv_clg_form_title');
    ?>
</b></td>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:invite_colleagues.php


示例17: successbox

        $stmt = $db->prepare("\n\t\t\tSELECT id, username, password\n\t\t\tFROM cl_user\n\t\t\tWHERE username = ?");
        $stmt->execute(array($_POST["username"]));
        $result = $stmt->fetchAll();
        $passhash = $result[0]['password'];
        //Compare password hash
        if (crypt($_POST["password"], $passhash) == $passhash) {
            successbox('Logging in. Please wait.');
            //Session set
            $_SESSION['uid'] = $result[0]['id'];
            //Refresh
            header("Refresh:2;url=index.php");
        } else {
            errorbox('Invalid login information.');
        }
    } catch (PDOException $ex) {
        errorbox('Something happened.');
    }
} else {
    ?>
		
		<br>
		<div class="container">
			<div class="row card hoverable">
				<span class="col s12 card-title <?php 
    echo $theme;
    ?>
 white-text center" style="font-size: 200%;">Log In</span>
				<form action="login.php" method="post" class="col s12 m10 l8 offset-m1 offset-l2">
					<div class="input-field col s12">
						<i class="fa fa-user prefix" aria-hidden="true"></i>
						<input id="username" name="username" type="text" class="validate" required>
开发者ID:A-Aquino,项目名称:CloudLevels,代码行数:31,代码来源:login.php


示例18: errorbox

?>
						</div>
						<div id="settings_right">
							<div class="ttl">
								<div class="ttl2">
									<h3><?php 
echo $this->lang('admtitle_termsofuse');
?>
</h3>
								</div>
							</div>
							<?php 
if ($D->error) {
    ?>
							<?php 
    echo errorbox($this->lang('admtrms_err_ttl'), $this->lang($D->errmsg), TRUE, 'margin-top:5px;margin-bottom:5px;');
    ?>
							<?php 
} elseif ($D->submit) {
    ?>
							<?php 
    echo okbox($this->lang('admtrms_ok_ttl'), $this->lang($D->okmsg, array('#A2#' => '</a>', '#A1#' => '<a href="' . $C->SITE_URL . 'terms">')), TRUE, 'margin-top:5px;margin-bottom:5px;');
    ?>
							<?php 
}
?>
							<div class="greygrad" style="margin-top:5px;">
								<div class="greygrad2">
									<div class="greygrad3" style="padding-top:2px;">
										<form method="post" action="">
											<table id="setform" cellspacing="5" width="100%">
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:admin_termsofuse.php


示例19: header

        $_SESSION['INSTALL_STEP'] = 2;
        header('Location: ?next&r=' . rand(0, 99999));
    }
}
$html .= '
							<div class="ttl">
								<div class="ttl2">
									<h3>Database Settings</h3>
								</div>
							</div>
							<div class="greygrad" style="margin-top: 5px;">
								<div class="greygrad2">
									<div class="greygrad3" style="padding-top:0px;">
										<p>Fill in the information about the MySQL database. For new ' . SITE_TITLE . ' installations you must create an <b>empty</b> MySQL database.</p>';
if ($error) {
    $html .= errorbox('Error', $errmsg);
}
$html .= '
										<form method="post" action="">
										<table id="setform" cellspacing="5">
											<tr>
												<td class="setparam" style="padding-bottom:0px">MySQL Host:</td>
												<td style="padding-bottom:0px;"><input type="text" class="setinp" name="MYSQL_HOST" value="' . htmlspecialchars($s['MYSQL_HOST']) . '" /></td>
											</tr>
											<tr>
												<td class="setparam" style="padding-top:0px;"></td>
												<td style="padding-top:0px; font-size:10px; color:#333;">Usually "localhost"</td>
											</tr>
											<tr>
												<td class="setparam">Username:</td>
												<td style="padding-bottom:2px;"><input type="text" autocomplete="off" class="setinp" name="MYSQL_USER" value="' . htmlspecialchars($s['MYSQL_USER']) . '" /></td>
开发者ID:chaobj001,项目名称:tt,代码行数:31,代码来源:step_2.php


示例20: errorbox

										</div>
									</td>
								</tr>
							</table>		
							<?php 
}
?>
							<div class="ttl" style="margin-top:10px; margin-bottom:6px;"><div class="ttl2"><h3><?php 
echo $this->lang('st_rssfeeds_f_title');
?>
</h3></div></div>
							<?php 
if ($D->error) {
    ?>
								<?php 
    echo errorbox($this->lang('st_rssfeeds_err'), $this->lang($D->errmsg), TRUE, 'margin-bottom:5px;');
    ?>
							<?php 
} elseif ($D->newfeed_auth_msg) {
    ?>
								<?php 
    echo msgbox($this->lang('st_rssfeeds_pwdreq_ttl'), $this->lang('st_rssfeeds_pwdreq_txt'), TRUE, 'margin-bottom:5px;');
    ?>
							<?php 
}
?>
							<form method="post" action="<?php 
echo $C->SITE_URL;
?>
settings/rssfeeds">
								<table id="setform" cellspacing="0" cellpadding="5">
开发者ID:essa,项目名称:sharetronix_ja,代码行数:31,代码来源:settings_rssfeeds.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP errorlog函数代码示例发布时间:2022-05-15
下一篇:
PHP error_string函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap