%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/1857783/root/var/www/cwg/wp-content/plugins/wp-smtp/inc/Logger/
Upload File :
Create Path :
Current File : //proc/1857783/root/var/www/cwg/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
	}

}

Zerion Mini Shell 1.0