user panel doesn't work

Results 1 to 9 of 9
  1. #1
    Enthusiast qn24051706 is offline
    MemberRank
    Sep 2009 Join Date
    HCM cityLocation
    47Posts

    user panel doesn't work

    take a look at the picture of the local website
    and my mod.serverstat.php is following
    and this is supposed to be the error
    somebody plz help me to fix it

    foreach ($feed->children() as $x => $s) {if ($x == 'service')
    this is my mod.serverstat

    <?PHP
    $file = $_config['server_feed'] . 'serverstats.php?callback=serverstat&type=xml';
    $data = file_get_contents($_rootdir.'backend.php?'.$file);

    $feed = simplexml_load_string($data);

    ?>
    <style>
    #stats {
    margin: 2px;
    background-color:#000;
    padding-left: 15px;
    }
    #stats label {
    float: left;
    width: 70px;
    color: rgb(152, 207, 154);
    }
    .label2 {
    padding-left: 15px;
    float: left;
    color: rgb(152, 207, 154);
    }
    </style>
    <div id="servstats" align="left">
    <?PHP
    $c = 1;
    $i = 1;
    foreach ($feed->children() as $x => $s) {
    if ($x == 'service') {

    echo '<table width="100%">';
    foreach ($s as $s1 => $s2) {
    if ($s2->user == 0) {
    echo '<tr style="background-color:#000;">
    <td width="130" height="20" style="background-color:#000;"><div class="label2">'. $s2->desc. '</div></td>
    <td width="39" align="left" height="20"><small>Wait</small></td>
    </tr>';

    } else {
    echo '<tr style="background-color:#000;">
    <td width="100" height="20" ><div class="label2">'. $s2->desc. '</div></td>
    <td width="39" align="left" height="20">
    <div style="position: relative; top: 4px; left: 0pt; width: 39px; background-image: url(includes/empty.jpg);"><img src="includes/spacer.gif" height="8"></div>
    <div style="position: relative; top: -4px; left: 0pt; width: '.$s2->user.'%; background-image: url(includes/full.jpg); background-repeat: no-repeat;"><img src="includes/spacer.gif" height="8"></div>
    </td>
    </tr>';
    }
    }
    echo '</table>';
    } else {
    foreach ($s as $s1 => $s2) {
    echo '<div id="stats"><label>'. $s1. '</label> : <b>'.$s2.'</b></div>';
    }
    }
    }
    ?>


    </div>

    mod.serverstat.txt

    untitled.bmp
    Last edited by qn24051706; 01-06-10 at 05:52 PM. Reason: files are too big :D


  2. #2
    Member fireblade3 is offline
    MemberRank
    Jun 2009 Join Date
    Pahang MYLocation
    91Posts

    Re: user panel doesn't work

    clear the cache
    xampp/htdocs/cache
    Last edited by fireblade3; 02-06-10 at 03:18 AM.

  3. #3
    Enthusiast qn24051706 is offline
    MemberRank
    Sep 2009 Join Date
    HCM cityLocation
    47Posts

    Re: user panel doesn't work

    there is no cache in the directory you gave me

  4. #4
    Member fireblade3 is offline
    MemberRank
    Jun 2009 Join Date
    Pahang MYLocation
    91Posts

    Re: user panel doesn't work

    u change it ur backend name...search the file named cache..and delete all inside the file

  5. #5
    Enthusiast qn24051706 is offline
    MemberRank
    Sep 2009 Join Date
    HCM cityLocation
    47Posts

    Re: user panel doesn't work

    ok
    there is the cache in the other file
    i deleted all the files inside,but it's still the same

  6. #6
    Member fireblade3 is offline
    MemberRank
    Jun 2009 Join Date
    Pahang MYLocation
    91Posts

    Re: user panel doesn't work

    make sure u config the config.php in backend
    u has change the backend name so....
    look the config.php in frontend
    <?PHP
    set_time_limit(20);
    $_config['forum_feed'] = 'www.blabla.com';
    $_config['notice_feed'] = 'www.blabla.com';
    $_config['updates_feed'] = 'www.blabla.com';
    $_config['events_feed'] = 'www.blabla.com';
    $_config['forum_link'] = 'www.blabla.com';

    $_config['server_feed'] = 'http://123.123.123.123/backend/';// dont forget to add / in the end<<----check dis out,make sure u put the ip number(ur wan ip) and backend rename to ur file name that u rename example 'http://125.125.125.125/superman/'

    $_config['front_page'] = 'frontpage';
    $_config['popup_vote'] = 120;
    $_config['top_hero'] = 10;
    $_config['nocache'] = false;
    $_config['close_site'] = false;
    $_config['redirect'] = 'www.blabla.com';
    Last edited by fireblade3; 02-06-10 at 03:16 AM.

  7. #7
    Enthusiast qn24051706 is offline
    MemberRank
    Sep 2009 Join Date
    HCM cityLocation
    47Posts

    Re: user panel doesn't work

    $_config['server_feed'] = 'http://123.123.123.123/backend/';// dont forget to add / in the end<<----check dis out,make sure u put the ip number(ur wan ip) and backend rename to ur file name that u rename example 'http://125.125.125.125/superman/'
    lokks like i forgot about "backend"
    it was just backend,i didn't write its name
    let's see if it works after i change it
    .........................
    still the same
    i think the error is in mod.serverstat my friend
    Last edited by qn24051706; 02-06-10 at 04:28 AM.

  8. #8
    Member fireblade3 is offline
    MemberRank
    Jun 2009 Join Date
    Pahang MYLocation
    91Posts

    Re: user panel doesn't work

    i send a PM
    look in ur Inbox

  9. #9
    Enthusiast qn24051706 is offline
    MemberRank
    Sep 2009 Join Date
    HCM cityLocation
    47Posts

    Re: user panel doesn't work

    i reinstalled xampp
    now the problem is still persisting
    Attached Thumbnails Attached Thumbnails untitled.bmp  
    Last edited by qn24051706; 03-06-10 at 11:56 AM.



Advertisement