if (is_suspended($user_id, $channel->name) == 1) { $userprob = 1; } if (is_suspended("", $channel->name) == 1) { $chanprob = 1; } } else { $noedit = 0; } $ruu = pg_safe_exec("SELECT levels.user_id FROM users,channels,levels WHERE users.id='{$user_id}' AND users.id=levels.user_id AND channels.id=levels.channel_id AND channels.id='" . $channel->id . "' AND levels.access>0 AND channels.registered_ts>0"); if (pg_numrows($ruu) == 0) { $noaxs = 1; } if (($access > $level_modinfo || $admin > $level_modinfo) && !$noedit && $cpurged == 0) { echo "<tr><td colspan=2 bgcolor=#" . $cTheme->table_sepcolor . "><font size=-1 color=#" . $cTheme->table_septextcolor . "><em><b>Change Settings</b></em></font></b></td></tr><tr>"; if (($access > $level_modinfo || $admin > $level_modinfo) && !$noedit && !$edit && $cpurged == 0 && is_suspended($user_id, $channel_name) != 1 && is_suspended("", $channel_name) != 1 && is_suspended($user_id, "") != 1) { if ($access >= $level_status) { echo "<td><form action=\"channels.php\" method=get>\n\t<input type=hidden name=id value=\"{$channel->id}\">\n"; echo "<input type=hidden name=action value=\"edit\">"; echo "<input type=hidden name=\"target\" value=\"channel\">\n\t<input type=\"submit\" value=\"Edit Settings\">\n\t</form></td> "; if ($admin < 1) { echo "</tr>"; } } } if ($admin > $access && !$edit) { echo "<td><form action=\"channels.php\" method=get>\n\t<input type=hidden name=id value=\"{$channel->id}\">\n\t<input type=hidden name=action value=\"force\">\n\t<input type=\"submit\" value=\"Force Login\">\n\t</form></td></tr>"; } if (!$noedit && $edit) { echo "<tr><td><input type=\"submit\" value=\"Save Changes\" name=\"button\"></form></td>"; echo "<td><form action=\"channels.php\" method=get>\n\t<input type=hidden name=id value=\"{$channel->id}\">\n\t<input type=\"submit\" value=\"Exit without save\">\n\t</form></td></tr> ";
if (cl_ip() == "0.0.0.0") { // safety valve. (useless?) header("Pragma: no-cache"); echo "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\n"; echo "<html>\n"; echo "<head><title>Error</title>"; std_theme_styles(); echo "</head>"; std_theme_body(); echo "<font size=+0>\n"; echo "You can't login using your current IP number.<br><br>"; echo "<a href=\"index.php\" target=\"_top\">click here</a>.<br>\n"; echo "</font></body></html>\n\n"; die; } if (is_suspended($user_id, "") == 1) { header("Pragma: no-cache"); echo "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\n"; echo "<html>\n"; echo "<head><title>Error</title>"; std_theme_styles(); echo "</head>"; std_theme_body(); echo "<font size=+0>\n"; echo "You have been globally suspended by a Cservice Administrator, you can't login.<br><br>"; echo "<a href=\"index.php\" target=\"_top\">click here</a>.<br>\n"; echo "</font></body></html>\n\n"; die; } $ress = pg_safe_exec("SELECT tz_setting,email FROM users WHERE id='{$user_id}'"); $rooo = pg_fetch_object($ress, 0);