[B]What are you working on.[/B]
[B]Post links, pics, and code snippets.[/B]
I wanna see what you all are capable of.
And obviously I have to specify, post your php or web related work.
[U][B]I'll start[/B][/U]
[url]http://refractionservers.com/[/url]
A site integrated with a Garry's Mod roleplay with flash and php based casino.
a WIP.
Here is my login.
[php]
<?php
if(!empty($_SESSION['loggedin']) && !empty($_SESSION['username']))
{
?>
<h1>Hey!</h1>
<p>You are already logged in as <b><?php echo $_SESSION['username']; ?></b>!</p>
<a href="<?php echo $this->URL('Logout'); ?>">Logout.</a>
<?php
}
elseif(!empty($_POST['username']) && !empty($_POST['password']))
{
$ip = mysql_real_escape_string($_SERVER['REMOTE_ADDR']);
$username = mysql_real_escape_string($_POST['username']);
$password = md5(mysql_real_escape_string($_POST['password']));
$checklogin = mysql_query("SELECT * FROM users WHERE username = '".$username."' AND password = '".$password."'");
if(mysql_num_rows($checklogin) == 1)
{
$row = mysql_fetch_array($checklogin);
//$email = $row['EmailAddress'];
$_SESSION['username'] = $username;
// $_SESSION['EmailAddress'] = $email;
$_SESSION['loggedin'] = 1;
$_SESSION['steamid'] = $row["steamid"];
$_SESSION['rank'] = $row["rank"];
$_SESSION['last_ip'] = $row["ip"];
$_SESSION['ip'] = $ip;
$_SESSION['id'] = $row["ID"];
$_SESSION['refraction'] = 1;
mysql_query("UPDATE users SET ip='".$ip."' WHERE username='".$username."'");
echo "<h1>Success</h1>";
echo "<p>We are now redirecting you to the control panel.</p>";
echo "<meta http-equiv='refresh' content='=2;index.php?p=Cp' />";
echo '<a href="index.php?p=Cp">Click here if you are not redirected!</a><br />';
}
else
{
echo "<h1>Error</h1>";
echo "<p>Sorry, your account could not be found. Please <a href=\"index.php?p=Login\">click here to try again</a>.</p>";
}
}
else
{
?>
<p>Please either login below, or <a href="<?php echo $this->URL('Register'); ?>">click here to register</a>.</p>
<!-- Start Form -->
<div class="box">
<div>
<div id='myform_errorloc' class='error_strings'>
</div>
<script language="JavaScript" src="javascripts/validator.js" type="text/javascript"></script>
<form method="post" action="<?php echo $this->URL('Login'); ?>" name="myform" id="loginform">
<label for="medium">Username:</label><br/>
<input type="text" class="textField medium" id="medium" name="username" /><br/><br/>
<label for="medium">Password:</label><br/>
<input type="password" class="textField medium" id="medium" name="password" /><br/><br/>
</div>
<div class="button">
<div class="btn-inner">
<em><input type="submit" value="Submit" name="submit" /></em>
</div>
</div>
</form>
<script language="JavaScript" src="javascripts/login_valid.js" type="text/javascript"></script>
<div class="clear"></div>
</div>
<br/><br/>
<!-- End Form-->
<?php
}
?>
[/php]
Needs some clean up.
Also working on cleaning up the source throughout the site.
I've made a session class and I'm working on a new login.
There's a thread literally under this with the same name o.0
[url]http://www.facepunch.com/showthread.php?t=774427[/url]
[QUOTE=Tezza1234;16955245]There's a thread literally under this with the same name o.0
[url]http://www.facepunch.com/showthread.php?t=774427[/url][/QUOTE]
That is a c++ version, it has the c++ tag and everyone is posting their c++ shit, I intended to have only php and other web shit here, not programs.
uh. where in the OP does it say no programs?
and in the programming section?
this topic blows brah.
[QUOTE=efeX;16955291]uh. where in the OP does it say no programs?[/QUOTE]
It's implied at this point, I just wanna see some of the shit facepunchers make php wise, but no please flame flame flame cry and complain cause I didn't specify down to every detail.
thanks for [b]implying[/b] the other thread is C++ only.
[QUOTE=efeX;16955335]thanks for [b]implying[/b] the other thread is C++ only.[/QUOTE]
The icon is c++ and every post is program and c++ related.
Done yet?
[editline]01:16AM[/editline]
I see no php or website posts there so I figured making a thread would be an excellent way to get the people with php to show some shit.
I posted a C# Project in the other thread, and some posted thigns that wern't even programmed as such, It's not language specific.
Fair dos:
I programmed "Audiosurf-tools" that was a signature-image top-5 for a song you entered the name of, it was here: [url]http://audiosurf-tools.tezzanator.net/[/url] - But it's long since gone as they changed the scoring formats and such and I stopped playing.
I coded a CMS for a site related to an education subsidy, But that's now offline >.<
Can't find any of the stuff I wrote, Great :o
The other thread involves anything programming so you know.
I usually don't like to agree with efeX, but he is correct. The other thread is for everything, this thread is pointless.
Wow you are a smart one now, aren't you?
Just because it has a C++ icon doesn't mean that it's all about C++.
There are fairly alot of other languages used in the thread.
People have been posting their web apps in the other thread, just more people here seem to be developing in C++.
It seems the only time the programming forum can come together as one is when we're berating someone else... Heart-warming and depressing at the same time... :Dawkins102:
turns me on.
fantastic thread
you realise you [B]have[/B] to pick a post icon dont you?
Your being stupid, I post python in there all the time.
PHP in the other thread:
[url]http://www.facepunch.com/showpost.php?p=16822666&postcount=1320[/url]
Anyway, I've not really got anything to show but I've done a number of things with PHP. They have mainly not been uploaded apart from 1 thing which is a private site for a clan.
Well I would have liked to see just a bunch of php shit but apparently here on facepunch you just can't be right.
Well then why don't you actually read what everyone said and just use the What are you working on? thread that we already had.
[QUOTE=nivek;16962528]Well I would have liked to see just a bunch of php shit but apparently here on facepunch you just can't be right.[/QUOTE]
:doh:
Just use the other damn thread
Working on learning C#. I have a notebook and everything, it's easier for me to remember things if I write them down, and it's working very well.
[QUOTE=nivek;16962528]Well I would have liked to see just a bunch of php shit but apparently here on facepunch you just can't be right.[/QUOTE]
Theres a bunch of PHP stuff in the other thread.
Compwhizii released a PHP Class that creates charts and graphs with Google Charts API in the other thread.
Sorry, you need to Log In to post a reply to this thread.