change staff tools password

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    change staff tools password

    hi there friends i am trying to sort out a change password for staff tools and keep getting error can any one help fix this please thanks to any one that help me out


    o i keep getting this error
    Code:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/********/public_html/admin/password.php on line 38
    Attached Files
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    #2
    Code:
    <?php
    define('WCS',true);
    include('../core/main.inc');
    header_type();
    cleardata();
    if(ipbanned(ip(),browser())){
    if(!shield(getuid_sid($sid))){
    echo head_tag("Ip Blocked!!!",0,0);
    echo ipbanned_msg();
    echo foot_tag();
    exit();
    }
    }
    if(!islogged($sid)){
    echo head_tag("Error!!!",0,0);
    echo session_expired();
    echo foot_tag();
    exit();
    }
    if(banned(getuid_sid($sid))){
    echo head_tag("Error!!!",1,getnick_sid($sid));
    echo banned_msg($sid);
    echo foot_tag();
    exit();
    }
    mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
    
    /////////////////////////PASSWORD/////////////////////////
    
    if($update==1)
    {
    addonline(getuid_sid($sid),"???????","");
    echo head_tag(getnick_sid($sid)."@???????",1,getnick_sid($sid));
    $title="<b>Updating Password</b>";
    $main="<p align=".align().">";
    $password=mysql_fetch_array(mysql_query("SELECT value FROM settings WHERE name='dwnpass2'"));
    if($check_pass[0]==$password){
    $res = mysql_query("UPDATE setting SET password='".$password."' WHERE name='dwnpass2'"));
    if($res){
    $main.="<img src=\"../images/ok.gif\" alt=\"o\"/><br/>Your password was updated successfully\n";
    }else{
    $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error updating your password\n";
    }
    }else{
    $main.="<img src=\"../images/error.gif\" alt=\"[x]\"/><br/>Error current password is incorrect\n";
    }
    $main.="<br/>
    <br/>$fivekey<a $key5 href=\"./settings.php?sid=$sid\">Settings</a>
    </p>\n";
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    exit;
    }
    
    addonline(getuid_sid($sid),"??????","");
    echo head_tag(getnick_sid($sid)."@??????",1,getnick_sid($sid));
    $title="<b>Update Password</b>";
    $main="<div class=".align().">
    <form action=\"./admin/password.php?update=1&amp;sid=$sid\" method=\"post\">
    Current Password: <input name=\"cpwd\" maxlength=\"10\"/><br/>
    New Password: <input name=\"npwd\" maxlength=\"10\"/><br/>
    <input type=\"submit\" value=\"Update Staff Password\"/>
    </form>
    </div>
    </p>\n";
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    ?>

    Comment


      #3
      thanks gary it worked great your a star
      HELP THEM WHO HELPS YOU



      i only work on wapdesire v_2 coding only

      Comment

      Working...
      X