require_once(realpath(dirname(__FILE__).'/../db.php'));
require_once(realpath(dirname(__FILE__).'/../db/field.php'));
require_once(realpath(dirname(__FILE__).'/../out.php'));
-if (class_exists('WP_List_Table')) require_once(realpath(dirname(__FILE__).'/wp.php'));
#$a = array('a','b','c'); $b = array('c','a'); debug(array_diff($a,$b));
define('TABLE_INDENT',NB_EOL ? "\t" : "");
if ($opt_by_val !== null) $opt = $opt_by_val;
$format = $this->p('format');
- if (!$format) bye("Invalid parameter!");
+ if (!$format) bye("Invalid parameter format!");
list($sql,$where,$limit,$select_count) = $this->rows_sql($opt);
$st = $this->db()->conn->prepare($sql);
Wordpress
-----------------------------------------------------------------*/
public function rows_begin_wp() {
+ require_once(realpath(dirname(__FILE__).'/wp.php'));
$this->_html_table = new html_table($this);
return '';
}
<?php
-if (!class_exists('WP_List_Table')) {
- echo "Hi there! I'm just a plugin, not much I can do when called directly.\n";
- exit;
-}
class html_table extends WP_List_Table {
public $_table;