| @@ 77-94 (lines=18) @@ | ||
| 74 | return $res; |
|
| 75 | } |
|
| 76 | ||
| 77 | function tableExists($tablename) |
|
| 78 | { |
|
| 79 | global $db_link, $database; |
|
| 80 | ||
| 81 | $res = mysqli_query( |
|
| 82 | $db_link, |
|
| 83 | "SELECT COUNT(*) as count |
|
| 84 | FROM information_schema.tables |
|
| 85 | WHERE table_schema = '".$database."' |
|
| 86 | AND table_name = '$tablename'" |
|
| 87 | ); |
|
| 88 | ||
| 89 | if ($res > 0) { |
|
| 90 | return true; |
|
| 91 | } |
|
| 92 | ||
| 93 | return false; |
|
| 94 | } |
|
| 95 | ||
| 96 | //define pbkdf2 iteration count |
|
| 97 | @define('ITCOUNT', '2072'); |
|
| @@ 161-178 (lines=18) @@ | ||
| 158 | return $res; |
|
| 159 | } |
|
| 160 | ||
| 161 | function tableExists($tablename) |
|
| 162 | { |
|
| 163 | global $db_link, $database; |
|
| 164 | ||
| 165 | $res = mysqli_query( |
|
| 166 | $db_link, |
|
| 167 | "SELECT COUNT(*) as count |
|
| 168 | FROM information_schema.tables |
|
| 169 | WHERE table_schema = '".$database."' |
|
| 170 | AND table_name = '$tablename'" |
|
| 171 | ); |
|
| 172 | ||
| 173 | if ($res > 0) { |
|
| 174 | return true; |
|
| 175 | } else { |
|
| 176 | return false; |
|
| 177 | } |
|
| 178 | } |
|
| 179 | ||
| 180 | if (isset($post_type)) { |
|
| 181 | switch ($post_type) { |
|