Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Search the Community

Showing results for tags 'login'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 7 results

  1. Hello everyone, Sorry for duplicating the question, This is Register.php Script <?PHP if(isset($_POST['user'])) { $user = $_POST['user']; } if(isset($_POST['email'])) { $email = $_POST['email']; } if(isset($_POST['password'])) { $pass = $_POST['password']; } $con = mysqli_connect("fdb16.awardspace.net","db_user","db_pass"); if (!empty($con)) die('Could not connect: ' . mysqli_connect_error($con)); $db_select = mysqli_select_db($con,"db_user"); if(!empty($db_select)) { die("Database selection failed: " . mysqli_error($db_select)); } if(!empty($user)) { $check = mysqli_query("SELECT * FROM `userinfo` WHERE `user`='".$user."'"); } if(!empty($check)) { $numrows = mysqli_num_rows($check); } if(!empty($numrows)) { if ($numrows == 0) { $pass = md5($pass); $ins = mysqli_query("INSERT INTO `userinfo` ( `id` , `user` , `email` , `pass` ) VALUES ('' , '".$user."' , '".$email."' , '".$pass."') ; "); if ($ins) die ("Succesfully Created User!"); else die ("Error: " . mysqli_error()); } else { die("User allready exists!"); } } ?> And i get this error : Warning: mysqli_connect(): (HY000/2002): Connection refused in /storage/ssd1/777/6725777/public_html/register.php on line 17Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in /storage/ssd1/777/6725777/public_html/register.php on line 21
  2. Free Login Window. It should have animations when you click at field. Special is for promo codes like "y8BeQ" Or something This is uploaded as prefab. Link: http://www.mediafire.com/file/edvl2yi17u6ec6r/LoginUI.rar
  3. Hi everyone! Firstly, Eid Mubarak for all Muslims around the world! guys i have problem with looping google sign-in.. : first of all let me introduce to my new updated things: Unity -> 5.6.1f (previous 5.5.0f) GooglePlayGames -> 0.39.8a (no previous) --- before i switched to 5.6.1f i was have 5.5.0f and i wasn't getting any error and sign-in was successfully signed and showing leaderboard..etc.. and when i switched i get google signin looping! .. my question guys what do you suggest me to use googleplaygames plugin version for 5.6.1f ? --- sorry for my language guys i'm very lazy and crazy nowadays!
  4. Simple Web Server login Description Here is a simple script I wrote in PHP and C# to authenticate a user via a web server. I have included a web server configured for the script. I tried packing ( Using BATCH to EXE the web server ( QuickPHP ) with the configure app ( Runs QuickPHP in background with right configuration ) all into a single exe but it produced a false positive with AVG anti virus so I will provide download link with two versions one with built folder and one without. The server configuration app for the web server is written in JustBasic/LibertyBasic and the sources is included. If you are using your own web server you just copy and paste the PHP scripts from sources\raw apps\scripts to the root of your server. Features Create accounts from webpage Login to accounts though unity/game Coming soon Loading inventory Loading player profile I will continue to add more if anyone has a use for it. Download links Version 0.1 (No single EXE server) Version 0.1B (Single EXE server falsely detected by antivirus as trojan horse)
  5. Hello everyone, im selling a Register/login database system. The system also includes, a script that can set your xp in the database! It also show how to print the xp out, so a player can see how muchs xp he have, from the database. This costs $7.50 USD If you want, add me on Skype: Magnus1254 or pm me This includes; Full support Free Webhosting Free Database 4 PHP files (login,register,setxp,showxp) 2 C# scripts (login/register and showxp) 1 reedme.txt to explain some stuff Heres some screenshots: Login Register Hides pass Set xp, and show SEE YA
  6. Hello! I have coded a Login system in java. It is only Single Player, but it works well. Enjoy! var mySkin : GUISkin; var GeneralWidth = 73; // Width for most bottons should be the same. Use GeneralWidth. Use there custom Width if needed. var LoaderHeight = 10; var LoaderWidth = 10; var LogHeight = 101; var LogWidth = 163; var PlayerUsername = ""; var PlayerPassword = ""; var UserHeight = 35; var UserWidth = 1; var PassHeight = 65; var PassWidth = 1; var GameOwner = ""; var GameOwnerPassword = ""; var UsernameCORRECT = false; var PasswordCORRECT = false; var onSave : boolean = false; var Incorrect : boolean = false; var LogIn : boolean = false; var wrong : boolean = false; var waitTime : int = 3; function Start () { GameOwner = (PlayerPrefs.GetString("GameOwner")); GameOwnerPassword = (PlayerPrefs.GetString("GameOwnerPassword")); } function Update (){ // Updates each frames and checks if the TextArea is equal to the username we want if (PlayerUsername == GameOwner){ UsernameCORRECT = true; } else { UsernameCORRECT = false; } // Updates each frames and checks if the TextArea is equal to the password we want if (PlayerPassword == GameOwnerPassword){ PasswordCORRECT = true; } else { PasswordCORRECT = false; } if(onSave) { PlayerPrefs.SetString("GameOwner", GameOwner); PlayerPrefs.SetString("GameOwnerPassword", GameOwnerPassword); } } function OnGUI () { // Assign a skin to you menu GUI.skin = mySkin; // Background box GUI.Box (Rect (LoaderHeight,LoaderWidth,220,120), "Log-in"); //Text area for the username PlayerUsername = GUI.TextArea (Rect(GeneralWidth,UserHeight,100,20),PlayerUsername); //Text area for the password PlayerPassword = GUI.TextArea (Rect(GeneralWidth,PassHeight,100,20),PlayerPassword); // Loads level (0). This map can be set in the build settings if (GUI.Button (Rect (LogWidth,LogHeight,60,25), "Log-In")) { LogIn = true; if(UsernameCORRECT == true && PasswordCORRECT == true) { Application.LoadLevel(2); } else { Incorrect = true; wrong = true; } } if(GUI.Button (Rect (100,101,60,25), "Register")) { GameOwner = PlayerUsername; GameOwnerPassword = PlayerPassword; onSave = true; } if(Incorrect == true && LogIn == true) { if(wrong == true) { IncorrectGUI(); } } } function IncorrectGUI() { GUI.color = Color.red; GUI.Label (Rect (LogWidth,LogHeight + 30,200, 200), "Incorrect username or password"); yield WaitForSeconds(waitTime); wrong = false; } single_player_login.zip
  7. Hi everyone, I have found something that would help one or the other. A Login System and it works with your own Database cuser.php for creating the user <?php $db = mysql_connect('localhost', 'db_user', 'db_password') or die('Could not connect: ' . mysql_error()); mysql_select_db('db_database') or die('Could not select database'); // Strings must be escaped to prevent SQL injection attack. $email = $_REQUEST['email']; $password = $_REQUEST['password']; $username = $_REQUEST['username']; $born = $_REQUEST['born']; $nick = $_REQUEST['nick']; $admin = $_REQUEST['admin']; $password2 = md5($password); // Send variables for the MySQL database class. $query = "insert into users (username, password, email, born, nick, admin) values ('$username', '$password', '$email', '$born', '$nick', '$admin');"; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); echo "registered"; ?> ______________________________________________________________________________________________________________________________________________________________________________________________________ getuser.php for checking user <?php // Send variables for the MySQL database class. $database = mysql_connect('localhost', 'db_user', 'db_password') or die('Could not connect: ' . mysql_error()); mysql_select_db('db_database') or die('Could not select database'); $username = $_REQUEST['username']; $password = $_REQUEST['password']; $qry="SELECT * FROM users WHERE username='".mysql_real_escape_string($username)."' AND password='".md5($password)."'"; $result=mysql_query($qry); if (mysql_num_rows($result)>0) { echo "right"; } else { echo "wrong"; } ?> ______________________________________________________________________________________________________________________________________________________________________________________________________ now the admin script (still working on this like how you need to login to acess these functions (not in this version but will be soon) ) admin.php <?php $database = mysql_connect('localhost', 'db_user', 'db_password') or die('Could not connect: ' . mysql_error()); mysql_select_db('db_database') or die('Could not select database'); $command = $_REQUEST['command']; $feed = $_REQUEST['feed']; $deleteuser = $_REQUEST['user']; if ($command == "feed") { $sql = "DELETE FROM misc WHERE 1"; $result = mysql_query($sql); $sql = "Insert Into misc (feed) values ('$feed')"; $result = mysql_query($sql); echo "yes"; } if ($command == "delete") { $sql = "DELETE FROM users WHERE username='$deleteuser'"; $result = mysql_query($sql); echo "yes"; } if ($command == "requestFeed") { $sql = "Select feed FROM misc"; $result = mysql_query($sql); $arrary = mysql_fetch_array($result); echo $arrary['feed']; } ?> ______________________________________________________________________________________________________________________________________________________________________________________________________ unity code javascript private var secretKey="mandownhash"; // Edit this value and make sure it's the same as the one stored on the server var skin:GUISkin; var createuserUrl="http://mandown.unity3dgallery.com/cuser.php"; var getuserUrl="http://mandown.unity3dgallery.com/getuser.php"; var feedURL="http://mandown.unity3dgallery.com/feed.txt"; var usernameText=""; var passwordText=""; var userOK=false; var console=""; var email = ""; var born = ""; var nick = ""; var feed = ""; var i = 0; var user = ""; var adminCP = false; private var register = false; function createUser(username, password, email, born, nick) { //This connects to a server side php script that will add the name and score to a MySQL DB. // Supply it with a string representing the players name and the players score. var hash=md5.Md5Sum(username + password + email + born + nick + secretKey); var createuser_url = createuserUrl + "username=" + WWW.EscapeURL(username) + "&password=" + WWW.EscapeURL(password) + WWW.EscapeURL(email) + WWW.EscapeURL(born) + WWW.EscapeURL(nick); // Post the URL to the site and create a download object to get the result. var cu_post = WWW(createuser_url); yield cu_post; // Wait until the download is done if(cu_post.error) { print("There was an error creating your user: " + cu_post.error); } } var version : int = 1; function CheckVersion() { var update_url = "http://mandown.unity3dgallery.com/version.txt"; update_post = WWW(update_url); yield update_post; // Wait until the download is done if(update_post.error) { print("There was an error loading the update URL: " + update_post.error); } else { var latestVersion : int; latestVersion = int.Parse(update_post.data); if (latestVersion >= version + 1) { System.Diagnostics.Process.Start("open","http://mandown.unity3dgallery.com/game/lvgame.7z"); } } } var feedBool = false; var feed2 = ""; var feedS = true; function Update() { if (adminCP == false) { adminFeed = feed2; } if (userOK == true) { if (feedS == true) { feedUpdate(); feedS = false; } if (i<100000) { i++; } else { feedUpdate(); adminFeed = feed2; } if (feedBool == true) { feed = "Latest News: " + feed2 + " | " + i + " |"; } } } function feedUpdate() { var feed_get = "http://mandown.unity3dgallery.com/admin.php?command=requestFeed"; feed_post = WWW(feed_get); yield feed_post; if(feed_post.error) { print("There was an error loading the feed: " + feed_post.error); feed = "Could not connect to feed"; feedBool = false; i = 0; } else { i = 0; feedBool = true; feed2 = feed_post.data; } } function BeginPage(width,height) { GUILayout.BeginArea(Rect((width),(height),width,height)); } function EndPage() { GUILayout.EndArea(); } var userToDelete = ""; var feedChange = ""; var adminDetect = false; function detectIsAdmin() { var createuser_url = "http://mandown.unity3dgallery.com/verify.php" + "?username=" + usernameText + "&password=" + md5.Md5Sum(passwordText); var cu_get = WWW(createuser_url); yield cu_get; if(cu_get.error) { print("There was an error checking admin: " + cu_get.error); } else { if(cu_get.data == "yes") { adminDetect = true; } else { adminDetect = false; } } } var adminTest = false; var toolbarInt = 0; var toolbarStrings : String[] = ["Main Menu","Offline Maps", "Servers", "Forum", "Stats", "Map Creator"]; var adminFeed = ""; function OnGUI() { GUI.matrix = Matrix4x4.TRS (Vector3.zero, Quaternion.identity, Vector3 (Screen.width / 600.0, Screen.height / 400.0, 1)); if (skin != null) { GUI.skin = skin; } if (register == false && userOK == false) { GUI.Box(Rect (125,50,400,300), "Login"); BeginPage(150,100); GUI.Label(Rect (30,20,60,20), "Username:"); GUI.Label(Rect (30,47,60,20), "Password:"); EndPage(); usernameText = GUI.TextField(Rect (250,117,150,20), usernameText, 25); passwordField.x = 250; passwordField.y = 145; passwordField.w = 150; passwordField.h = 20; passwordField.l = 25; passwordText = passwordField.PasswordField(passwordText, "*"); if (GUI.Button(Rect (300,220,100,20), "Login") || Input.GetKeyDown("return")) checkUser(); if (GUI.Button(Rect (300,260,100,20), "register")) { register = true; } } if (register == false && userOK == true) { if (adminTest == false) { detectIsAdmin(); adminTest = true; } GUI.Box(Rect (10,10,575,360), "Main Menu"); if (adminCP == false) { GUI.Label(Rect (20,20,500,20), feed); toolbarInt = GUI.Toolbar (Rect (25, 40, 550, 50), toolbarInt, toolbarStrings); if (toolbarInt == 0) { } if (toolbarInt == 1) { } if (toolbarInt == 2) { } if (toolbarInt == 3) { } if (toolbarInt == 4) { } if (toolbarInt == 5) { } if (toolbarInt == 6) { } if (adminDetect == true && GUI.Button(Rect (425,325,150,20), "Admin Control Panel")) { adminFeedBool = false; adminCP = true; } } else if (adminCP == true) { adminFeed = GUI.TextField(Rect (25,25,200,25), adminFeed, 50); user = GUI.TextField(Rect (25,50,200,25), user, 50); GUI.Label(Rect (230,25,200,25), " Feed"); GUI.Label(Rect (230,50,200,25), " User to delete"); if (GUI.Button(Rect (250,325,150,20), "Apply Changes")) { Apply(); } if (GUI.Button(Rect (425,325,150,20), "Back")) { adminCP = false; } } } if (register == true && userOK == false) { GUI.Box(Rect (100,50,420,300), "Register"); GUI.Label(Rect (150,80,60,20),"Username:"); GUI.Label(Rect (150,110,60,20),"Password:"); GUI.Label(Rect (150,140,60,20),"Email:"); GUI.Label(Rect (110,170,120,20),"Born (YYYY-MM-DD):"); GUI.Label(Rect (150,200,60,20),"Nickname:"); usernameText = GUI.TextField(Rect (210,80,180,20),usernameText, 25); passwordField.x = 210; passwordField.y = 110; passwordField.w = 180; passwordField.h = 20; passwordField.l = 25; passwordText = passwordField.PasswordField(passwordText, "*"); email = GUI.TextField(Rect (210,140,180,20),email, 25); born = GUI.TextField(Rect (230,170,180,20),born, 25); nick = GUI.TextField(Rect (210,200,180,20),nick, 25); if (GUI.Button(Rect (300,260,100,100), "Register")) registerUsername(); } GUI.Label(Rect (150,300,150,50), console); } function Apply() { var feed_url = "http://mandown.unity3dgallery.com/admin.php?command=feed&feed=" + adminFeed; var cu_get = WWW(feed_url); yield cu_get; if(cu_get.error) { print("There was an error applying changes: " + cu_get.error); } else { if(cu_get.data == "yes") { feedUpdate(); } else { print("error could not change!"); } } var delete_url = "http://mandown.unity3dgallery.com/admin.php?command=delete&user=" + user; var cud_get = WWW(delete_url); yield cud_get; if(cud_get.error) { print("There was an error applying changes: " + cud_get.error); } else { if(cud_get.data == "yes") { feedUpdate(); } else { print("error could not change!"); } } adminCP = false; } function registerUsername() { console = "registering you"; var createuser_url = createuserUrl + "?username=" + usernameText + "&password=" + md5.Md5Sum(passwordText) + "&email=" + email + "&born=" + born + "&nick=" + nick; var cu_get = WWW(createuser_url); yield cu_get; if(cu_get.error) { console = "There was an error registering: " + cu_get.error; } else { if(cu_get.data == "registered") { console = "registered"; yield WaitForSeconds(3.0); register = false; } else { console = "Error, please try again"; } } } function checkUser() { console = "Checking Username and Password"; var getuser_url = getuserUrl + "?username=" + usernameText + "&password=" + md5.Md5Sum(passwordText); var cu_get = WWW(getuser_url); yield cu_get; if(cu_get.error) { console = "There was an error checking your username and password: " + cu_get.error; } else { if(cu_get.data == "right") { console = "Welcome back " + usernameText + " hope you enjoy the game!"; yield WaitForSeconds(3.0); userOK=true; } else { userOK = false; console = cu_get.data; } } CheckVersion(); } ______________________________________________________________________________________________________________________________________________________________________________________________________ all this can log a user in and register a user. it takes the year born nickname username password email and if they're admin. this saves everything in a mysql database with a md5 hash. Source form: http://forum.unity3d.com/threads/22703-Menu-system-%28contains-Login-system-plus-extras%29
×
×
  • Create New...