isadminli(); @$users_page = $_GET['upage']; @$links_page = $_GET['lpage']; @$admin_links_page = $_GET['alpage']; function table_length($table_name) { global $mysqli; if ($table_name == "redirinfo") { $colname = "rurl"; } else if ($table_name == "auth") { $colname = "username"; } $result = $mysqli->query("SELECT COUNT(`{$colname}`) FROM `{$table_name}`;") or showerror(); $count = ($result->fetch_assoc()); $count = (double) $count["COUNT(`{$colname}`)"]; $pages = $count / 30; return ceil($pages); } function paginate_table($current_page = 0, $total_pages = 0, $pag_name, $sel_name) { $markup = '
Link ending | Long Link | Date | Secret |
---|---|---|---|
" . $link['baseval'] . ' | ' . "" . substr($link['rurl'], 0, 255) . ' | ' . "" . $link['date'] . ' | ' . "" . $is_secret . " | "; } $linkshtml = $linkshtml . "
Polr Links:
' . $linksadmin . 'Polr Users
' . $usersadmin. ''; echo 'Disable a Link
'; echo ''; echo ''; if ($debug == 1) { '