From 03ebdd0572e89f729f06d7e99e39a635a010434c Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Thu, 7 Jun 2012 07:48:01 +0000 Subject: [PATCH] * code for task#808. * add bin of check demo data. --- bin/checkDemoData.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/checkDemoData.php diff --git a/bin/checkDemoData.php b/bin/checkDemoData.php new file mode 100755 index 0000000000..31e8c3bf6d --- /dev/null +++ b/bin/checkDemoData.php @@ -0,0 +1,14 @@ +db->prefix . 'config') === false and + strpos($sql, $config->db->prefix . 'company') === false and + strpos($sql, $config->db->prefix . 'group') === false + ) $output .= $sql; +} +file_put_contents("../db/demo.sql", $output); +