Tuesday, January 16, 2007

New Menu Idea by Boxxertrumps at 1/16/2007 01:08:00 PM, 0 Comments  

Works... All I Have To Figure out How to Do is add a border in the div surrounding the menu so that the free ends of the curved line loop around the back and meet on the side...
.wrapper {
  width:150px;
  border-style: solid;
  border-width: 2px 0px 2px 2px;
  border-color: #000000;
  -moz-border-radius: 10px 0px 0px 10px;
  border-radius: 10px 0px 0px 10px;
}
.item {
  height: 15px;
  border-style: solid;
  border-width: 2px 2px 2px 0px;
  border-color: #000000;
  margin: -2px -15px -2px 15px;
  -moz-border-radius: 0px 10px 10px 0px;
  border-radius: 0px 10px 10px 0px;
  -moz-opacity: .5;
  opacity: .5;
}
.item:hover {
  -moz-opacity: 1;
  opacity: 1;
}
.spacer {
  border-style: solid;
  border-width: 2px 0px 2px 2px;
  border-color: #000000;
  height: 10px;
  width: 10px;
  margin: 0px 0px 0px 5px;
  -moz-border-radius: 10px 0px 0px 10px;
  border-radius: 10px 0px 0px 10px;
  -moz-opacity: .5;
  opacity: .5;
}

<div class="wrapper">

<div class="item"><a href="Link To Wherever">Text</a></div>
<div class="spacer"></div>
<div class="item"><a href="Link To Wherever">text</a></div>

</div>

Labels:

Friday, January 12, 2007

ITS OVER 9000! by Boxxertrumps at 1/12/2007 05:23:00 PM, 0 Comments  

