Register for your free account! | Forgot your password?

You last visited: Today at 05:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Work ON] User Control Panel

Discussion on [Work ON] User Control Panel within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1

 
DevilOfSun's Avatar
 
elite*gold: 129
Join Date: Jun 2014
Posts: 65
Received Thanks: 39
Cool [Work ON] User Control Panel

Hello Guys
Today i will present you what i am work on.
Sorry for my bad english in this post but i am german

I am Working on a User Control Panel that is Homepage based.
This User Control Panel will give the user the chance to configurate them Accounts by themselfs.
By the way it took the work from the Admin away
And it will clean up some Homepages. (In the truth the most are in a mess)

In this ucp (user control Panel) the user can edit them Passwords, choose 1 of 4 Gear Designs, do a faction change by paying 5k DP (customizable), and move theyr kills from one char to another.
Then i will make a counter who tells the User how mutch kills he doing in this week.

So i am still working on it so if you had ideas or want to help for better performance or security... you are welcome

Here is a little Screenshot of it :




Please tell me what you think of it
DevilOfSun is offline  
Thanks
4 Users
Old 10/23/2015, 21:11   #2
 
elite*gold: 0
Join Date: Sep 2010
Posts: 89
Received Thanks: 15
Sieht gut aus
hatwas is offline  
Thanks
1 User
Old 10/23/2015, 22:21   #3

 
DevilOfSun's Avatar
 
elite*gold: 129
Join Date: Jun 2014
Posts: 65
Received Thanks: 39
Wenn es fertig ist wird es nen free release sein denk ich mal ^^
DevilOfSun is offline  
Old 10/24/2015, 00:31   #4
 
elite*gold: 0
Join Date: Apr 2015
Posts: 70
Received Thanks: 46
Some scripts already exists,take them and make some modifications
[ADM]_Dephisio is offline  
Old 10/24/2015, 02:50   #5

 
DevilOfSun's Avatar
 
elite*gold: 129
Join Date: Jun 2014
Posts: 65
Received Thanks: 39
But the most are not with the code i need.
I´ve find a script for faction change but in it you must only put the charname and then the scripts take the account to other faction. Now i will modify it to something like : Put Accountname and Passwort and then the Script Change the Faction but also clean the Chars Inventory because of Character Load Error if they had Light gear on or am i wrong ?
DevilOfSun is offline  
Old 10/24/2015, 03:10   #6
 
elite*gold: 0
Join Date: Apr 2015
Posts: 70
Received Thanks: 46
If you have login on your website (with the account of the server) you can try to make something like this:
Player need to login to the website > he goes on the panel and then he can choose the character for change his faction.
[ADM]_Dephisio is offline  
Thanks
1 User
Old 10/24/2015, 03:22   #7

 
DevilOfSun's Avatar
 
elite*gold: 129
Join Date: Jun 2014
Posts: 65
Received Thanks: 39
yeah thats what i am thinking too, but the security is higher when the user have to put in the Account and Password i think or ?

So at The moment i use this script :

PHP Code:
<?php

require_once('db.config.php');

$character '';

?>
-- Script From [DEV]Viro

<html>
    <head>
        <title>[Dev]Viro Faction Change</title>
    <style type="text/css">
        h2         {text-align:center; color:yellow;}
        h4         {text-align:center; color:white;}
        div#adminLogin    {background-color:#111111; width:160px; padding:10px;}
        div#formArea    {background-color:#595959; padding:5px; position:relative; left:0px;}
        .submitButton    {position:relative; left:40px;}
        
    </style>
    </head>
    <body>
        <div id="adminLogin">
            
            <div id="factionChange"><h4>Faction Change</h4>

                <div id="formArea">
                    <form action="factionchange.php" method="POST">
                        Account<br/><input type="text" name="character" value="<?php echo $account?>"><br/>
                        Passwort<br/><input type="text" name="password" value="<?php echo $password?>"><br/>
                        <br/><input type="submit" name="formSubmit" value="Submit" class="submitButton">
                    </form>
                </div>
            </div>
        </div>
    </body>
</html>
<?php

if ($_POST['formSubmit'] == "Submit") {
    
$account $_POST['account'];
    
$password $_POST ['Pw'];
    
$dbhost $_ENV['LOCAL_DOMAIN'];

    
$sql "SELECT UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = ? and Pw = ?";
    
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
    
$args = array($account);
    
$args = array ($password);
    
odbc_execute($stmt,$args,);
    
'<br/>';
    
$userUID odbc_result($stmt,'UserUID');
    
    
$sql "SELECT Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID = ?";
    
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
    
$args = array($userUID);
    
odbc_execute($stmt,$args);
    
'<br/>';
    
$country odbc_result($stmt,'Country');
    
    if (
$country==0) {
        
$sql "UPDATE PS_GameData.dbo.UserMaxGrow
            SET Country = 1
            WHERE UserUID = ?"
;
        
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
        
$args = array($userUID );
        
odbc_execute($stmt,$args);
        echo 
$character.' was successfully factioned changed from light to fury!';
    }

    if (
$country==1) {
        
$sql "UPDATE PS_GameData.dbo.UserMaxGrow
            SET Country = 0
            WHERE UserUID = ?"
;
        
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
        
$args = array($userUID );
        
odbc_execute($stmt,$args);
        echo 
$character.' was successfully factioned changed from fury to light!';
    }

    
odbc_close($GLOBALS['dbConn']);
}

?>

but when i submit i become the following error:

