文件操作 - Table.php
返回文件管理
返回主菜单
删除本文件
文件: /home/tecnoht/public_html/lessi--it/wp-content/plugins/wp-smtp/inc/Logger/Table.php
编辑文件内容
<?php namespace WPSMTP; class Table { public static $name; public function __construct() { } public static function install() { global $wpdb; self::$name = $wpdb->prefix . 'wpsmtp_logs'; $sql = "CREATE TABLE IF NOT EXISTS `" . self::$name . "` ( `mail_id` INT NOT NULL AUTO_INCREMENT, `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `to` VARCHAR(200) NOT NULL DEFAULT '0', `subject` VARCHAR(200) NOT NULL DEFAULT '0', `message` TEXT NULL, `headers` TEXT NULL, `error` TEXT NULL, PRIMARY KEY (`mail_id`) ) DEFAULT CHARACTER SET = utf8 DEFAULT COLLATE utf8_general_ci;"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); } public static function view() { ?> <div id="md-security" data-security="<?php echo wp_create_nonce('wpsmtp' ); ?>"></div> <table id="example" class="display widefat" style="width:100%"> <thead> <tr> <th></th> <th>To</th> <th>Timestamp</th> <th>Subject</th> <th>Error</th> </tr> </thead> <tbody></tbody> <tfoot> <tr> <th></th> <th>To</th> <th>Timestamp</th> <th>Subject</th> <th>Error</th> </tr> </tfoot> </table> <?php } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件