Install -

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?php include("config.php"); $info_query = mysql_query("SELECT * FROM ".$prefix."ProFolio_info ORDER BY id DESC LIMIT 0,1"); if(mysql_num_rows($info_query) > 0){ $red = "Location: index.php"; header($red); die("Redirecting to ProFolio Index Page. .."); } $reply = ''; if(isset($_POST['submit'])){ $username = trim(strtolower($_POST['username'])); $password = trim(strtolower($_POST['password'])); $confirm = trim(strtolower($_POST['confirm'])); if($password == $confirm){ //Create Files if(!file_exists('Files')){ mkdir('Files', 0777); } if(!file_exists('Files_Icons')){ mkdir('Files_Icons', 0777); } if(!file_exists('Files_Previews')){ mkdir('Files_Previews', 0777); } chmod("Files", 0777); chmod("Files_Icons", 0777); chmod("Files_Previews", 0777); //Create Tables mysql_query("CREATE TABLE `".$prefix."ProFolio_work` ( `id` int(8) NOT NULL auto_increment, `date` varchar(14) NOT NULL default '', `title` varchar(255) NOT NULL default '', `type` varchar(100) NOT NULL default '', `file` varchar(255) NOT NULL default '', `preview` varchar(255) NOT NULL default '', `icon` varchar(255) NOT NULL default '', PRIMARY KEY (`id`), FULLTEXT KEY `title` (`title`,`type`) ) TYPE=MyISAM AUTO_INCREMENT=1 ") or die(mysql_error()); mysql_query("CREATE TABLE `".$prefix."ProFolio_info` ( `id` int(5) NOT NULL auto_increment, `username` varchar(30) NOT NULL default '', `password` varchar(30) NOT NULL default '', `page_about` blob NOT NULL, `page_contact` blob NOT NULL, `firstname` varchar(50) NOT NULL default '', `lastname` varchar(50) NOT NULL default '',
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/01/2011.

Page1 / 3

Install -

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online