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

PHP error_handle函数代码示例

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

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



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

示例1: webuzo_acl_theme

function webuzo_acl_theme()
{
    global $theme, $globals, $l, $error, $done, $softpanel;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['heading_webuzo_acl'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />';
    error_handle($error);
    if (!empty($done)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['change_final'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" action="" method="post" name="changepass" id="editform">
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad"  style="padding-left:15px; padding-top:15px; ">
	<tr>
		<td width="70%">
			<span class="sai_head">' . $l['disable_system_apps'] . '</span><br />
			<span class="sai_exp2">' . $l['disable_system_apps_exp'] . '</span>
		</td>
		<td valign="top">
			<input type="checkbox" name="disable_syapps" ' . POSTchecked('disable_syapps', $softpanel->getconf('DISABLE_SYSAPPS')) . ' />
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<span class="sai_exp2">' . $l['root_login_admin'] . '</span><br />
		</td>
	</tr>	
	<tr align="center">
		<td colspan="2">
			<input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="savechanges" class="sai_graybluebut" />
		</td>
	</tr>	
</table>
</form><br /><br /><br />';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:35,代码来源:webuzo_acl_theme.php


示例2: ssh_access_theme

function ssh_access_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error;
    global $installations, $langs, $saved;
    softheader($l['<title>']);
    error_handle($error, '100%');
    if (!empty($saved)) {
        echo '<div class="sai_success">' . $l['settings_saved'] . '</div>';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="">
<center class="sai_tit"><img src="' . $theme['a_images'] . 'ssh_login.gif" />&nbsp;' . $l['ssh_access'] . '</center>
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" >
	<tr>
		<td>
			<span class="sai_head">' . $l['ssh_enable'] . '</font></span><br/><span class="sai_exp">' . $l['ssh_check'] . '</span>
		</td>
		<td>			
			<input type="checkbox" name="sshon" id="sshon" ' . POSTchecked('sshon', $softpanel->getssh()) . ' ">
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<p align="center">			
				<input type="submit" class="sai_graybluebut" name="editsshsettings" value="' . $l['edit_settings'] . '" />
			</p>
		</td>
	</tr>	
</table>
</form>';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:31,代码来源:ssh_access_theme.php


示例3: webuzoconfigs_theme

function webuzoconfigs_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $webuzoconfigs;
    softheader($l['<title>']);
    echo '<br /><div class="sai_heading" align="center">' . $l['pathhead'] . '</div>
	<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    if (!empty($saved)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="editconfigs" method="post" action="">
<br /><br />
<table width="95%" cellpadding="10" cellspacing="1" class="sai_reviewform" style="margin:0px auto;" border="0">
<tr>
<td align="right">
<span class="sai_head">' . $l['primary_ip'] . '</span><br />
</td>
<td valign="top" >
<input type="text" name="WU_PRIMARY_IP" size="30" value="' . aPOSTval('WU_PRIMARY_IP', $webuzoconfigs['WU_PRIMARY_IP']) . '" />
</td>
</tr>


<tr>
<td align="right">
<span class="sai_head">' . $l['primary_domain'] . '</span><br />
</td>
<td valign="top">
<input type="text" name="WU_PRIMARY_DOMAIN" size="30" value="' . aPOSTval('WU_PRIMARY_DOMAIN', $webuzoconfigs['WU_PRIMARY_DOMAIN']) . '" />
</td>
</tr>

<tr>
<td align="right">
<span class="sai_head">' . $l['ns1'] . '</span>
</td>
<td valign="top">
<input type="text" name="WU_NS1" size="30" value="' . aPOSTval('WU_NS1', $webuzoconfigs['WU_NS1']) . '" />
</td>
</tr>

<tr>
<td valign="top" align="right">
<span class="sai_head">' . $l['ns2'] . '</span>
</td>
<td valign="top">
<input type="text" name="WU_NS2" size="30" value="' . aPOSTval('WU_NS2', $webuzoconfigs['WU_NS2']) . '" />
</td>
</tr>
<tr>
<td colspan="3">
<p align="center"><input type="submit" name="editconfigs" value="' . $l['edit_configs'] . '" class="sai_graybluebut" /></p>
</td>
</tr>
</table>
</form>';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:58,代码来源:webuzoconfigs_theme.php


示例4: secure_theme

function secure_theme()
{
    global $theme, $globals, $softpanel, $user, $l, $error, $updates_available, $done, $checked, $is_secured;
    softheader($l['<title>']);
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'secure.gif" />&nbsp; ' . $l['ampps_secure'] . '<br/></center>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />';
    error_handle($error, '100%');
    if (!empty($done)) {
        echo '<div class="sai_success">' . (empty($is_secured) ? $l['ampps_unsecured'] : $l['ampps_secured']) . '</div>';
        echo '<br /><a href="' . $globals['ind'] . '">' . $l['lbl_home'] . '</a>';
    } else {
        echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
	function showpass(){
		if($_("secure").checked){		
			$_("pass_row").style.display = "";
			$_("conf_row").style.display = "";
		}else{
			$_("pass_row").style.display = "none";
			$_("conf_row").style.display = "none";
		}
	}
	addonload("showpass();");
	
	// ]]></script>
	<form action="" method="post">
	<table border="0" cellpadding="8" cellspacing="2">
	<tr>
		<td align="left"><span class="sai_head">' . $l['question'] . '</span><br/>';
        if ($is_secured == true) {
            echo '<span class="sai_exp">' . $l['is_secure'] . '<font color="green">Secured</font></span>';
        } else {
            echo '<span class="sai_exp">' . $l['is_secure'] . '<font color="red">Unsecured</font></span>';
        }
        echo '</td><td><input type="checkbox" name="secure" id="secure" ' . POSTchecked('secure', $is_secured) . ' onclick="showpass(this);"></td>
	</tr>
	<tr id="pass_row">
		<td align="right"><span class="sai_head">' . $l['set_pass'] . '</span><br/><span class="sai_exp">' . $l['set_notify'] . '</span></td>
		<td><input type="password" name="setpass" /></td>
	</tr>
	<tr id="conf_row">
		<td align="right" class="sai_head">' . $l['retype_pass'] . '</td>
		<td><input type="password" name="retypepass" /></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" name="submit" value="Submit"/></td>
	</tr>';
        if ($done == 1) {
            echo '<tr>
		<td colspan="2" align="center">' . $l['pass_set'] . '</td>
		</tr>';
        }
        echo '</table>
	<p>' . $l['note'] . '</p>
	</form></body></html>';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:57,代码来源:secure_theme.php


示例5: import_cpanel_theme

function import_cpanel_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $done;
    softheader($l['<title>']);
    if (!empty($done)) {
        echo '<div class="sai_success">' . $l['import_done'] . '</div><br /><br />';
    } else {
        echo '<form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="" id="editsettings">
	' . error_handle($error, "100%", 0, 1) . '
	<center class="sai_tit"><img src="' . $theme['a_images'] . 'import_cpanel.gif" />&nbsp;' . $l['import_cpanel'] . '</center>
	<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" >
		<tr>
			<td width="35%">
				<span class="sai_head">' . $l['r_domain'] . '</span><br />
				<span class="sai_exp">' . $l['r_domain_exp'] . '</span>
			</td>		
			<td> 
				<input type="text" name="r_domain" id="r_domain" size="30"  size="30" value="' . POSTval('r_domain', '') . '" />
			</td>
		</tr>
		<tr>
			<td>
				<span class="sai_head">' . $l['r_user'] . '</span><br />
				<span class="sai_exp">' . $l['r_user_exp'] . '</span>
			</td>		
			<td> 
				<input type="text" name="r_user" id="r_user" size="30"  size="30" value="' . POSTval('r_user', '') . '" />
			</td>
		</tr>
		<tr>
			<td>
				<span class="sai_head">' . $l['r_pass'] . '</span><br />
				<span class="sai_exp">' . $l['r_pass_exp'] . '</span>
			</td>		
			<td> 
				<input type="password" name="r_pass" id="r_pass" size="30" value="' . POSTval('r_pass', '') . '" />
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<p align="center">
					<input type="hidden" name="create_acc" value="1" />
					<input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="create_acc" class="sai_graybluebut" id="submitftp" /> 
				</p>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<p align="center">' . $l['note'] . '</p>
			</td>
		</tr>		
	</table>
	
	</form>';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:57,代码来源:import_cpanel_theme.php


示例6: script_requirement_theme

function script_requirement_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $iscripts, $scripts, $catscripts, $allcatwise, $_iscripts, $cscripts, $req_fail;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">' . $l['list_of_scripts'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />';
    error_handle($error);
    if (!empty($req_fail)) {
        echo '<div id="stooltip" style="display:none; position:absolute; top: 0px; left: 0px; border: 1px solid #CCC; padding: 8px; background: #FFF; z-index:1000;"></div>
	<form accept-charset="' . $globals['charset'] . '" name="updatesoft" method="post" action="">
	<br />
	<link href="' . $globals['mirror_images'] . 'sprites/20.css" rel="stylesheet" type="text/css" />
	<table cellpadding="0" cellspacing="0" width="100%" border="0">
		<tr>
		<td colspan="5">
			<div class="notebox" style="width:95%;" id="beta_notice1">
				<font class="bboxtxt">' . $l['note'] . '</font>
			</div>
		</td>
		</tr>
	</table>
	<table width="723" cellpadding="5" cellspacing="3" border="0" style="margin:0px auto;">';
        $i = 1;
        foreach ($req_fail as $k => $v) {
            if ($k > 10000) {
                continue;
            }
            echo '<tr class="' . ($i % 2 == 0 ? "altrow" : "naltrow") . '">
				<td width="17%" valign="top">
					<table width="100%" border="0">
						<tr>
							<td><div class="sp20_' . $iscripts[$k]['softname'] . '"></div></td>
							<td class="bboxtxt" align="left" width="90%">' . $v['name'] . '</td>
						</tr>
					</table>
				</td>
				<td width="54%" class="bboxtxt">';
            if (count($v['err_msg']) > 1) {
                foreach ($v['err_msg'] as $v_msg) {
                    echo '<strong>*</strong> ' . $v_msg . "<br />";
                }
            } else {
                echo current($v['err_msg']);
            }
            echo '</td>
			</tr>';
            $i++;
        }
        echo '</table><br />
	</form>';
    } else {
        echo '<h2 align="center">' . $l['no_results'] . '</h2>';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:55,代码来源:script_requirement_theme.php


示例7: editemailtemp_theme

function editemailtemp_theme()
{
    global $theme, $globals, $kernel, $user, $l, $error, $emailtemp, $done, $notice, $tempname, $ll;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center"><img src="' . $theme['images'] . 'admin/editemailtemp.gif" />&nbsp; ' . $l['edittemp'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    if (!empty($done)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'success.gif" /> &nbsp; ' . $l['done'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="editemailtemp" method="post" action="">
<table cellspacing="0" cellpadding="10" border="0" width="95%" align="center" class="sai_reviewform" style="margin:0px auto;" align="center">
<tr>
	<td class="bboxtxt" width="20%" align="right">' . $l['subject'] . ':</td>	
	<td><input type="text" name="tempsub" value="' . htmlizer($ll['title']) . '" size="73"></td>
</tr>
<tr>
	<td class="bboxtxt" valign="top" align="right">' . $l['content'] . ':</td>
	<td ><textarea  cols="70" name="tempcontent" rows="16">' . htmlizer($ll['body']) . '</textarea><br /><br /><br /><br /></td>
</tr>
</table>
<br />';
    // For Displaying the variable Information according to the action (i.e install, remove, update)
    echo '<table cellspacing="0" cellpadding="10" border="0" width="95%" align="center" class="sai_divroundshad" style="margin:0px auto;" align="center">
<tr>
<td class="bboxtxt" style="line-height:160%; padding:40px;">' . $l['mail_' . $tempname . '_info'] . '
</td>
</tr>
</table>';
    echo '<br /><br /><div class="notebox">' . $l['if_note'] . '</div>
<table width="50%" style="margin:0px auto;">
<tr>
<td align="right" >
<input type="submit" name="savetemplate" value="' . $l['savetemp'] . '" class="sai_graybluebut">
</td>
<td align="left"><input type="button" name="savetemplate" value="' . $l['reset_template'] . '" class="sai_graybluebut" onClick="confirm_reset();">
</td>
</tr>
</table><br /><br />
<center><a href="' . $globals['index'] . 'act=emailtemp"><font class="bboxtxt">' . $l['temp_overview'] . '</font></a></center>
</form>';
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function confirm_reset(){
	var r = confirm("' . $l['reset_confirm'] . '");
	if(r != true){
		return false;
	}else{
		window.location = window.location+"&reset=' . $tempname . '";
	}
}

// ]]></script>';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:54,代码来源:editemailtemp_theme.php


示例8: categories_theme

function categories_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $categories;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['reordercat_head'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />
<br />';
    error_handle($error);
    if (!empty($saved)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="reordercat" method="post" action="">
<div class="sai_divroundshad" style="width:700px; margin:0px auto;">
<script language="javascript" src="' . $theme['url'] . '/js/reorder.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
//The array id of all the elements to be reordered
reo_r = new Array(\'' . implode('\', \'', array_keys($categories)) . '\');

//The id of the table that will hold the elements
reorder_holder = "cat_reorder_pos";

//The prefix of the Dom Drag handle for every element
reo_ha = "catha";

//The prefix of the Dom Drag holder for every element(the parent of every element)
reo_ho = "cat";

//The prefix of the Hidden Input field for the reoder value for every element
reo_hid = "cathid";
addonload(\'init_reoder();\');
// ]]></script>
<br /><br />
<table width="60%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr><td id="cat_reorder_pos" width="100%"></td></tr>
</table>';
    $temp = 1;
    foreach ($categories as $ck => $cv) {
        echo '<div id="cat' . $ck . '">
<table cellpadding="0" cellspacing="0" class="catreo" id="catha' . $ck . '" onmousedown="this.style.zIndex=\'1\'" onmouseup="this.style.zIndex=\'0\'">
<tr><td>
&nbsp;&nbsp;' . $l['cat_php_' . $ck] . '
</td></tr>
</table>
</div>';
        echo '<input type="hidden" name="cat[' . $ck . ']" value="' . $temp . '" id="cathid' . $ck . '" />';
        $temp = $temp + 1;
    }
    echo '
<p align="center"><input type="submit" name="reordercat" value="' . $l['reordercat'] . '" class="sai_graybluebut" /></p>
' . (empty($globals['lictype']) ? '<div class="notebox">' . $l['soft_free_note'] . '</div>' : '') . '<br />
</div>
</form>';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:54,代码来源:categories_theme.php


示例9: errorlog_theme

function errorlog_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $list, $done, $filename, $error_log_data, $log_cleared;
    softheader($l['<title>']);
    echo '<br /><center class="sai_heading"><img src="' . $theme['images'] . 'error_log.gif" />&nbsp;' . $l['errorlog_head'] . '</center><br />';
    error_handle($error);
    echo '<script language="javascript" src="' . js_url('js/combined.js') . '" type="text/javascript"></script>

<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function confirm_reset(){
	var r = confirm("' . $l['reset_confirm'] . '");
	if(r != true){
		return false;
	}else{
		//alert(window.location+"&reset=' . basename($filename) . '");
		//return false;
		window.location  += "&clear_log=' . basename($filename) . '";
	}
}
	
// ]]></script>';
    if (!empty($log_cleared)) {
        echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
	alert("' . $l['refresh_after_clear'] . '");
	window.location = "' . $globals['index'] . 'act=errorlog";
// ]]></script>';
    } else {
        echo '<form accept-charset="' . $globals['charset'] . '" name="errorlogform" method="post" action="" id="errorlogform">
		<center>
			<table border="0" cellpadding="5" cellspacing="0" width="700px" align="center" class="sai_reviewform">
				<tr>
					<td><span class="sai_head">' . $filename . (!empty($error_log_data['file_size']) ? ' (' . $error_log_data['file_size'] . ')' : '') . '</span></td>
				</tr>
			</table>
		</center>
		<br /><br />

	<div style="height:410px; width:700px; overflow:auto; border: 2px solid #CCC; margin:0px auto; position:relative" >
		<table border="0" cellpadding="0" cellspacing="0" width="700px" align="center" class="sai_reviewform">
			<tr>
				<td nowrap="nowrap"><textarea style="font-size:15px;color:#06C; border:none; resize:none;" name="errorlog_data" id="errorlog_data" rows="20" cols="250" readonly="readonly">' . $error_log_data['error_data'] . '</textarea>
				</td>
			</tr>
		</table>
	</div><br />
	
<p align="center">
	<input type="button" value="' . $l['clear_log'] . '" name="clear_log" class="sai_graybluebut" onClick="confirm_reset();"/>
</p>
</form>';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:53,代码来源:errorlog_theme.php


示例10: remote_theme

function remote_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $deleted, $error;
    softheader($l['<title>']);
    error_handle($error, '100%');
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function doConfirm(){
	var answer = confirm ("' . $l['del_conf'] . '")
	if (answer)
	{
		return true;
	}	
	return false;		
}
</script>

<center class="sai_tit"><img src="' . $theme['images'] . 'domains.gif" />&nbsp; ' . $l['header'] . '</center>';
    // Was something deleted
    if (!empty($deleted)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'notice.gif" /> ' . $l['deleted'] . '</div><br /><br />';
    }
    // Are there no remote websites ?
    if (empty($user['remote'])) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'notice.gif" /> ' . $l['no_remote'] . '</div><br /><br />';
    } else {
        echo '<table border="0" cellpadding="8" cellspacing="1" width="95%" class="sai_summaryBlock">
<tr>
<td align="center" class="sai_summaryTitle" width="80">' . $l['site_type'] . '</td>
<td align="center" class="sai_summaryTitle">' . $l['site_domain'] . '</td>
<td align="center" class="sai_summaryTitle" width="140">' . $l['site_username'] . '</td>
<td align="center" class="sai_summaryTitle" width="100">' . $l['site_options'] . '</td>
</tr>';
        foreach ($user['remote'] as $k => $v) {
            echo '<tr>
	<td align="center"><img src="' . $theme['images'] . $v['panel'] . '.gif" width="32" /></td>
	<td><a target="_blank" href="http://' . $v['domain_name'] . '"> ' . $v['domain_name'] . '</a></td>
	<td align="center">' . $v['username'] . '</td>
	<td align="center">
		<a href="' . $globals['ind'] . 'act=editremote&remid=' . $k . '" title="' . $l['edit'] . '"><img src="' . $theme['images'] . 'edit.gif" /></a>
		<a href="' . $globals['ind'] . 'act=remote&delete=' . $k . '" title="' . $l['remove'] . '" onclick="return doConfirm();"><img src="' . $theme['images'] . 'remove.gif" /></a>
	</td>';
        }
        echo '</table>
<br />
<br />
<br />
<center><a href="' . $globals['ind'] . 'act=addremote" class="sai_abut">' . $l['add_new'] . '</a></center>';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:50,代码来源:remote_theme.php


示例11: updates_theme

function updates_theme()
{
    global $theme, $globals, $user, $l, $error, $updated, $info, $report;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">' . $l['update_softaculous'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    if (!empty($updated)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['updated_successfully'] . '</div><br />';
    }
    if (!empty($report)) {
        echo '<table width="100%" cellpadding="1" cellspacing="0" border="0" class="sai_divroundshad" style="padding:10px;">
	<tr>
		<td colspan="2" class="sai_head">' . $l['update_logs'] . '</td>
	</tr>
	<tr>
		<td valign="top">' . implode('<br />', $report['log']) . '</td>
		<td width="20%"><img src="' . $theme['images'] . 'admin/' . (empty($report['status']) ? 'softerror.gif' : 'softok.gif') . '" /></td>
	</tr>
	</table>
	<br />';
    }
    $curr_version = asperapp($globals['version'], @$globals['webuzo_version'], @$globals['ampps_version']);
    $latest_version = empty($info['version']) ? $l['not_connect_soft'] : $info['version'];
    echo '<form accept-charset="' . $globals['charset'] . '" name="updatesoftaculous" method="post" action="">
<table width="97%" cellpadding="5" cellspacing="0" border="0" style="margin:0px auto;" >
<tr>
<td>
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="sai_divroundshad" style="padding:10px;">
<tr>
	<td class="sai_head" width="50%" align="right">' . $l['cur_ver'] . '</td>
	<td>' . $curr_version . '</td>
</tr>
<tr>
	<td class="sai_head" align="right">' . $l['latest_ver'] . '&nbsp;&nbsp;</td>
	<td>' . ($curr_version != $latest_version ? '<font color="#FF0033">' : '<font>') . '' . $latest_version . '</font></td>
</tr>
</table>
</td>
</tr>
<tr>
	<td colspan="2"><font class="bboxtxt">' . $info['message'] . '</font></td>
</tr>
</table>

<p align="center"><input type="submit" name="update" value="' . $l['updatesoftaculous'] . '" ' . (empty($info['link']) ? 'disabled="disabled"' : '') . ' class="sai_graybluebut" /></p>
</form>';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:49,代码来源:updates_theme.php


示例12: ratings_theme

function ratings_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $scripts;
    global $soft, $software;
    softheader($l['<title>']);
    error_handle($error, '100%');
    echo '<link href="' . $globals['mirror_images'] . 'sprites/80.css" rel="stylesheet" type="text/css" />
	<div class="row sai_main_head" style="width:100%; padding-left:30px;" align="center">
		<div class="col-sm-5 col-xs-4" style="padding:0 10px 0 0; text-align:right;">
			<i class="fa sai-fullstar fa-1x" style="color:#00A0D2;"></i>
		</div>
		<div class="col-sm-7 col-xs-8" style="padding-left:0; text-align:left;">' . $l['script_ratings'] . '</div>
	</div><br />
	
	<div class="sai_main_head" style="width:95%;" align="center">
		<center><p class="sai_head">' . $l['click_logo'] . '</p><hr></center>
	</div>';
    foreach ($catwise as $cat => $softs) {
        if (empty($softs)) {
            continue;
        }
        $catimg = !empty($GLOBALS['catimgs']['php_' . $cat]) ? $GLOBALS['catimgs']['php_' . $cat] : $theme['images'] . 'cats/php_' . $cat . '.png';
        echo '<div class="bg">
		<div class="sai_heading_full" valign="middle">
			<img src="' . $catimg . '" alt="" />&nbsp;&nbsp;' . $l['cat_php_' . $cat] . '
		</div><br />';
        foreach ($softs as $sid => $softw) {
            if (empty($softw['ins'])) {
                continue;
            }
            if ($sid >= 10000) {
                continue;
            }
            echo '<div style="text-decoration:none;display:inline-block;text-align:center;">
					<a href="' . $globals['ind'] . 'act=software&soft=' . $sid . '&tab=ratings" target="_blank" title="' . $softw['desc'] . '"  width="80" alt="" class="someclass" style="text-decoration:none;margin-top:5px;">
						<div class="sai_blog_script">
							<div class="sai_demo_script_logo">
								<div class="sp80_' . $softw['softname'] . '" style="margin:15px;"></div>
							</div>
							<div class="sai_script_name">' . $softw['name'] . '</div>
						</div>
					</a><br />
				</div>';
        }
        echo '
		</div><br />';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:49,代码来源:ratings_theme.php


示例13: emailtemp_theme

function emailtemp_theme()
{
    global $theme, $globals, $kernel, $user, $l, $error, $emailtemps, $done, $notice;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center"><img src="' . $theme['images'] . 'admin/emailtemp.gif" />&nbsp;' . $l['emailtemp'] . '
		<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />
	</div><br /><br />';
    error_handle($error);
    if (!empty($notice)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . $l['action_not_applicable'] . '</div><br />';
    } else {
        echo '<table border="0" cellpadding="8" cellspacing="1" width="95%" class="sai_altrowstable" style="margin:0px auto;">
<tr>
	<th align="center" class="sai_head">' . $l['tempname'] . '</th>
	<th align="center" class="sai_head">' . $l['options'] . '</th>
</tr>';
        $i = 1;
        foreach ($emailtemps as $k => $v) {
            echo '<tr class="' . ($i % 2 == 0 ? "sai_evenrowcolor" : "sai_oddrowcolor") . '">		
	<td>' . $l['temp_' . $k] . '</td>
	<td><a href="' . $globals['ind'] . 'act=editemailtemp&temp=' . $k . '"><img src="' . $theme['images'] . 'admin/editemail.gif" /></a></td>
</tr>';
            $i++;
        }
        echo '</table>';
    }
    echo '
	
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

$(document).ready(function(){
	
	$(".sai_altrowstable tr").mouseover(function(){
		var old_class = $(this).attr("class");
		//alert(old_class);
		$(this).attr("class", "sai_tr_bgcolor");
		
		$(this).mouseout(function(){
			$(this).attr("class", old_class);
		});
	});
	
});

// ]]></script>';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:47,代码来源:emailtemp_theme.php


示例14: mysqlsettings_theme

function mysqlsettings_theme()
{
    global $theme, $globals, $softpanel, $user, $l, $error, $updates_available, $done;
    softheader($l['<title>']);
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'mysqlsettings.gif" />&nbsp; ' . $l['mysql_settings'] . '</center>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />';
    error_handle($error, '100%');
    if (isset($done) && $done == true) {
        echo '<div class="sai_success">' . $l['pass_changed'] . '</div>';
        echo '<br /><a href="' . $globals['ind'] . 'act=security">' . $l['lbl_security'] . '</a>';
    } else {
        echo '<form action="" method="post">
	<table border="0" cellpadding="8" cellspacing="2" width="95%">
	<tr>
		<td align="right" class="sai_head">MySQL Username:</td>
		<td>&nbsp; root</td>
	</tr>
	<tr>
		<td align="right"><span class="sai_head">Old Password:</span><br /><span>' . $l['default'] . '</span></td>
		<td><input type="password" name="oldpass" /></td>
	</tr>
	<tr>
		<td align="right" class="sai_head">New Password:</td>
		<td><input type="password" name="newpass" /></td>
	</tr>
	<tr>
		<td align="right" class="sai_head">Retype Password:</td>
		<td><input type="password" name="retypepass" /></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" name="changepass" value="Change Password"/></td>
	</tr>';
        if ($done == 1) {
            echo '<tr>
		<td colspan="2" align="center">' . $l['pass_changed'] . '</td>
		</tr>';
        }
        echo '</table>
	
	<br /><br /><br />
	<center>
	<a href="' . $globals['ind'] . 'act=security"><font size="2">Back to Security Center</font></a>
	</center>';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:46,代码来源:mysqlsettings_theme.php


示例15: domains_theme

function domains_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error;
    global $removed;
    softheader($l['<title>']);
    echo '<div class="bg"><br />';
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

function conf_del(){
	return confirm("' . $l['conf_del'] . '");
};
// ]]></script>

<div class="sai_main_head" style="width:100%;" align="center">' . $l['list_domain'] . '</div><hr>';
    error_handle($error, '100%');
    if (!empty($removed)) {
        echo '<div class="alert alert-warning">
		<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
		<center><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . $l['domain_removed'] . '</center><br />
	</div>';
    }
    echo '<div class="bg2">
	<table class="table table-hover">
		<thead  style="background:#EFEFEF;" class="sai_head2">
			<tr>
				<th width="75%">' . $l['domain_name'] . '</th>
				<th>' . $l['domain_edit'] . '</th>
				<th>' . $l['domain_del'] . '</th>
			</tr>
		</thead>';
    foreach ($softpanel->domains as $k => $v) {
        echo '<tr>
				<td>' . $k . '</td>
				<td><a href="' . $globals['ind'] . 'act=editdomain&did=' . $v['did'] . '"><img title="Edit" src="' . $theme['images'] . 'editdetail.gif"  /></a></td>
				<td><a href="' . $globals['ind'] . 'act=domains&delid=' . $v['did'] . '" onclick="return conf_del();"><img title="Delete"  src="' . $theme['images'] . 'remove.gif" /></a></td>
			</tr>';
    }
    echo '</table>
</div>
<br /><br />
<p align="center"><input class="flat-butt" type="button" onclick="window.location=\'' . $globals['ind'] . 'act=adddomain\'" value="' . $l['add_a_domain'] . '" /></p><br />
</div>';
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:44,代码来源:aefer_domains_theme.php


示例16: email

function email($to, $message, $subject = "Email from Your Website", $from = false)
{
    global $_josh;
    error_debug("<b>email </b> sending message to <i>" . $to . "</i> with subject " . $subject);
    $headers = "MIME-Version: 1.0" . $_josh["newline"];
    $headers .= "Content-type: text/html; charset=iso-8859-1" . $_josh["newline"];
    if (!$from) {
        if (isset($_josh["email_default"])) {
            $from = $_josh["email_default"];
        } else {
            error_handle("email from address missing", "please call this function with a from address, or specify one in the config file.", true);
        }
    }
    $to = format_email($to);
    $headers .= "From: " . format_email($from) . $_josh["newline"];
    if (!mail($to, $subject, $message, $headers)) {
        error_handle("email not sent", "sorry, an unexpected error occurred while sending your mail.", true);
    }
    return true;
}
开发者ID:joshreisner,项目名称:hcfa-cc,代码行数:20,

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP error_handled函数代码示例发布时间:2022-05-15
下一篇:
PHP error_get_last函数代码示例发布时间: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