| @@ 96-113 (lines=18) @@ | ||
| 93 | return $res; |
|
| 94 | } |
|
| 95 | ||
| 96 | function tableExists($tablename) |
|
| 97 | { |
|
| 98 | global $dbTmp; |
|
| 99 | ||
| 100 | $res = mysqli_query( |
|
| 101 | $dbTmp, |
|
| 102 | "SELECT COUNT(*) as count |
|
| 103 | FROM information_schema.tables |
|
| 104 | WHERE table_schema = '".$_SESSION['database']."' |
|
| 105 | AND table_name = '$tablename'" |
|
| 106 | ); |
|
| 107 | ||
| 108 | if ($res > 0) { |
|
| 109 | return true; |
|
| 110 | } else { |
|
| 111 | return false; |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||
| 115 | //define pbkdf2 iteration count |
|
| 116 | define('ITCOUNT', '2072'); |
|
| @@ 82-99 (lines=18) @@ | ||
| 79 | return $res; |
|
| 80 | } |
|
| 81 | ||
| 82 | function tableExists($tablename) |
|
| 83 | { |
|
| 84 | global $dbTmp; |
|
| 85 | ||
| 86 | $res = mysqli_query( |
|
| 87 | $dbTmp, |
|
| 88 | "SELECT COUNT(*) as count |
|
| 89 | FROM information_schema.tables |
|
| 90 | WHERE table_schema = '".$_SESSION['db_bdd']."' |
|
| 91 | AND table_name = '$tablename'" |
|
| 92 | ); |
|
| 93 | ||
| 94 | if ($res > 0) { |
|
| 95 | return true; |
|
| 96 | } else { |
|
| 97 | return false; |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | function cleanFields($txt) |
|
| 102 | { |
|
| @@ 84-100 (lines=17) @@ | ||
| 81 | return $res; |
|
| 82 | } |
|
| 83 | ||
| 84 | function tableExists($tablename) |
|
| 85 | { |
|
| 86 | global $dbTmp; |
|
| 87 | ||
| 88 | $res = mysqli_query($dbTmp, |
|
| 89 | "SELECT COUNT(*) as count |
|
| 90 | FROM information_schema.tables |
|
| 91 | WHERE table_schema = '".$_SESSION['database']."' |
|
| 92 | AND table_name = '$tablename'" |
|
| 93 | ); |
|
| 94 | ||
| 95 | if ($res > 0) { |
|
| 96 | return true; |
|
| 97 | } else { |
|
| 98 | return false; |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | //define pbkdf2 iteration count |
|
| 103 | @define('ITCOUNT', '2072'); |
|