Code:
Warning: odbc_execute() [function.odbc-execute]: Not enough parameters (1 should be 2) given in C:\xampp\htdocs\scriptsucp\FactionChange\factionchange.php on line 49

Warning: odbc_execute() [function.odbc-execute]: SQL error: [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification, SQL state 22005 in SQLExecute in C:\xampp\htdocs\scriptsucp\FactionChange\factionchange.php on line 56

Warning: odbc_execute() [function.odbc-execute]: SQL error: [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification, SQL state 22005 in SQLExecute in C:\xampp\htdocs\scriptsucp\FactionChange\factionchange.php on line 66
I dont see what the hell i forgot xD can you help ? ^^
DevilOfSun is offline  
Old 10/24/2015, 03:28   #8
 
elite*gold: 0
Join Date: Apr 2015
Posts: 70
Received Thanks: 46
>On Legacy we do something like what i said and its secure
>i'm not very good in Php sorry
[ADM]_Dephisio is offline  
Thanks
1 User
Old 10/24/2015, 03:41   #9

 
DevilOfSun's Avatar
 
elite*gold: 129
Join Date: Jun 2014
Posts: 65
Received Thanks: 39
Okay i will do a script like u said and i hope that this will work ^^
I Think the hardest work will the gear change script xD
DevilOfSun is offline  
Old 10/24/2015, 12:12   #10
 
Trayne01's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 473
Received Thanks: 1,093
You can make a simple PHP login script using
PHP Code:
$_SESSION 
and then, make a check like that to display or not your panel:
PHP Code:
if (!empty($_SSSION['UserName'])) {
              include(
'panel.php')
        else {
        
$msg='You can login <a href="login.php">here</a> to use the panel') }
...... 
PHP Code:
<p>echo($msg)</p
and in your panel.php:

PHP Code:
if (!empty($_SSSION['UserName'])) {
//your script here....

Trayne01 is offline  
Thanks
1 User
Old 10/25/2015, 12:59   #11
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
You wrote
Code:
if (!empty($_SSSION['UserName'])) {
not SSSESION just SESSION
SkuulCandy is offline  
Old 10/30/2015, 02:55   #12

 
DevilOfSun's Avatar
 
elite*gold: 129
Join Date: Jun 2014
Posts: 65
Received Thanks: 39
Yaaaay I'm back a few days i was banned but now i am back xD
So cause of the ucp, i will use a script what controls login state from HP (And HP Login is InGame Account Login) This way i dont need a 2nd or 3rd login. But how to put a Inventory Clean into Faction Change Script?
DevilOfSun is offline  
Old 10/30/2015, 18:49   #13
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
You want to clean char's inventory after used fc ?
SkuulCandy is offline  
Old 10/30/2015, 21:29   #14

 
DevilOfSun's Avatar
 
elite*gold: 129
Join Date: Jun 2014
Posts: 65
Received Thanks: 39
Yes, only inventory they can put their gears into warehouse. Its only for not let the gear on from light you know ? xD Because i want fc for take their kills and points with them. Not for take gear to other faction you know?
DevilOfSun is offline  
Old 10/31/2015, 08:38   #15
 
wallerus's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 300
Received Thanks: 472
Something like this is what you'd use to delete Gear, Weapons, Accessories and Capes from inventories and warehouse.
Code:
Delete From PS_GameData.dbo.CharItems -- Inventory
Where UserID = @UserID
and Type IN
(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,32,33,34,35,36,39,40)

Delete From PS_GameData.dbo.UserStoredItems -- Warehouse
Where UserID = @UserID
and Type IN
(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,32,33,34,35,36,39,40)
I used "IN" so you can easily add or remove item types from the delete query, if you want to delete ALL items, just remove the "and Type IN ..." part of the query.
wallerus is offline  
Reply

Tags
control panel, panel, shaiya, user


Similar Threads Similar Threads
[Selling] User Control Panel [S] E*G
09/22/2014 - elite*gold Trading - 0 Replies
Ordnerstruktur: http://i.epvpimg.com/ZaTIb.png Screens: http://i.epvpimg.com/8vQfc.png http://i.epvpimg.com/sVVhe.png http://i.epvpimg.com/Wr0wf.png http://i.epvpimg.com/af6rd.png http://i.epvpimg.com/j9Trh.png http://i.epvpimg.com/7tvqd.png Beschreibung: -> MySQL Improved (OOP Schreibweise)
User Control Panel Design
05/04/2013 - Artist Trading - 2 Replies
Hey Community Ich hätte ein User Control Panel zu verkaufen, das UCP geht in die Themen richtung GTA:SA, aber wen man die Render und Grafiken im Background etwas ändert kann man es auch ganz schnell und Simple für was anderes benutzen. Gemacht wurde das UCP eigentlich für mein altes Projekt wo ich im Team war, aber da der Server Leiter der Meinung war einfach alles zu verkaufen weil er Preis stimmte benötige ich das
User Control Panel
06/11/2012 - Shaiya - 2 Replies
Can some 1 pls share the shaiya user control panel ?if some1 stil have it.Ty anticipated.
[Hilfe] User Control Panel
06/29/2011 - Shaiya - 0 Replies
hallo, ich habe ein großes problem. ich habe das user control panel, aber das hat große fehler, wo bekomm ich den gefixten scrip her für das UCP ??? bitte um schnelle hilfe RaZoR elite*gold spenden
[Need Something] v15 User Control Panel
07/12/2010 - Flyff Private Server - 4 Replies
Hello, Im admin from a v15 server, I need a user cp for my site, Someone haves ?? Post it here please.



All times are GMT +2. The time now is 05:17.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.