文件操作 - updates_theme.php
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/softaculous/enduser/themes/default/admin/updates_theme.php
编辑文件内容
<?php ////////////////////////////////////////////////////////////// //=========================================================== // updates_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 updates_theme(){ global $theme, $globals, $user, $l, $error, $updated, $info, $report; softheader(__('$0 - Update Center', array(APP))); echo '<div class="container-fluid"> <div class="row my-5"> <div class="col-12 col-lg-10 mx-auto"> <div class="sai-card p-3"> <div class="sai_main_head"> <h2 class="sai-heading mb-2">'.__('Update Softaculous').'</h2> <hr class = "sai_main_head_hr"/> </div> <div class="sai_form">'; error_handle($error); if(!empty($updated)){ echo '<div class="alert alert-success text-center"><i class="fas fa-check sai_icons mr-2"></i> '.__('Successfully updated to the latest version').'</div>'; } if(!empty($report)){ echo'<label>'.__('Update Logs').': </label> <span>'.implode('<br />', $report['log']).'</span> <img src="'.$theme['images'].'admin/'.(empty($report['status']) ? 'softerror.gif' : 'softok.gif').'" />'; } $curr_version = (!empty($updated) ? $report['version'] : asperapp($globals['version'], @$globals['webuzo_version'], @$globals['ampps_version'])); $latest_version = (empty($info['version']) ? __('Could not connect to Softaculous') : $info['version']); echo '<form accept-charset="'.$globals['charset'].'" name="updatesoftaculous" method="post" action=""> <label class="sai-label">'.__('Current Version').': </label> <span class="sai-label">'.$curr_version.'</span><br/> <label class="sai-label">'.__('Latest Version').': </label> '.($curr_version != $latest_version ? '<span class="sai-label" style="color:#FF0033;">' : '<span class="sai-label">').$latest_version.'</span> <hr /> <div>'.$info['message'].'</div> '.($curr_version != $latest_version ? '<p align="center"><input type="submit" name="update" value="'.__('Update Softaculous').'" '.(empty($info['link']) ? 'disabled="disabled"' : '').' class="flat-butt" /></p>' : '').' '.csrf_display().' </form>'; echo'</div> </div> </div> </div> </div>'; softfooter(); } ?>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件