This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Starfield" | |
{ | |
Properties | |
{ | |
_iMouse ("iMouse", Vector) = (0,0,0,0) | |
_Iterations ("Iterations", int) = 17 | |
_Formuparam ("Formuparam", float) = .53 | |
_Steps ("Steps", int) = 20 | |
_StepSize ("StepSize", float) = .1 | |
_Zoom ("Zoom", float) = .8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IEnumerator PostLoginAccount (string username, string password) | |
{ | |
string postUrl = GET_USER_URL + "username=" + WWW.EscapeURL (username) + "&password=" + | |
WWW.EscapeURL(Crypto.Encrypt(password)); | |
WWW hsPost = new WWW (postUrl); | |
yield return hsPost; | |
if (hsPost.error != null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dsn = 'mysql:host=localhost;dbname=dbname'; | |
$username = 'username'; | |
$password = 'password'; | |
$userlogin = $_GET['username']; | |
$passwordAttempt = $_GET['password']; | |
try | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dsn = 'mysql:host=localhost;dbname=dbname'; | |
$username = 'username'; | |
$password = 'password'; | |
$hashOptions = [ | |
'cost' => 10, | |
]; | |
$email = $_GET['email']; | |
$userlogin = $_GET['username']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const string GET_USER_URL = "http://localhost/GetUser.php?"; | |
public void LogInAccount (string username, string password) | |
{ | |
StartCoroutine (PostLoginAccount (username, password)); | |
} | |
IEnumerator PostLoginAccount (string username, string password) | |
{ | |
string postUrl = GET_USER_URL + "username=" + WWW.EscapeURL (username); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = mysql_connect('localhost', 'username', 'password') or die ('Could not connect: ' . mysql_error()); | |
mysql_select_db('databasename') or die ('Could not select database'); | |
$username = mysql_real_escape_string($_GET['username'], $db); | |
$query = "SELECT * FROM users WHERE username='$username';"; | |
$result = mysql_query($query) or die ('Query failed: ' . mysql_error()); | |
$row = mysql_fetch_assoc($result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Data; | |
using System.Data.SqlClient; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class DatabaseConnection : MonoBehaviour | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = mysql_connect('localhost', 'username', 'password') or die ('Could not connect: ' . mysql_error()); | |
mysql_select_db('databasename') or die ('Could not select database'); | |
$email = mysql_real_escape_string($_GET['email'], $db); | |
$username = mysql_real_escape_string($_GET['username'], $db); | |
$password = mysql_real_escape_string($_GET['password'], $db); | |
$hash = $_GET['hash']; | |
$secretKey = 'secretkey'; |
NewerOlder