文件操作 - status_theme.php
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/softaculous/enduser/themes/default/status_theme.php
编辑文件内容
<?php ////////////////////////////////////////////////////////////// //=========================================================== // userindex_theme.php //=========================================================== // SOFTACULOUS // Version : 1.1 // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Alons // Date: 10th Jan 2009 // Time: 21:00 hrs // Site: http://www.softaculous.com/ (SOFTACULOUS) // ---------------------------------------------------------- // Please Read the Terms of use at http://www.softaculous.com // ---------------------------------------------------------- //=========================================================== // (c)Softaculous Inc. //=========================================================== ////////////////////////////////////////////////////////////// if(!defined('SOFTACULOUS')){ die('Hacking Attempt'); } function status_theme(){ global $theme, $globals, $softpanel, $user, $l, $updates_available, $apachestatus, $mysqldstatus, $pythonstatus, $extension, $mongodbstatus, $ftpstatus; softheader($l['<title>']); echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[ $(document).ready(function(){ $(".sai_altrowstable tr").mouseover(function(){ var old_class = $(this).attr("class"); $(this).attr("class", "sai_tr_bgcolor"); $(this).mouseout(function(){ $(this).attr("class", old_class); }); }); }); // ]]></script>'; echo ' <div class="bg"> <div class="row"> <center><label class="sai_main_head"><img height="48" width="48" src="'.$theme['a_images'].'status.png" /> ' . $l['status'] . '</label></center><hr><br /> </div> <div class="row"> <center><label class="sai_sub_head">'.$l['service_status'].'</label></center> </div> <table border="0" cellpadding="5" cellspacing="1" width="60%" class="table table-hover"> <tr> <thead class="sai_head2" style="background:#efefef;"> <th width="50%" style="text-align:center">'.$l['process_name'].'</th> <th width="50%" style="text-align:center">'.$l['process_status'].'</th> </thead> </tr> <tr> <td align="center">' . $l['apache_status'] . '</td>'; if($apachestatus == 1){ echo '<td align="center"><font color="green" size="2">' . $l['active'] . '</font></td>'; } else{ echo '<td align="center"><font color="red" size="2">' . $l['inactive'] . '</font></td>'; } echo '</tr> <tr> <td align="center">' . $l['mysqld_status'] . '</td>'; if($mysqldstatus == 1){ echo '<td align="center"><font color="green" size="2">' . $l['active'] . '</font></td>'; } else{ echo '<td align="center"><font color="red" size="2">' . $l['inactive'] . '</font></td>'; } echo '</tr> <tr> <td align="center">' . $l['python_status'] . '</td>'; if($pythonstatus == 1){ echo '<td align="center"><font color="green" size="2">' . $l['active'] . '</font></td>'; } else{ echo '<td align="center"><font color="red" size="2">' . $l['inactive'] . '</font></td>'; } echo '</tr> <tr> <td align="center">' . $l['mongodb_status'] . '</td>'; if($mongodbstatus == 1){ echo '<td align="center"><font color="green" size="2">' . $l['active'] . '</font></td>'; } else{ echo '<td align="center"><font color="red" size="2">' . $l['inactive'] . '</font></td>'; } echo '</tr> <tr> <td align="center">' . $l['ftp_status'] . '</td>'; if($ftpstatus == 1){ echo '<td align="center"><font color="green" size="2">' . $l['active'] . '</font></td>'; } else{ echo '<td align="center"><font color="red" size="2">' . $l['inactive'] . '</font></td>'; } echo '</tr>'; echo '<tr> <td align="center">' . $l['ssl_status'] . '</td>'; if($softpanel->is_ssl() == true){ echo '<td align="center"><font color="green" size="2">' . $l['active'] . '</font></td>'; } else{ echo '<td align="center"><font color="red" size="2">' . $l['inactive'] . '</font></td>'; } echo '</tr>'; echo '</table><br /> <div class="row"> <center><label class="sai_sub_head"><h4><b>'.$l['php_extension'].'</b></h4></label></center> </div> <table border="0" cellpadding="5" cellspacing="1" width="60%" class="table table-hover"> <tr> <thead class="sai_head2" style="background:#efefef;"> <th width="50%" style="text-align:center">'.$l['extension_name'].'</th> <th width="50%" style="text-align:center">'.$l['status'].'</th> </thead> </tr>'; $i=1; foreach($extension as $k => $v){ echo '<tr class="'.($i % 2 == 0 ? "table table-hover" : "table table-hover").'"> <td align="center">'.$k.'</td>'; if($v == 1){ echo '<td align="center"><font color="green" size="2">' . $l['active'] . '</font></td>'; }else{ echo '<td align="center"><font color="red" size="2">' . $l['inactive'] . '</font></td>'; } echo '</tr>'; $i++; } echo '</tr> </table></br> <div> <span class="sai_exp2">'.$l['extension_note'].'</span></center></br> </div>'; echo '</div><!--end of bg-->'; softfooter(); } /*function died(){ print_r(error_get_last()); } register_shutdown_function('died');*/
修改文件时间
将文件时间修改为当前时间的前一年
删除文件