public static function putGbbq($file, $data) { if (empty($data)) { return false; } return parent::putAllData($file, $data); }
public static function putTable($file, $data) { if (file_exists($file)) { $l = filemtime($file); $l = Date("ymdHis", $l); if (substr($file, strlen($file) - 4) == ".txt") { $bakF = substr($file, 0, strlen($file) - 3) . $l . ".txt"; } else { $bakF = $file . "." . $l . ".txt"; } rename($file, $bakF); } if ($data) { return TableFile::putAllData($file, $data); } else { return false; } }