Heres My PHP script. If you have PHP and MySQL installed, feel Free to Beta test it, point out loopholes, bugs, etc. to me, i can take the criticism. It employs The mysql DB to store user names and passwords, as well as emails. Ive used PHP to capture the ip and save it to prevent session jacking. i think its secure... Do You Think it is? /* #################################################################### connect.php These Block denote A New Page, Unless Stated Otherwise. Replace All Values Surrounded by # signs with The Matching Server Info. #################################################################### */
<?php
$connection = mysql_connect(#HOST# ,
#MySQL Username# ,
#MySQL PASSWORD#) or die("Cannot Connect to Database");
mysql_select_db(#DATABASE OF LOGIN TABLE# , $connection);
$wrong_info = "the URL to your Wrong info page. Don't remove the Quotes";
$welcome_page = "The Full URL to The page you Get to When you log on.";
$logout_to_page = "The Full URL to your home/index page, or a page with the message: you have been logged out";

function PROTECT(){
/*
 * Call This Funtion To Check is A User is Logged in.
 * If Yes, Returns Variable $secure as 1.
 * If no, Returns 0
 */
  session_start();
  if (isset($_SESSION[user]) && $_SESSION['ip'] == $_SERVER['REMOTE_ADDR'];){
/* Checked: if Info exists in session, And if IPs match. */
     $userInfo = "mysql_query("SELECT * FROM 'login' where 'user'='user-$_SESSION[user]-'")";
/* Does Session username exist in DB? */
     if (!mysql_num_rows($userInfo)) {header("Location: $wrong_info");$secure = 0;}  
     else {
/* Checks if DB password matches Session Password. */
          $q = mysql_fetch_array($userInfo);
          if ($_SESSION['pass'] != $q[password]) {header("Location: $wrong_info");$secure = 0;}
          else {$secure = 1;};
         };
  } else {header("Location: logout.php"; $secure = 0;);
};

function LOGON(){
echo 'Logging on.\n\r';
$user = $_POST[post_user];
$password = md5($_POST[post_pass]);

$userInfo = mysql_query("SELECT * FROM login where user=user-". $user ."-");
if (!mysql_num_rows($userInfo)) {echo 'No such user!';}
else {
  $q = mysql_fetch_array($userInfo);
  if ($password != $q[password]) {echo 'wrong password';}
  else {
    session_start();
    $_SESSION['user'] = $user ;
    $_SESSION['pass'] = $password];
    $_SESSION['time'] = time();
    $_SESSION['ip'] = $_SERVER['REMOTE_ADDR']; 
    header("Location: $welcome_page");
  };
 };
};
function LOGOUT(){
  session_start();
  $_SESSION['user'] = "";
  $_SESSION['pass'] = "";
  echo "You have been Logged In For ".
    date(G \\H\o\u\r\s i \\M\i\n\u\t\e\s\ \A\n\d s ,
    time() - $_SESSION['time'])
  ." Seconds, From the IP ". $_SESSION['ip'] ."<br />/n/r
  <a href=\"$logout_to_page\">Continue.</a>"; 
  $_SESSION['time'] = "";
  $_SESSION['ip'] = "";
};
function REGISTER(){
 $new_UN = $_POST["post_user_new"];
 $new_PW = md5($_POST["post_pass_new"]);
 $new_PW2 = md5($_POST["post_pass_new2"]);
 $new_EM = $_POST["post_mail_new"];
 if($new_UN != "" && $new_PW != "" && $new_PW == $new_PW2)
  {
  $userInfo = mysql_query("SELECT * FROM 'login`' where 'user'='user-$new_UN-'");
  if (!mysql_num_rows($userInfo)){
  $query = "INSERT INTO login ( 'user' , 'password' , 'email' ) VALUES ( ". $new_UN .", ". $new_PW .", ". $new_EM.");";
    mysql_query( $query )
    echo "Account Created"; }
else {
  echo "Username: $new_UN Already Taken,
  Please Hit The Back Button And Choose A New One."}
  }
  else { echo"A Field Is Blank,
  Or The passwords Do Not Match.
  Please Hit The Back Button"; };
};
?>
/* ################################################################################ Run This Page ONCE AND ONLY ONCE. Name it Whatever you Want, With the Extention .php ################################################################################# */
<?php require_once "connect.php"
mysql_query("
CREATE TABLE 'login' (
  'user' varchar(64) NOT NULL,
  'password' varchar(64) NOT NULL,
  'email' text NOT NULL,
  'autoID' int(10) unsigned NOT NULL auto_increment,
  PRIMARY KEY  ('autoID'),
  UNIQUE KEY 'user' ('user')
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
"); ?>
/* ############################# ##########Register.php########## ############################# */
<?php require_once "connect.php"
REGISTER()
?>
/* ################################### ##########logontry.php################ ################################### */
<?php require_once "connect.php"
  LOGON()
?>
/* ################################### ##########logout.php################## ################################### */
<?php require_once "connect.php"
  LOGOUT()
?>
/* ################################################################################# ###########PLACE AT TOP OF PROTECTED PAGES, Make sure Extention is .php########### ################################################################################# */
<?php require_once "connect.php"
  PROTECT()
  if($secure == 1) {
?>
/* ################################################### ##########PLACE AT BOTTOM OF PROTECTED PAGES########## ################################################### */
<?php
  } else {
    echo "<a href=\"$logout_to_page\">You Cannot Acccept Header Redirects, Please Click here.</a>"
  };
?>
/* ############################### ##########Forms you Need########## ############################### */ /* #######Login################ */ <form action="logontry.php" method="post"> Username: <input type="text" name="post_user" /><br /> Password: <input type="pasword" name="post_pass" /><br /> <input type="submit" value="Logon!"></form> /* #######Register############# */ <form action="register.php" method="post"> Username: <input type="text" name="post_user_new" /><br /> Password: <input type="pasword" name="post_pass_new" /><br /> Retype PW: <input type="pasword" name="post_pass_new2" /><br /> Email: <input type="text" name="post_mail_new" /><br /> <input type="submit" value="Register!"></form> /* ######################################################
Additional Pages needed:    
     info is wrong
   this Can Be Anything you want, but it
   should have a link to your Index
   page, Your Login Form Page, And your
   Registration Form page.    

      Index Page
   This page is the one that is displayed 
   when only the directory is shown. 
   like http://example.com/ is actually 
   http://example.com/index.php or 
   index.html    

   Make Sure You Put A Link to The Logout.php On
   Each Page That is protected By The Script.
###################################################### */

Labels:

Tuesday, January 9, 2007

My Complaint to Microsoft by Boxxertrumps at 1/09/2007 08:16:00 PM, 0 Comments  

What the Hell Microsoft?? The only things you have done correctly as of late pertains to the 360. I am a web designer, and it really pisses me off how I bust my ass creating valid CSS2 and XHTML1.1 and your Shit piece of software you push on everyone cant display XHTML at all, and is very limiting for css. The only things i ask on you is to have XHTML display errors in the document as XML, and to have it displayed as W3 requires. W3 is the foremost authority on web applications, it would be best to display their markup languages correctly.

Labels:

ORLY??? by Boxxertrumps at 1/09/2007 06:51:00 PM, 0 Comments  

And you do Realize That While you are Only one person, There Are A thousand of us. And IP addresses mean nothing because They are 1)Dynamic and 2)PROXY!!! And I Never wrote Any Vampire scripts, And You Cant Do That From The IRC either. It Was A HTML page with four frames and an Auto Refresher Javascript.

Labels:

Hal Turner... by Boxxertrumps at 1/09/2007 11:55:00 AM, 0 Comments  

I Have been grounded Off the internet. Not For DDOSing turner, but for posting my contact information. My Dad Agrees That Turner Is A Dumass, And Commends Me For Standing Up For What I Believe In(Anti Racist I Am), But Doesn't Agree With My Methods Of Bringing Him Down. So Yeah, Id Do It Again, but i wouldn't post my info that time. So Far, NO law officials will help turner in his case against the Internet, Which, if i get sued, is who will be representing me...

Labels:

]]> -->