| version 1.8, 2010/09/24 15:52:18 |
version 1.9, 2017/06/09 15:12:57 |
| Line 116 function ezin_admin_bindings_main($perm_ |
|
| Line 116 function ezin_admin_bindings_main($perm_ |
|
| return false; |
return false; |
| } |
} |
| |
|
| $result = @mysql_query($query, $ezin_db_handle); |
$result = mysqli_query($ezin_db_handle, $query); |
| if ($result == false) { |
if ($result == false) { |
| echo '<strong>mysql_query() error</strong>'; |
echo '<strong>mysqli_query() error</strong>'; |
| echo '<hr>'.htmlspecialchars($query); |
echo '<hr>'.htmlspecialchars($query); |
| return false; |
return false; |
| } |
} |
| |
|
| echo '<table class="pme-main">',"\n"; |
echo '<table class="pme-main">',"\n"; |
| |
|
| if (mysql_num_rows($result) == 0) { |
if (mysqli_num_rows($result) == 0) { |
| echo '<tr><td>No records in database.</td></tr>'; |
echo '<tr><td>No records in database.</td></tr>'; |
| } |
} |
| |
|
| Line 133 function ezin_admin_bindings_main($perm_ |
|
| Line 133 function ezin_admin_bindings_main($perm_ |
|
| $bind_previous = -1; |
$bind_previous = -1; |
| |
|
| $i = 0; |
$i = 0; |
| while (($row = mysql_fetch_array($result, MYSQL_ASSOC)) != false) { |
while (($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) != null) { |
| $name = $row['name']; |
$name = $row['name']; |
| empty($name) && $name = $row['name2']; |
empty($name) && $name = $row['name2']; |
| empty($name) && $name = $row['name3']; |
empty($name) && $name = $row['name3']; |
| Line 182 function ezin_admin_bindings_main($perm_ |
|
| Line 182 function ezin_admin_bindings_main($perm_ |
|
| |
|
| echo '</table>',"\n"; |
echo '</table>',"\n"; |
| |
|
| @mysql_free_result($result); |
mysqli_free_result($result); |
| |
|
| if (stristr($ezin_cfg['admin_buttons_pos'], 'D') |
if (stristr($ezin_cfg['admin_buttons_pos'], 'D') |
| || ! stristr($ezin_cfg['admin_buttons_pos'], 'U')) { |
|| ! stristr($ezin_cfg['admin_buttons_pos'], 'U')) { |
| Line 253 function ezin_admin_bindings_save($type, |
|
| Line 253 function ezin_admin_bindings_save($type, |
|
| //$update_value = "MAX($update_field) + 1"; |
//$update_value = "MAX($update_field) + 1"; |
| $query = sprintf('SELECT MAX(IFNULL(%s, 0)) + 1 FROM %s', |
$query = sprintf('SELECT MAX(IFNULL(%s, 0)) + 1 FROM %s', |
| $update_field, $update_table); |
$update_field, $update_table); |
| if ($result = @mysql_query($query, $ezin_db_handle)) { |
if ($result = mysqli_query($ezin_db_handle, $query)) { |
| $row = @mysql_fetch_array($result, MYSQL_NUM); |
$row = mysqli_fetch_array($result, MYSQLI_NUM); |
| @mysql_free_result($result); |
mysqli_free_result($result); |
| $update_value = $row[0]; |
$update_value = $row[0]; |
| } |
} |
| } |
} |
| Line 290 function ezin_admin_bindings_save($type, |
|
| Line 290 function ezin_admin_bindings_save($type, |
|
| return -1; |
return -1; |
| } |
} |
| } |
} |
| if (@mysql_query($query, $ezin_db_handle) == false) { |
if (mysqli_query($ezin_db_handle, $query) == false) { |
| return false; |
return false; |
| } |
} |
| if (file_exists($ezin_admin_bindings_triggers['after'])) { |
if (file_exists($ezin_admin_bindings_triggers['after'])) { |