Chumpy's simple regpage and cash shop v1.5 beta

Page 18 of 22 FirstFirst ... 810111213141516171819202122 LastLast
Results 426 to 450 of 544
  1. #426
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    That should not happen with 1.5 (it did before i introduced the bank). Have a look in the hardlog.txt in the cash shop folder and see what queries it is executing to see what is happening, it may just be displaying the wrong value.

    I am very close to v2 now (it's currently being tested) which will give me more information on problems like this. This is another reason why i dont't introduce cash payment systems as it must be bulletproof for that to work really and i know there are a few flaws in 1.5.

  2. #427
    Proficient Member dragaobr is offline
    MemberRank
    Jan 2009 Join Date
    158Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    someone to help me with my error in the cash shop

    before giving the error authentication failure, "you do not have permission to access this panel"

    I changed the shop and now the error "hack attempt"

    I got my char to 3rd nation "GM" but still the error please help me! ..

  3. #428
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    A "hack attempt" error is usually down to the cash shop not being given the correct v1 and v2 values. Enable debug mode in config.php and check all of the values show up correctly at the top.

  4. #429
    Proficient Member dragaobr is offline
    MemberRank
    Jan 2009 Join Date
    158Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    I will put my config.php and my folder and you could shop does get it correctly?

    my webshop and config.php of my website pls configure the two " shop and config.php of my website " and send to me to i edit ip and senha of sql and the shop work

    http://sharex.xpg.com.br/files/3637564151/shop.rar.html

    PS: I just edited the sql password here and config.php in the hours I put the password for sql but only need to configure it possible for me just for the password of the sql work and shop.

  5. #430
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    The configuration isn't the problem, the problem is that the shop cannot tell who you are and i cannot tell why without the debug information.

    Open config.php and find this:

    // Print debug info at the top of the cash shop pages
    define('TESTMODE',false);

    Change to:

    // Print debug info at the top of the cash shop pages
    define('TESTMODE',true);

    Now go to the cash shop and you will see lots of informtation at the top. I need to know what it says.

  6. #431
    Proficient Member dragaobr is offline
    MemberRank
    Jan 2009 Join Date
    158Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    i go test thanks.

    edit :

    the error continuated.

    here my config.php of my cash shop.

    <?php

    // General options for both reg page and cash shop

    // Title shown at the top of pages
    define('PAGE_TITLE','The Divinity Project');

    // Link to website or patch
    define('LINK_WSITE','http://inxanityro.com/forum/');

    // Text to display for link
    define('NAME_WSITE','The Divinty Project');

    // Link to forums
    define('LINK_FORUM','http://inxanityro.com/forum/');

    // Text to display for link
    define('NAME_FORUM','The Divinity Project');


    // MSSQL server connection details
    // Database server
    define('DB_ADDR','127.0.0.1');
    // Database login
    define('DB_USER','sa');
    // Database password
    define('DB_PASS','123456');

    // In case you have a different db names
    define('DB_ACC','ACCOUNT');
    define('DB_GAM','GAMEDB');
    define('DB_CCA','CABALCASH');
    define('DB_CSH','CASHSHOP');

    // ServerIdx MUST match the one in WorldSvr_XX_YY.ini or cash items
    // Will not get delivered correctly.
    define('SVR_IDX','5');

    // Category names for cash shop admin panel
    $cats=array(1=>'Costumes',2=>'Gear',3=>'Pets',4=>'Consumables',5=>'Items');

    // Print debug info at the top of the cash shop pages
    define('TESTMODE',true);

    // Maintenance mode, open to GMs only.
    define('MAINTMODE',false);

    // Uses LastIp validation as well as UserNum and AuthKey
    // Can cause problems
    define('IPVALIDATION',false);

    // Allow transfer of Alz from warehoue to the bank
    // Set to false if you don't want to use Alz for cash items
    define('ALLOW_BANK',true);

    ?>
    Last edited by dragaobr; 08-04-10 at 01:24 AM.

  7. #432
    Apprentice Gorjak is offline
    MemberRank
    Apr 2009 Join Date
    18Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    hi all
    i have a little problem with this regpage
    when i login i have this error http://img257.imageshack.us/img257/456/error1z.jpg
    and after the login i have this http://img4.imageshack.us/img4/2271/error2y.jpg

    someone help me please

  8. #433
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Quote Originally Posted by dragaobr View Post
    i go test thanks.

    edit :

    the error continuated.

    here my config.php of my cash shop.
    Now log into the shop. You should see a bunch of debug information at the top and it is that info i need to see.

    Quote Originally Posted by Gorjak View Post
    hi all
    i have a little problem with this regpage
    when i login i have this error http://img257.imageshack.us/img257/456/error1z.jpg
    and after the login i have this http://img4.imageshack.us/img4/2271/error2y.jpg

    someone help me please
    The first error is telling you how to fix it.

  9. #434
    Apprentice Gorjak is offline
    MemberRank
    Apr 2009 Join Date
    18Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Quote Originally Posted by chumpywumpy View Post
    Now log into the shop. You should see a bunch of debug information at the top and it is that info i need to see.


    The first error is telling you how to fix it.
    thanks i fix the first error
    but not the second page

    in all the page say hack attempt

    sorry for my english XD
    Last edited by Gorjak; 18-04-10 at 03:02 PM.

  10. #435
    ANTI emi is offline
    MemberRank
    Mar 2009 Join Date
    ZHLocation
    1,378Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    in config.php make sure that this line is like that define('TESTMODE',false);

  11. #436
    Apprentice Gorjak is offline
    MemberRank
    Apr 2009 Join Date
    18Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Quote Originally Posted by emi5893 View Post
    in config.php make sure that this line is like that define('TESTMODE',false);
    i have hack attempt error with testmod false and true

  12. #437
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Quote Originally Posted by emi5893 View Post
    in config.php make sure that this line is like that define('TESTMODE',false);
    I actually need to see the debug info to see what is wrong ;)

    Quote Originally Posted by Gorjak View Post
    thanks i fix the first error
    but not the second page

    in all the page say hack attempt

    sorry for my english XD
    Quote Originally Posted by Gorjak View Post
    i have hack attempt error with testmod false and true
    Even though it says hack attempt it should still show some other info at the top.

    The very first thing the shop does is print the variables it got given, and the v1 (userid) and v2 (authkey) it takes form them. The most common reason for hack attempt messages is a bad cabalmain hex where the variables are not supplied so it can't tell who you are.

  13. #438
    0x1F0FFF TanGzkie is offline
    MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    987Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Hello To all....

    I have an Error when i log-in the error comes out:

    Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near ';'. (severity 15) in C:\xampp\htdocs\CashShop\index.php on line 30

    Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\CashShop\index.php on line 30

    Warning: mssql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\CashShop\index.php on line 31

    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\CashShop\index.php:30) in C:\xampp\htdocs\CashShop\index.php on line 32
    Login Failed...


    After i Hex The Cabalimain.exe
    it says "cabalman.exe is not a valid win32 aplication pls help...im just a n00b...."

  14. #439
    Proficient Member jonathan3137 is offline
    MemberRank
    Sep 2006 Join Date
    190Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    I'm trying to add reset system to the site.
    I don't know neither php and mssql, but I've manager to add password change system in some way, I really have no idea how I did it.

    I already created a tool in stored procedures in the mssql that gets the charaterIdx and resets the character level if its above 180, adds 200 points and adds 1 to resets column.
    If someone can give me further help, it will be helpful.
    Last edited by jonathan3137; 20-05-10 at 04:28 AM.

  15. #440
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Quote Originally Posted by TanGzkie View Post
    Hello To all....

    I have an Error when i log-in the error comes out:

    Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near ';'. (severity 15) in C:\xampp\htdocs\CashShop\index.php on line 30

    Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\CashShop\index.php on line 30

    Warning: mssql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\CashShop\index.php on line 31

    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\CashShop\index.php:30) in C:\xampp\htdocs\CashShop\index.php on line 32
    Login Failed...


    After i Hex The Cabalimain.exe
    it says "cabalman.exe is not a valid win32 aplication pls help...im just a n00b...."
    Line 30 is just an sql query to check the username/password so it must be something in your input. I bet you have something other than letters and symbols in the user/pass maybe?

    If cabalmain is broken after hexing then you hexed wrong. I made a little video guide a while ago for that which you can get from http://mrmagoo.psiblade.net/hex.zip

    Quote Originally Posted by jonathan3137 View Post
    I'm trying to add reset system to the site.
    I don't know neither php and mssql, but I've manager to add password change system in some way, I really have no idea how I did it.

    I already created a tool in stored procedures in the mssql that gets the charaterIdx and resets the character level if its above 180, adds 200 points and adds 1 to resets column.
    If someone can give me further help, it will be helpful.
    You would need to add a button somewhere to call your stored procedure. Look at line 91 in index.php and you will find the switch that controls actions, e.g. www.myweb.com/index.php?action=domystuff gets read as an action and calls a function or includes another php file with a function or similar in it. You will be able to get away with a new "case" section in the switch for your "domystuff" action and then use one of the examples of an SQL query to call your SP.

    From this:
    PHP Code:
    if ($action<>'') {
      switch(
    $action) {
        case 
    'account':
          include(
    'account.php');
          break;  
        case 
    'deposit':
          include(
    'account.php');
          break;
        default:
          include(
    'reg.php');      
      }    
    } else {
      include(
    'reg.php');    

    To something like this:
    PHP Code:
    if ($action<>'') {
      switch(
    $action) {
        case 
    'account':
          include(
    'account.php');
          break;  
        case 
    'deposit':
          include(
    'account.php');
          break;
        case 
    'domystuff':
            
    $r=mssql_query('exec gamedb.dbo.myResetSP '.$v1);
            echo 
    '<a href="index.php">Click to continue</a>';
          break;
        default:
          include(
    'reg.php');      
      }    
    } else {
      include(
    'reg.php');    

    The variable $v1 is already set to the CharIdx so you can use that to pass to your SP.

    Now you just need a link or button somewhere that will take players to index.php?action=domystuff or whatever you want your action to be.

    Hope that helps!

  16. #441
    Proficient Member jonathan3137 is offline
    MemberRank
    Sep 2006 Join Date
    190Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Quote Originally Posted by chumpywumpy View Post
    Line 30 is just an sql query to check the username/password so it must be something in your input. I bet you have something other than letters and symbols in the user/pass maybe?

    If cabalmain is broken after hexing then you hexed wrong. I made a little video guide a while ago for that which you can get from http://mrmagoo.psiblade.net/hex.zip



    You would need to add a button somewhere to call your stored procedure. Look at line 91 in index.php and you will find the switch that controls actions, e.g. www.myweb.com/index.php?action=domystuff gets read as an action and calls a function or includes another php file with a function or similar in it. You will be able to get away with a new "case" section in the switch for your "domystuff" action and then use one of the examples of an SQL query to call your SP.

    From this:
    PHP Code:
    if ($action<>'') {
      switch(
    $action) {
        case 
    'account':
          include(
    'account.php');
          break;  
        case 
    'deposit':
          include(
    'account.php');
          break;
        default:
          include(
    'reg.php');      
      }    
    } else {
      include(
    'reg.php');    

    To something like this:
    PHP Code:
    if ($action<>'') {
      switch(
    $action) {
        case 
    'account':
          include(
    'account.php');
          break;  
        case 
    'deposit':
          include(
    'account.php');
          break;
        case 
    'domystuff':
            
    $r=mssql_query('exec gamedb.dbo.myResetSP '.$v1);
            echo 
    '<a href="index.php">Click to continue</a>';
          break;
        default:
          include(
    'reg.php');      
      }    
    } else {
      include(
    'reg.php');    

    The variable $v1 is already set to the CharIdx so you can use that to pass to your SP.

    Now you just need a link or button somewhere that will take players to index.php?action=domystuff or whatever you want your action to be.

    Hope that helps!
    Thanks man.
    But isn't $v1 set to UserNum?
    Last edited by jonathan3137; 22-05-10 at 01:45 AM.

  17. #442
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Oops, yes it is. My bad XD

  18. #443
    Member dave3002 is offline
    MemberRank
    Mar 2010 Join Date
    67Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    hi all!
    I have an error
    I have this msg:Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\cabal\test\index.php on line 26

    but my Username/Password and Ip are Correct!


    How to fix this?????

  19. #444
    ANTI emi is offline
    MemberRank
    Mar 2009 Join Date
    ZHLocation
    1,378Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    go into ur php.ini
    and delete the ; before the mssql

  20. #445
    Apprentice detebart is offline
    MemberRank
    Jun 2009 Join Date
    12Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    how to enter the registration page of the site the option of registering the mail?
    I tried in many ways more can not.

    I really need to put the email option on the registration page

    pless helpme post exemple php
    Last edited by detebart; 04-06-10 at 05:36 AM.

  21. #446
    xHTML/CSS/JS/Ruby LostSpirit is offline
    MemberRank
    Feb 2008 Join Date
    $ gem search -rLocation
    482Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    is simple learm php.

  22. #447
    Apprentice detebart is offline
    MemberRank
    Jun 2009 Join Date
    12Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    I can not put, could show a model for me? thanks

  23. #448
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    I didn't include email support for one simple reason, it won't work for pretty much everybody. Windows XP doesn't have local smtp support enabled by default and Vista/7 doesn't have smtp at all so sending mails just won't work.

    Unless you already have a remote mail server then just to make emails work i would have to write a whole guide on installing and configuring an email server and 99% of people will mess that up (and expect me to fix it for them). Then you run into the problem that many email providers (like hotmail) will refuse to accept emails from your mail server as it is not trusted, which again people would expect me to work out how to fix. ISPs usually block email ports to stop spammers sending mass emails from their computers too.

    If you did have a remote email server (like the one your ISP gave you) i then run into the problem that not all of them use default ports. Some, like gmail (which i thought i could get away with), only allow encrypted connections. People struggle enough with basic PHP configuration like enabling mssql support, enabling openssl and getting it to talk to all manner of random email server configs is just going to make my life a nightmare.

    Email support is not going to happpen unles you are willing to figure it out yourself. I would like to stay sane :P

  24. #449
    Apprentice detebart is offline
    MemberRank
    Jun 2009 Join Date
    12Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    No mail was supportive.

    I just want to put on the account registration option to register email, to put it in my database the user's email for possible transmission of information and news server.

    example

    Registration:

    account

    password
    confirm password

    Email
    Email confirm

    button (subscribe)

    understand?

    would be just that.
    just do not know how.

    tanks, Master.

  25. #450
    0x1F0FFF TanGzkie is offline
    MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    987Posts

    Re: Chumpy's simple regpage and cash shop v1.5 beta

    Quote Originally Posted by detebart View Post
    No mail was supportive.

    I just want to put on the account registration option to register email, to put it in my database the user's email for possible transmission of information and news server.

    example

    Registration:

    account

    password
    confirm password

    Email
    Email confirm

    button (subscribe)

    understand?

    would be just that.
    just do not know how.

    tanks, Master.

    USE cabalToolZ if you want to have that kind of stuff...
    CLICK ME TO TAKE YOU THERE



Advertisement