Topic: silly modifications
I made 2 silly modifications to userlist.php.
1 - Removed guest access to user list.
2 - In user list, added a column called last visit for moderators and admins
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → silly modifications
I made 2 silly modifications to userlist.php.
1 - Removed guest access to user list.
2 - In user list, added a column called last visit for moderators and admins
Another silly modification, basically allows to exclude forum id's from search.
For example, Insted of using search.php?action=show_24h, which retrives posts from all forums, I added an exclude param, which excludes specified forum id's from search. eg. search.php?action=show_24h&exclude=8,10,15
Changed files: footer.php and search.php
Demo: http://jobs.gotoguide.org/index.php - try 'show recent posts' and 'show unasnwered posts'
in case anyone think this can be useful, download http://www.gotoguide.org/jobs.zip
in footer.php file, line 47, modify $exclude_forum_ids ="8,10,15"; change '8,10,15' with your forum ids.
Erm, I think that has an SQL inject in it
Edit: I'm talking about the exclusion
Erm, I think that has an SQL inject in it Edit: I'm talking about the exclusion
Sorry, I dint follow you. Did you receive any err msgs.
If you are talking abt the SQL change, I jst added a NOT IN ($exclude_forum_ids). it can be reversed by making it IN for include.
Smartys is saying that your code is insecure and can be used to compromise your server by a hacker.
You should "scrub" the exclude= parameter to make sure that it doesn't contain any harmful SQL code.
$exclude = -1;
if (isset($_GET['exclude'])) {
$excludes = explode(',', trim($_GET['exclude']));
$excludes = array_map('intval', $excludes);
if (!empty($excludes))
$exclude=implode(',', $excludes);
}
Thanks - Miles and Smartys.
I modified the code.
thanks again Miles.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → silly modifications
Powered by PunBB, supported by Informer Technologies, Inc.