1
icepick66
Re: Allowing : 's in user registration
  • 2008/2/22 11:58

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


Okay, narrowed it down to be protector,

Thing is the website allows :'s

But nothing else is allowed, yet, I cant find in protector where it excludes checking for :'s for the url feild



2
icepick66
Allowing : 's in user registration
  • 2008/2/21 22:46

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


Heya, I'm having a big headache on how to enable Colons ":" in a field when a user registers, Whenever its posted, XOOPS or something strips all the :'s out of the field, before it enters register.php as a post var, ive searched for a good 3 hours now on how its doing that, but i still have no clue whats causing it to be santalised, Ive removed all myts from the variables associated with it.

REGISTERFORM.php
// Steam Verifcation
$reg_form->addElement(new XoopsFormText("Steam Profle""url"25255$myts->htmlSpecialChars($steam)));
$reg_form->addElement(new XoopsFormTextSteam("Your Steam ID""steamid",2323$steamid), true);
$reg_form->addElement(new XoopsFormText("Your Steam Verifcation Code <a href='whatsthis.html' target='_blank'>?</a>""steamvar",1110$steamvar), true);


REGISTER.php
$steamid 
= isset($_POST['steamid']) ? $_POST['steamid'] : '';
$steamvar = isset($_POST['steamvar']) ? 
$myts->stripSlashesGPC($_POST['steamvar']) : '';


The steamvar doesent need the colons in it so i left stripslashes on, but the steamid is in the format: STEAM_X:Y:|ZZZZZZZ

When it comes out its in the format
STEAM_XYZZZZZZZ

Shown by a Print $steamid; after storing the variable.
someone please save me xD

Thanks a lot :)



3
icepick66
Flash module
  • 2008/2/7 11:11

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


Few months ago I found a module in the repository that would allow XOOPS to be the back-end of a flash website, with XOOPS as the user and database management, I cant seem to find it in the Repository, Wonder if anyone knows where it went or has a link?

Thanks



4
icepick66
Re: How do I add a simple webpage to a xoops themed site?
  • 2007/10/23 23:51

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


include(XOOPS_ROOT_PATH "/header.php");
$xoopsTpl->assign('xoops_showrblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock'0); // 1 display right blocks


I'm interested in what blocks does the page show, does it inherit from the module folder its in?
Or does it just display the global blocks?



5
icepick66
Display a Block in a other webpage by copying php code
  • 2007/10/23 23:48

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


Hey,
I use mashtop publish, and found because its hidden, you cant add blocks to it.

Is there a way to copy a block's php code, and paste it into a mashtop publish page, or perhaps somehow include it?

I've tried copying the smarty html template, obviously that didn't work, and tried including the blocks/blockname.php



6
icepick66
NewBB print exploit?
  • 2007/9/6 18:34

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


NewBB version installed: Newbb 2 (2.02)
Xoops protector picked up somone trying to exploit newbb's print page:
2007/8/29 11:41:08      Guests      200.46.200.3
libwww
-perl/5.43     ISOCOM     Isolated comment-in found. (17400/*/newbb/print.php?forum=*topic_id=*http://148.245.107.2/.ssh/safe.txt?)
    2007/8/29 11:31:38     Guests     222.236.44.50
libwww-perl/5.79     ISOCOM     Isolated comment-in found. (17400/*/
newbb/print.php?forum=*topic_id=*http://148.245.107.2/.ssh/safe.txt?)

Just concurned for people who dont have protector installed



7
icepick66
Any BIG list of proxy ip's
  • 2007/7/26 13:25

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


Does anyone know a site where there is a big list of proxy ip's and are easly copy/pastable to ban?

Thanks,
icepick66



8
icepick66
Re: Ban cookie?
  • 2007/7/26 13:12

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


In the end i found a old phpbb ban cookie addon and patched it into protector:

Heres how I did it:

Protector Trust Path/include/pre_check.php
function protector_prepare()
{
// FIND //
    // check the access is from install/index.php
    
if( defined'_INSTALL_CHARSET' ) ) die( 'To use installer, remove protector's lines from mainfile.php first.' ) ;

    // Protector class
    require_once dirname(dirname(__FILE__)).'
/class/protector.php' ;
// add Below //
    if (isset($_COOKIE["xoops_banned"]))
    {
        // Set the banned cookie for a year, reset it every time the user visits. (Thanks to Merlin Sythove)
        setcookie( "xoops_banned", true, time() + (365 * 24 * 3600), "/", "yourdomainname.co.uk", "0" );
        die('
You are banned');
    }
// FIND//
    // bad_ips
    $bad_ips = Protector::get_bad_ips() ;
    foreach( $bad_ips as $bad_ip ) {
        if( $bad_ip && substr( @$_SERVER['
REMOTE_ADDR'] , 0 , strlen( $bad_ip ) ) == $bad_ip ) {
// ADD line//               setcookie( "xoops_banned", true, time() + (365 * 24 * 3600), "/", "yourdomainname.co.uk", "0" );
            die( '
You are registered as BAD_IP by Protector.' ) ;
        }
    }


I advise you change the cookie name "xoops_banned" to match your site's name or somthing.

Obviously this wont stop the advance moron, but stop morons with dynamic ip's for long enough they will give up.

Hopefully someone will make a account banning system so when a banned user trys to log into his account, he is automatically banned by a cookie or IP



9
icepick66
Ban cookie?
  • 2007/6/24 15:21

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


Is there any hack or feature to give banned users a ban cookie, so if they change ip address it will still block them from being able to access the site?

Simular to IPB's ban cookie feature.



10
icepick66
Some modules admin wont work
  • 2007/1/11 16:24

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


Hey im running XOOPS 2.0.16, tryed to add the old xoopsPolls modle, all went fine, i can access the admin page for the poll module, but none of the links work, i click on one and it just goes back to the poll admin page.
so i cant delete or add or edit any polls, the weird thing is newbb 2.0 can add polls using the forum, and they work perfectly fine and appear in the polls module.

ive notice this effect of a lot of modules ive tryed, is it a instalation problem, server setup problem? or a side effect of the new 2.0 series

also from newbb2 will my posts delete if i upgrade to cbb?




TopTop
(1) 2 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

67 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 67


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits