show_form_footer($lang['save_changes'], "", 2);
Add above:/*
MOD BAN
START INSERT
*/
show_table_separator($setting_group[XX], 2, "#setting_group_XX");
show_setting_row("look_hostname", "radio");
/*
MOD BAN
END INSERT
*/
Now is the tricky part. Scroll little bit up and find the last /*
MOD BAN
START INSERT
*/
define("BAN_TABLE", $table_prefix."ban");
define("BAN_LOGS_TABLE", $table_prefix."ban_logs");
define("BAN_IP", 1);
define("BAN_HOSTNAME", 2);
define("BAN_USERID", 3);
define("BAN_NAME", 4);
define("BAN_EMAIL", 5);
/*
MOD BAN
END INSERT
*/
/*
MOD BAN
START INSERT
*/
function check_ban()
{
global $user_info, $site_sess, $config, $lang, $site_db, $HTTP_GET_VARS;
$types = array("ip", "hostname", "name", "user_id", "email");
if (!$config['ban_update'])
{
return false;
}
if ($user_info['user_level'] == ADMIN)
{
if (!isset($HTTP_GET_VARS['bantest'])) return false;
$return = true;
foreach ($types as $key)
{
if (isset($HTTP_GET_VARS[$key]) && $$key = $HTTP_GET_VARS[$key]) $return = false;
else $$key = "";
}
if ($return) return false;
$force = true;
}
else
{
$ip = $site_sess->session_info['session_ip'];
$email = $user_info['user_email'];
$user_id = $user_info['user_id'];
$name = $user_info['user_name'];
$hostname = "";
$force = false;
}
$ban = false;
$ban_checked = $site_sess->get_session_var("ban_checked");
$ban_userid = $site_sess->get_session_var("ban_userid");
$ban_banned = $site_sess->get_session_var("ban_banned");
if (get_magic_quotes_gpc() != 0)
{
$ban_banned = stripslashes($ban_banned);
}
// $ban_banned = stripslashes($ban_banned); //uncomment this line if magic_quotes_gpc is turned on on your server
$ban_banned = ($ban_banned) ? unserialize($ban_banned) : "";
if ($force || (!$ban_checked || !$ban_userid || ($ban_userid && $ban_userid != $user_info['user_id']) || ($ban_checked && $ban_checked < $config['ban_update']) || ($ban_banned && $ban_banned['expire'] < time())))
{
$query = array();
if (preg_match('/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/', $ip, $ip_chop) == 1)
{
$query[] = "(type = ".BAN_IP." AND ($ip_chop[1] BETWEEN ip1_start AND ip1_end) AND ($ip_chop[2] BETWEEN ip2_start AND ip2_end) AND ($ip_chop[3] BETWEEN ip3_start AND ip3_end) AND ($ip_chop[4] BETWEEN ip4_start AND ip4_end))";
if ($config['look_hostname'] && !$hostname)
{
$hostname = @gethostbyaddr($ip);
}
}
if ($hostname)
{
$query[] = "(type = ".BAN_HOSTNAME." AND ('$hostname' LIKE hostname))";
}
if ($email)
{
$query[] = "(type = ".BAN_EMAIL." AND ('".addslashes($email)."' LIKE email))";
}
if ($user_id && $user_id > GUEST)
{
$query[] = "(type = ".BAN_USERID." AND user_id = ".$user_id.")";
}
if ($name)
{
$query[] = "(type = ".BAN_NAME." AND ('".addslashes($name)."' LIKE name))";
}
if (!empty($query))
{
$sql = "SELECT id, type, message, date, expire
FROM ".BAN_TABLE."
WHERE (".implode(' OR ', $query).")";
if ($result = $site_db->query($sql))
{
while ($row = $site_db->fetch_array($result))
{
$site_sess->set_session_var("ban_banned", addslashes(serialize($row)));
if ($row['date'] <= time() && (!$row['expire'] || $row['expire'] > time()))
{
$ban = $row;
break;
}
}
}
else
{
$site_sess->set_session_var("ban_banned", "");
}
}
$site_sess->set_session_var("ban_checked", time());
$site_sess->set_session_var("ban_userid", $user_info['user_id']);
}
elseif ($ban_banned && $ban_banned['date'] <= time() && (!$ban_banned['expire'] || $ban_banned['expire'] > time()))
{
$ban = $ban_banned;
}
return $ban;
}
/*
MOD BAN
END INSERT
*/
$user_info = $site_sess->return_user_info();
/*
MOD BAN
START INSERT
*/
if ($ban = check_ban())
{
$sql = "INSERT INTO ".BAN_LOGS_TABLE."
(date, ip, uri, ban_id, user_id)
VALUES
(".time().", '".$site_sess->session_info['session_ip']."', 'http".(($_SERVER['SERVER_PORT'] != 80) ? "s" : "")."//".$_SERVER['SERVER_NAME'].addslashes($_SERVER['REQUEST_URI'])."', ".$ban['id'].", '".$user_info['user_id']."')";
$site_db->query($sql);
$main_template = "ban";
$config['badword_list'] = "";
include(ROOT_PATH.'includes/page_header.php');
$site_template->register_vars(array(
"lang_ban" => $lang['ban_banned'],
"message" => format_text($ban['message'], 1, 0, 1, 1, 1, 1)
));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
exit;
}
/*
MOD BAN
END INSERT
*/
/*
MOD BAN
START INSERT
*/
/*-- Setting-Group XX --*/
$setting_group[XX]="Ban";
$setting['look_hostname'] = "Lookup hostnames<span class=\"smalltext\"><br />might affect the perfomance";
$lang['ban'] = "Ban";
$lang['ban_ip'] = "IP";
$lang['ban_ip_expl'] = "<span class=\"smalltext\">ex: 123.123.123.123 or 123.123.123.* or 123.123.123.0-255</span>";
$lang['ban_user_id'] = "User id";
$lang['ban_email'] = "Email";
$lang['ban_email_expl'] = "<span class=\"smalltext\">ex: example*@example.com</span>";
$lang['ban_name'] = "Name";
$lang['ban_name_expl'] = "<span class=\"smalltext\">ex: example*</span>";
$lang['ban_hostname'] = "Hostname";
$lang['ban_hostname_expl'] = "<span class=\"smalltext\">ex: *.aol.com</span>";
$lang['ban_add'] = "Add new ban";
$lang['ban_edit'] = "Edit ban";
$lang['ban_date'] = "Start date";
$lang['ban_date_expl'] = "<span class=\"smalltext\">yyyy-mm-dd hh:mm:ss</span>";
$lang['ban_expire'] = "End date";
$lang['ban_expire_expl'] = "(leave blank for permanent ban)<br /><span class=\"smalltext\">yyyy-mm-dd hh:mm:ss</span>";
$lang['ban_message'] = "Message";
$lang['ban_message_expl'] = "<span class=\"smalltext\">Will be displayed to the banned visitor</span>";
$lang['ban_reason'] = "Reason";
$lang['ban_reason_expl'] = "<span class=\"smalltext\">Remind yourself</span>";
$lang['ban_required'] = array(
BAN_IP => "Please enter IP",
BAN_HOSTNAME => "Please enter a hostname",
BAN_USERID => "Please enter a user ID",
BAN_NAME => "Please enter a username",
BAN_EMAIL => "Please enter an email"
);
$lang['ban_bad_entry'] = array(
BAN_IP => "IP is incorrect",
BAN_HOSTNAME => "Hostname is incorrect",
BAN_USERID => "User ID is incorrect",
BAN_NAME => "Username is incorrect",
BAN_EMAIL => "Email is incorrect"
);
$lang['ban_dublicate'] = array(
BAN_IP => "This IP is already present in the database",
BAN_HOSTNAME => "This hostname is already present in the database",
BAN_USERID => "This user ID is already present in the database",
BAN_NAME => "This username is already present in the database",
BAN_EMAIL => "This email is already present in the database"
);
$lang['ban_type_array'] = array(
BAN_IP => "IP",
BAN_HOSTNAME => "Hostname",
BAN_USERID => "User ID",
BAN_NAME => "Username",
BAN_EMAIL => "Email"
);
$lang['ban_list'] = "List";
$lang['ban_type'] = "Type";
$lang['ban_value'] = "Value";
$lang['ban_add_success'] = "Entry added successfuly";
$lang['ban_add_error'] = "Error adding new entry";
$lang['ban_update_success'] = "Entry updated successfuly";
$lang['ban_update'] = "Update";
$lang['ban_update_error'] = "Error updating entry";
$lang['ban_edit_error'] = "Error edit entry";
$lang['ban_edit_success'] = "Entry edited successfuly";
$lang['ban_delete_error'] = "Error delete entry";
$lang['ban_delete_success'] = "Entry deleted successfuly";
$lang['ban_filter'] = "Filter";
$lang['ban_menu'] = "Content menu";
$lang['ban_whois'] = "Whos online";
$lang['ban_action'] = "Action";
$lang['ban_perm'] = "Never";
$lang['ban_perpage'] = "Show per page";
$lang['ban_logs'] = "Logs";
$lang['ban_uri'] = "Accessed URL";
$lang['ban_user_name'] = "User name";
$lang['ban_date_access'] = "Access date";
$lang['ban_logs_del_success'] = "Log(s) deleted successfuly";
$lang['ban_logs_del_error'] = "Error deleting log(s)";
$lang['ban_active'] = "Active";
$lang['ban_expired'] = "Expired";
$lang['ban_notactive'] = "Not active";
$lang['bad_invalid_date'] = "End date must be bigger then start date";
$lang['ban_copy'] = "Copy";
$lang['ban_test'] = "Test";
/*
MOD BAN
END INSERT
*/
Replace XX with the number u were supposed to memorize from Step 1/*-- Setting-Group XX --*/
$setting_group[XX]="Ban";
/*
MOD BAN
START INSERT
*/
$lang['ban_banned'] = "You've been banned";
/*
MOD BAN
END INSERT
*/
if ($user_row = get_user_info($user_id)) {
Replace with: if (($user_info['user_level'] == ADMIN || !$site_db->query_firstrow("SELECT id FROM ".BAN_TABLE." WHERE type = ".BAN_USERID." AND user_id = ".$user_id." AND (NOT expire OR expire > ".time().") LIMIT 1")) && $user_row = get_user_info($user_id)) {
Q: | Why when I ban someone, they see the ban message only first time they open the page, after refresh the ban doesnt work anymore? |
A: | This is a recent discover and its probably because your server has magic_quotes_gpc is turned on (check in phpinfo()). To fix that, uncomment this line from includes/functions.php: // $ban_banned = stripslashes($ban_banned); //uncomment this line if magic_quotes_gpc is turned on on your server Since v1.6.1 added auto check if magic_quotes_gpc is enabled |
Q: | Why when I enter an user id, name or an email address for a new ban it says id/name/email is not valid? |
A: | The plugin checks if a member exists with such id/name/email, you can not ban non-existing members. |
Q: | How can I ban entire subnet? |
A: | If you want ban a subnet 192.168.0.X u have two ways to do so either use wildcard (*): 192.168.0.* or use IP range: 192.168.0.0-255 You can specify range of each of 4 IP parts. 0-255.0-255.0-255.0-255 In green is start number of the range and red is the end of the range. (be carefull, dont ban your own IP, otherwise ones you logout, the only way to get back is manualy edit database) |
Q: | I just tryed ban myself, but I still was able access my site. Why? |
A: | For security reason ban does not apply for administrators. Ones you log out, the only way unban yourself is edit manualy MySQL database. |
Q: | When click on "whos online" link, it takes a while before it opens the page. Why? |
A: | Most probably the "Hostname lookup" is turned on in the settings. You can disable it there, or edit ban.php and read comments for $look_hostname variable on top of the file. |
Q: | How can I properly test the mod working? |
A: | Well, the best sollution is add ban for your own IP/hostname and logout. BUT before you do that, make sure that you set expiration date for just a few minutes, you will have enough time to test the ban before it get expired and you'll be able login. To test ban by username/userid/email - set a ban for your test account and then try to login with that account. Also, since v1.5 you can test the ban by clicking "test" link next to it from the bans list page. |
Great job V@no, mod is working perfectly ;)I just realised that the database installation should go as a last step (I've already fixed my post) otherwise the new tables will have wrong names...
$lang['ban_active'] = "Active";
$lang['ban_expired'] = "Expired";
Warning: implode(): Bad arguments. in D:\apachefriends\xampp\htdocs\4images\admin\plugins\ban.php on line 457
DB Error: Bad SQL Query: SELECT id, type, message, date, expire FROM 4images_ban WHERE ((type = 1AND (192 BETWEEN ip1_start AND ip1_end) AND (168
BETWEEN ip2_start AND ip2_end) AND (0 BETWEEN ip3_start AND ip3_end)AND (4 BETWEEN ip4_start AND ip4_end)) OR (type = 2 AND ('ZOMBIE' LIKE hostname))
OR (type = 5 AND ('xxx@xxxxxx.de' LIKE email)) OR (type = 3 AND user_id = 1972) OR (type = 4 AND ('blubb' LIKE name)))
You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near '(192 BETWEEN ip1_start AND ip1_end)
AND (168 BETWEEN ip2_start AND ip2_end) AND ' at line 3
hi V@no I have installed the MOD and I get this warning in the BanPlugInswhat warning?
i get errors too...what MySQL version do u use?
the warning in acp is still there.ah, that happend after I updated to v1.1
$list_sql = array("or" => array("type = 0"));
with $list_sql = array("or" => array("type = 0"), "and" => array(""));
$list_sql_and = implode(" AND ", $list_sql["and"]);
Replace it with: $list_sql_and = trim(implode(" AND ", $list_sql["and"]), " AND ");
u forgot the ");" at the end ;)actualy I forgot more then that...
/*
MOD BAN
START INSERT
*/
/*-- Setting-Group XX --*/
$setting_group[XX]="Ban";
$setting['look_hostname'] = "Hostnamen auflösen<span class=\"smalltext\"><br />Könnte die Geschwindigkeit beeinflussen";
$lang['ban'] = "Ban";
$lang['ban_ip'] = "IP";
$lang['ban_ip_expl'] = "<span class=\"smalltext\">Beispiel: 123.123.123.123 oder 123.123.123.* oder 123.123.123.0-255</span>";
$lang['ban_user_id'] = "User id";
$lang['ban_email'] = "eMail";
$lang['ban_email_expl'] = "<span class=\"smalltext\">Beispiel: beispiel*@beispiel.de</span>";
$lang['ban_name'] = "Name";
$lang['ban_name_expl'] = "<span class=\"smalltext\">Beispiel: beispiel*</span>";
$lang['ban_hostname'] = "Hostname";
$lang['ban_hostname_expl'] = "<span class=\"smalltext\">Beispiel: *.aol.de</span>";
$lang['ban_add'] = "Neuen Ban hinzufügen";
$lang['ban_edit'] = "Ban editieren";
$lang['ban_date'] = "Startdatum";
$lang['ban_date_expl'] = "<span class=\"smalltext\">yyyy-mm-dd hh:mm:ss</span>";
$lang['ban_expire'] = "Enddatum";
$lang['ban_expire_expl'] = "(0 für permanenten Ban)<br /><span class=\"smalltext\">yyyy-mm-dd hh:mm:ss</span>";
$lang['ban_message'] = "Nachricht";
$lang['ban_message_expl'] = "<span class=\"smalltext\">Wird dem gebannten Besucher angezeigt</span>";
$lang['ban_reason'] = "Grund";
$lang['ban_reason_expl'] = "<span class=\"smalltext\">Lass dir was einfallen</span>";
$lang['ban_required'] = array(
BAN_IP => "Bitte trage eine IP ein",
BAN_HOSTNAME => "Bitte trage einen Hostnamen ein",
BAN_USERID => "Bitte trage eine user ID ein",
BAN_NAME => "Bitte trage einen Benutzernamen ein",
BAN_EMAIL => "Bitte trage eine eMail ein"
);
$lang['ban_bad_entry'] = array(
BAN_IP => "IP ist nicht korrekt",
BAN_HOSTNAME => "Hostname ist nicht korrekt",
BAN_USERID => "User ID ist nicht korrekt",
BAN_NAME => "Benutzername ist nicht korrekt",
BAN_EMAIL => "eMail ist nicht korrekt"
);
$lang['ban_dublicate'] = array(
BAN_IP => "Diese IP ist bereits in der Datenbank",
BAN_HOSTNAME => "Dieser Hostname ist bereits in der Datenbank",
BAN_USERID => "Diese user ID ist bereits in der Datenbank",
BAN_NAME => "Diesr Benutzername ist bereits in der Datenbank",
BAN_EMAIL => "Diese eMail ist bereits in der Datenbank"
);
$lang['ban_type_array'] = array(
BAN_IP => "IP",
BAN_HOSTNAME => "Hostname",
BAN_USERID => "User ID",
BAN_NAME => "Benutzername",
BAN_EMAIL => "eMail"
);
$lang['ban_list'] = "Liste";
$lang['ban_type'] = "Typ";
$lang['ban_value'] = "Wert";
$lang['ban_add_success'] = "Eintrag erfolgreich hinzugefügt";
$lang['ban_add_error'] = "Fehler beim eintragen";
$lang['ban_update_success'] = "Eintrag erfolgreich aktualisiert";
$lang['ban_update'] = "aktualisieren";
$lang['ban_update_error'] = "Fehler beim aktualisieren";
$lang['ban_edit_error'] = "Fehler beim editieren";
$lang['ban_edit_success'] = "Eintrag erfolgreich editiert";
$lang['ban_delete_error'] = "Fehler beim löschen";
$lang['ban_delete_success'] = "Eintrag erfolgreich gelöscht";
$lang['ban_filter'] = "Filter";
$lang['ban_menu'] = "Menü";
$lang['ban_whois'] = "Wer ist Online";
$lang['ban_action'] = "Aktion";
$lang['ban_perm'] = "Niemals";
$lang['ban_perpage'] = "Zeige per Seite";
$lang['ban_logs'] = "Logs";
$lang['ban_uri'] = "Besuchte URL";
$lang['ban_user_name'] = "Benutzername";
$lang['ban_date_access'] = "Zugriffsdatum";
$lang['ban_logs_del_success'] = "Log(s) erfolgreich gelöscht";
$lang['ban_logs_del_error'] = "Fehler beim löschen der log(s)";
$lang['ban_active'] = "Aktiv";
$lang['ban_expired'] = "Abgelaufen";
$lang['ban_notactive'] = "Nich aktiv";
$lang['bad_invalid_date'] = "Das Enddatum muss einen höheren Wert haben als das Startdatum";
$lang['ban_copy'] = "Kopieren";
$lang['ban_test'] = "Testen";
/*
MOD BAN
END INSERT
*/
/*
MOD BAN
START INSERT
*/
$lang['ban_banned'] = "Du wurdest gesperrt";
/*
MOD BAN
END INSERT
*/
echo "<td>".date("Y-m-d H:i:s", $row['date'])."</td>";
echo "<td>".(($row['expire']) ? date("Y-m-d H:i:s", $row['expire']) : $lang['ban_perm'])."</td>";
echo "<td>".stripslashes($row['reason'])."</td>";
echo "<td>".stripslashes($row['message'])."</td>";
replace with: echo "<td".(($row['date'] > time()) ? " style=\"background-color: #FFCECE\"" : "").">".date("Y-m-d H:i:s", $row['date'])."</td>";
echo "<td".(($row['expire'] && $row['expire'] < time()) ? " style=\"background-color: #FFCECE\"" : "").">".(($row['expire']) ? date("Y-m-d H:i:s", $row['expire']) : $lang['ban_perm'])."</td>";
echo "<td>".format_text(stripslashes($row['reason']), 1, 0, 1, 1, 1, 1)."</td>";
echo "<td>".format_text(stripslashes($row['message']), 1, 0, 1, 1, 1, 1)."</td>";
but the whosonline is too slowyes, I added little FAQ at the original post, it explained why ;)
fixed a bug that would not ban visitor if it matched multiple ban entries and first entry was expired or not active.
Redo Step 3
stay that identical look like before 1.4.1sorry I dont understand...
second entry is not baned
stay that identical look like before 1.4.1sorry I dont understand...
second entry is not baned
make sure u read the FAQ I added to the original post.
also, what steps did u do to test it?
it could happend if your friend is behind a proxy or some proxy-based ISP (such as AOL) which use different IP for each page requests...try ban him by partial IP or partial hostname.
I have banned for test my girlfriend (banned a User Name) and when i will log in as my Girlfriend from my Computer it doesnґt work. I can LogIn.this is wierd...I wouldnt expect this to happend for ban by name/user id/email...are you sure her account is not administrator?
But when my Girlfriend will LogIn from her Computer she see the ban Message. It Works.
I have delete all my Cookies and my Cache but with my Computer it doesnґt work :(
u have logged in with her username/password on your computer - and nothing happend?
have u tryed different type of ban? (on your computer) (make sure u set expiration date, so u wont perm ban yourself
Lookup hostnames
might affect the perfomance yes/no
DB Error: Bad SQL Query: CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1
DB Error: Bad SQL Query: CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1
1. Error
CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
2. Error
CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM
3. Done
INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('look_hostname', '1')
4. Done
INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('ban_update', '0')
Hello. I´ve got this Error, when i do the ban_install.php:Code: [Select]DB Error: Bad SQL Query: CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1
DB Error: Bad SQL Query: CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM
You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 1
1. Error
CREATE TABLE 4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
2. Error
CREATE TABLE 4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM
3. Done
INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('look_hostname', '1')
4. Done
INSERT INTO `4images_settings` ( `setting_name` , `setting_value` ) VALUES ('ban_update', '0')
Why??!??
help me please...
b.o.fan
CREATE TABLE fotos1_4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id)) ENGINE=MyISAM
CREATE TABLE fotos1_4images_ban_logs ( id mediumint(10) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', ban_id mediumint(12) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', ip tinytext NOT NULL, uri varchar(255) NOT NULL default '', PRIMARY KEY (id))Ich habe also "
CREATE TABLE fotos1_4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active)) ENGINE=MyISAM
CREATE TABLE fotos1_4images_ban (id mediumint(12) NOT NULL auto_increment, `type` tinyint(1) NOT NULL default '0', active tinyint(1) NOT NULL default '0', ip1_start tinyint(3) unsigned NOT NULL default '0', ip1_end tinyint(3) unsigned NOT NULL default '0', ip2_start tinyint(3) unsigned NOT NULL default '0', ip2_end tinyint(3) unsigned NOT NULL default '0', ip3_start tinyint(3) unsigned NOT NULL default '0', ip3_end tinyint(3) unsigned NOT NULL default '0', ip4_start tinyint(3) unsigned NOT NULL default '0', ip4_end tinyint(3) unsigned NOT NULL default '0', user_id mediumint(10) NOT NULL default '0', name varchar(255) NOT NULL default '', hostname tinytext NOT NULL, email tinytext NOT NULL, `date` int(11) NOT NULL default '0', expire int(11) NOT NULL default '0', message text NOT NULL, reason text NOT NULL, PRIMARY KEY (id), KEY active (active))Ich habe also "
REMOVED
the half of the ban_install.php is oky but than: Look @ the screenshot$force = false;
with:$force = true;
it will force query the database each time someone opens a page. if it works, then there is something wrong with the way your 4images stores some sessions... else
{
$ip = $site_sess->session_info['session_ip'];
$email = $user_info['user_email'];
$user_id = $user_info['user_id'];
$name = $user_info['user_name'];
$hostname = "";
$force = true;
}
Warning: main(./includes/functions.php): failed to open stream: No such file or directory in /home/pramoga/public_html/global.php on line 266
Warning: main(./includes/functions.php): failed to open stream: No such file or directory in /home/pramoga/public_html/global.php on line 266
Warning: main(): Failed opening './includes/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pramoga/public_html/global.php on line 266
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 99
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/pramoga/public_html/global.php:266) in /home/pramoga/public_html/includes/sessions.php on line 107
Fatal error: Call to undefined function: check_ban() in /home/pramoga/public_html/includes/sessions.php on line 412
$ban_banned = $site_sess->get_session_var("ban_banned");
this code: if (in_array($site_sess->session_info['session_ip'], array("65.35.35.155")))
{
@error_reporting(E_ALL);
echo "Ban checked: ".$ban_checked;
echo "<br>Ban banned: ".$ban_banned;
}
u should not see any changes, because it should work only from my IP.
Ban banned: a:10:{i:0;s:1:\"4\";s:2:\"id\";s:1:\"4\";i:1;s:1:\"1\";s:4:\"type\";s:1:\"1\";i:2;s:7:\"Testing\";s:7:\"message\";s:7:\"Testing\";i:3;s:10:\"1116460302\";s:4:\"date\";s:10:\"1116460302\";i:4;s:1:\"0\";s:6:\"expire\";s:1:\"0\";}
Notice: unserialize(): Error at offset 10 of 227 bytes in /home/pramoga/public_html/includes/functions.php on line 1758
@error_reporting(E_ALL);
(in the code I've posted in my previous reply) phpinfo();
4images does not log visitor's IPs, only stores IPs of currently active sessions.
Does this mean, that I would have to take notes of their IPs separately? I mean, if I would ban a registered user via Email address, user Id or the name, that banned person could just make a new account if I would not ban his/her IP.That is correct.
But then ofcourse u can add a little code in includes/sessions.php that would save IPs of each visitor in the database ;)
but what "little code" would that be?some how I had a feeling this is going to be next question...:lol:
some how I had a feeling this is going to be next question...:lol:
Well, since its not really related to this mod, perhaps u should start a new topic in the mod requests forum ;)
You also have fantastic English langauge skills, but remember, it is "says", not "sais". :wink:thank you for the correction, I appretiate it ;)
The problem on the internet chats that no one corrects u, u can spell words as u wish, just enough for people understand u...and most of the time nobody say a word about your spelling...:(this sounds like an encouragement to start annoying about any little mistake... :twisted: hehehe
this mod is using 4images sessions to "cache" the results (to avoid extra server load).
u can try disable "caching" feature by replacing $force = false; with $force = true; in includes/functions.php (require Ban v1.5 or above)
$user_info = $site_sess->return_user_info();
$site_template = new Template(TEMPLATE_PATH);
//--- End Templates -----------------------------------
Step 7.1
$lang_select .= " selected=\"selected\"";
}
$lang_select .= ">".$folder."</option>\n";
}
}
$lang_select .= "</select>\n</form>";
// Register the dropdown code for the template engine
$site_template->register_vars("lang_select", $lang_select);
Try to follow our discussion for atleast 2 pages started from this reply:ÿ íå äðóæó ñ àíãëèéñêèì ÿçûêîì ;(
http://www.4homepages.de/forum/index.php?topic=7066.msg36656#msg36656
DB Error: Bad SQL Query: SELECT count(id) as num FROM BAN_TABLE WHERE (type=0 OR type = BAN_IP OR type = BAN_HOSTNAME OR type = BAN_NAME OR type = BAN_EMAIL OR type = BAN_USERID) AND date <= 1143063022 OR date > 1143063022 OR (expire AND expire <= 1143063022)
Table 'web16_images.BAN_TABLE' doesn't exist
DB Error: Bad SQL Query: SELECT * FROM BAN_TABLE WHERE (type=0 OR type = BAN_IP OR type = BAN_HOSTNAME OR type = BAN_NAME OR type = BAN_EMAIL OR type = BAN_USERID) AND date <= 1143063022 OR date > 1143063022 OR (expire AND expire <= 1143063022) ORDER BY type asc LIMIT 0, 30
Table 'web16_images.BAN_TABLE' doesn't exist
$user_info = $site_sess->return_user_info();
That line is missing i only have $session_info = $site_sess->return_session_info();
]DB Error: Bad SQL Query: SELECT a.cat_id, a.auth_viewcat, a.auth_viewimage, a.auth_download, a.auth_upload, a.auth_directupload, a.auth_vote, a.auth_sendpostcard, a.auth_readcomment, a.auth_postcomment FROM 4images_groupaccess a, 4images_groupmatch m WHERE m.user_id = AND a.group_id = m.group_id AND m.groupmatch_startdate <= 1143114575 AND (groupmatch_enddate > 1143114575 OR groupmatch_enddate = 0)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND a.group_id = m.group_id AND m.groupmatch_startdate <= 114311457' at line 4
DB Error: Bad SQL Query: SELECT a.cat_id, a.auth_viewcat, a.auth_viewimage, a.auth_download, a.auth_upload, a.auth_directupload, a.auth_vote, a.auth_sendpostcard, a.auth_readcomment, a.auth_postcomment FROM 4images_groupaccess a, 4images_groupmatch m WHERE m.user_id = AND a.group_id = m.group_id AND m.groupmatch_startdate <= 1143114576 AND (groupmatch_enddate > 1143114576 OR groupmatch_enddate = 0)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND a.group_id = m.group_id AND m.groupmatch_startdate <= 114311457' at line 4
If i add the missing line then every thing works fine but i am not sure why the line of code was removed, just checking through my mods as i feel it must have been removed due to one of them.You´re right, I´ve tested this Mod now.
An Improvement would be to ban
- selected comment headline
- selected comment text
- to add an obligatory email field und ban selected email adresses
$comment_user_ip = ($user_info['user_level'] == ADMIN) ? $comment_row[$i]['comment_ip'] : "";
with: $comment_user_ip = ($user_info['user_level'] == ADMIN) ? "<a href=\"".$site_sess->url(ROOT_PATH."admin/plugins/ban.php?ip=".$comment_row[$i]['comment_ip'])."\" target=\"_blank\">".$comment_row[$i]['comment_ip']."</a>" : "";
if ($user_info['user_level'] == ADMIN)in function.php to:
if ($user_info['user_level'] == GUEST)
if ($user_info['user_level'] == ADMIN)
with if (isset($HTTP_GET_VARS['bantest']) && $user_info['user_level'] == ADMIN)
(or redo step 3 if you wish)if I redo step 3 I can't test the bans :(1) did you replace ban.php with the new version?
Is that intended to work this way?
1) did you replace ban.php with the new version?
2) when you click on test link, do you see bantest in the url? if not, look 1) ;)
ad 2) yes - i did download the ban.php from your page (even if it says 1.6 there)Yes, re-check that, because the current version in the package is v1.6.3 ;)
:)
But I'll better re-check it again...
$username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
$username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" title=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
echo "<td><img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$lang['userlevel_guest']."</td>\n";
echo "<td><img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" title=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$lang['userlevel_guest']."</td>\n";
$perpage = $site_sess->get_session_var("ban_logs_perpage");
und ersetze es durch :$perpage = $site_sess->get_session_var("ban_perpage");
$getpaging = new Paging($page, $perpage, $result['num'], $site_sess->url(ROOT_PATH."admin/plugins/ban.php"));
und ersetze es durch :$getpaging = new Paging($page, $perpage, $result['num'], $site_sess->url(ROOT_PATH."admin/plugins/ban.php?action=logs"));
/*
MOD BAN
END INSERT
*/
und füge unmittelbar davor folgendes ein//--- Ban-Log-List-Erweiterung ---
$lang['ban_found'] = "Gefunden :";
$lang['ban_logs_at'] = "Ban-Logs auf";
$lang['ban_pages'] = "Seite(n)";
$lang['ban_disp'] = "Angezeigt :";
$lang['ban_page'] = "Seite";
$lang['ban_with'] = "mit Ban-Log";
$lang['ban_to'] = "bis";
Fatal error: Call to a member function on a non-object in /var/www/vhosts/laisvalaikis.yours.lt/httpdocs/includes/page_header.php on line 109
how can i fix it? :roll:
da hast du recht, man könnte bei der url die session id kürzen, die braucht man eh nicht...
while ($row = $site_db->fetch_array($result))
{
und füge unmittelbar dahinter folgendes ein :// --- Verkürzte URL ... 03.07.2006 ---
$max_url_length = 53; // max.Zeichen für URL
$ban_url = stripslashes($row['uri']);
if (strlen($ban_url) > $max_length) {
$ban_url = substr(stripslashes($row['uri']), 0, $max_url_length)."...";
} else {
$ban_url = stripslashes($row['uri']);
}
// --- Verkürzte URL ... 03.07.2006 ---
2. finde weiter unten folgendes : echo "<td>".substr(stripslashes($row['uri'])."</td>";
und ersetze es durch : echo "<td>".$ban_url."</td>";
ban works... but when uve banned... u dont get a message bet get this:anyone can help me? :?Code: [Select]Fatal error: Call to a member function on a non-object in /var/www/vhosts/laisvalaikis.yours.lt/httpdocs/includes/page_header.php on line 109
how can i fix it? :roll:
---------- [ F.A.Q. ] --------------Why do I get same error? My magic_quotes_gpc is off.
Q: Why when I ban someone, they see the ban message only first time they open the page, after refresh the ban doesnt work anymore?
A: This is a recent discover and its probably because your server has magic_quotes_gpc is turned on (check in phpinfo()).
To fix that, uncomment this line from includes/functions.php:
// $ban_banned = stripslashes($ban_banned); //uncomment this line if magic_quotes_gpc is turned on on your server
Since v1.6.1 added auto check if magic_quotes_gpc is enabled
Hallo,
heute bei 1.7.4 installiert.
Installation hat perfekt geklappt und auch der erste Test lief erfolgreich.
Als nächstes wird die Robots.txt angepasst. :-)
VG
Suricata
probier mal dieses ban file
http://www.4homepages.de/forum/index.php?topic=7066.msg72847#msg72847
gruss
okay...error messages are gone...but I have a member account named TEST with the password TEST. I put it on the banned list to check to see if MOD is working...it did not keep TEST from logging in. ANy help?
Also..can you ban a guest user from the site?
Fatal error: Call to a member function register_vars() on a non-object in /www/01/************/rskpower/includes/page_header.php on line 85
the package u have to download link dosnt work for me :SLink corrected.
Oh wow, this is a first.
Have you installed any mods before? I'm not sure what to blame, your editor, FTP client or...
All I can suggest is restore your backups and try again.
hmmm... what's wrong in there?
hmmm... what's wrong in there?
I have no clue. But I'd guess its your editor? What did you use to edit files?
how i can set a ban link on user profile !? So when i (like administrator) go on some user profil and click a ban link, new windows should be open in control napel.. so i have automactly set a ban on user nick or ip...The simplest way is add this in member_profile.html template:
{if is_admin}
<a href="
<?php
global $site_sess, $user_row;
echo $site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("plugins/ban.php?action=form&user_id={user_id}&name={user_name}&email=".$user_row['user_email']."&type=3"));
?>
">Ban this user</a>
{endif is_admin}
I need something like... when i on control napel click on ban link, and have link above "Who's online ?" when i click on this link, i see online users and BAN link, so if i click on ban i can ban a user without typing anything... !?Yes, you don't need type anything, however, by clicking on that link it doesn't ban anyone, it only fills up the ban form for you. At that stage you can change type of the ban, set date, reason and message, all that is optional. But you still need click "Add" button at the bottom to save the ban.
<A STYLE="text-decoration:none" a href="
it should be:<A STYLE="text-decoration:none" href="
));
//-----------------------------------------------------
//--- ImageCodes v1.0 Begins --------------------------
//-----------------------------------------------------
// Mod: ImageCodes v1.0
// Version: 1.0
// Description : Get image path, link and bbcode on the details page
// Contact: arjoon@gmail.com
// Last update: June 30 2007
$sql = "SELECT image_media_file FROM ".IMAGES_TABLE." WHERE image_id= $image_id";
$image_codes = $site_db->query_firstrow($sql);
$new_name = $image_codes['image_media_file'];
$uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
$uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
$uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
$uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
$uploaded_image_bbcode = "[URL=".$script_url."][IMG]".$uploaded_image_path."[/IMG][/URL]";
$uploaded_thumb_bbcode = "[URL=".$uploaded_image_link."][IMG]".$uploaded_thumb_path."[/IMG][/URL]";
$uploadinfo .= "<font size='2' face='Tahoma'><b>Bilder Codes einbinden:</b><br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Vorschaubild für Webseiten<br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Vorschaubild Für Forums<br /><br />";
$uploadinfo .= "<font size='1' face='Tahoma'>Benutze diesen Code für volle Größe für Foren und Webseiten</font><br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> für Webseiten<br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Webseiten und Forums<br /><br />";
$uploadinfo .= "<font size='1' face='Tahoma'>Privater Link für e-Mails oder als reinen Link</font><br />";
$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'> Reiner Hyper Textlink<br />";
$icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";
$site_template->register_vars("image_codes", $icodes);
//-----------------------------------------------------
//--- end of ImageCodes v1.0 --------------------------
//-----------------------------------------------------
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{prepend_head_title}{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}">
<meta name="description" content="{detail_meta_description}{site_name}">
<meta name="keywords" content="{detail_meta_keywords}">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="10 days">
<meta http-equiv="imagetoolbar" content="no">
<link rel="stylesheet" href="{template_url}/style.css" type="text/css">
<link rel="shortcut icon" href="{home_url}favicon.ico">
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}">
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
{if has_rss}
{endif has_rss}
<script type="text/javascript">
function highlight(field) {
field.focus();
field.select();
}
</script>
<script language="javascript" type="text/javascript">
<!--
var captcha_reload_count = 0;
var captcha_image_url = "{url_captcha_image}";
function new_captcha_image() {
if (captcha_image_url.indexOf('?') == -1) {
document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
} else {
document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
}
document.getElementById('captcha_input').value="";
document.getElementById('captcha_input').focus();
captcha_reload_count++;
}
function opendetailwindow() {
window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
}
function right(e) {
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
alert("© Copyright by {site_name}");
return false;
}
else if (event.button == 2 || event.button == 3) {
alert("© Copyright by {site_name}");
return false;
}
return true;
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = right;
}
else if (document.all && !document.getElementById){
document.onmousedown = right;
}
document.oncontextmenu = new Function("alert('© Copyright by {site_name} War wohl nix was? mit Bilderklau??? ;-) Wenn du das Bild verlinken möchtest, klicke auf das Bild deiner Wahl. Es erscheint der Code zum kopieren. Klicke auf den Code den du brauchst. Der ausgewählte Code wird Blau. Klicke in deinem Browser auf Bearbeiten / Kopieren. Der Code ist dann in der Zwischenablage. Wechsel nun zu der Seite wo du den Code einbinden willst. Rechte Maustaste auf der Seite wo du das Bild Einfügen willst. Das wars. Wers immer wieder Probiert dem Sperre ich seine IP Adresse Kapie !');return false");
// -->
</script>
{if has_rss}
{endif has_rss}
<div id="container">
<p>
<br />
....das "war wohl nix mit bilderklau...." kannst du vergessen.
und der Rechtsklick eingeschaltet und erweitert....
Replace XX with the number u were supposed to memorize from Step 1Quote/*-- Setting-Group XX --*/
$setting_group[XX]="Ban";
This is a recent discover and its probably because your server has magic_quotes_gpc is turned on (check in phpinfo()).
To fix that, uncomment this line from includes/functions.php:
// $ban_banned = stripslashes($ban_banned); //uncomment this line if magic_quotes_gpc is turned on on your server
Since v1.6.1 added auto check if magic_quotes_gpc is enabled