本文整理汇总了PHP中errorbox函数的典型用法代码示例。如果您正苦于以下问题:PHP errorbox函数的具体用法?PHP errorbox怎么用?PHP errorbox使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了errorbox函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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>
示例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>
示例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
示例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;'>
示例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');
示例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
示例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
示例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
}
?>
示例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
示例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>
示例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>
示例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 terms and 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 terms and limitations</a>.
//</label>
$html .= ' </div>
<div style="margin-top: 10px;">
<input type="submit" name="submit" value="Install" style="padding:4px; font-weight:bold;" />
</div>
示例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");
示例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');
?>