Jump to content

www.mihalism.com

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by www.mihalism.com

  1. http://www.uploadscriptdemo.com/more_info.php
  2. We will make it so delete URLs will only work for the IP address that uploaded it and and I think it would be a good idea to include it all in file like Invision Power Board 1.3 did. Sorry for that its a demo site and you never know what people will upload thats why the uploads are deleted everyday. We will build it into the next version. Honestly I never thought of doing that.
  3. Me and five other people have been publishing and improving this free image hosting script and we just wanted to know your opinion on its current progress.http://www.uploadscriptdemo.com/more_info.php?
  4. Here is a fixed version <?php include("../includes/DBConnecter.php"); ?>if($_POST['title'] == '') { echo "You did not enter a title<br>";}else{ $FirstName = $_POST['f_name'];} if($_POST['category'] = '') { echo "You did not enter a category<br>";}else{ $Category = $_POST['category'];}if($_POST['article'] = '') { echo "You did not enter an article<br>";}else{ $Article = $_POST['article']; }$sql = "CREATE TABLE ".$Category." ( `Title` TEXT NOT NULL, `Article` TEXT NOT NULL, `Time` TIMESTAMP NOT NULL )"; mysql_query($sql,$con); ?>
  5. preg_replace is a regular expression search and replacestr_replace will replace all occurrences of the search string with the replacement string
  6. I would recommend using preg_replace it's what I use and it works great <?php $_message = preg_replace('/\n/', '<br>', $_POST['a_answer']); ?>
  7. I have had that problem but I upgraded to firefox 2 and it worked for me
  8. CMS Can stand for the following:CMS-2 programming language, used by the United States NavyCode management system, a script or program for archiving and maintaining source codeContent management system, a system for maintaining web sitesCourse management system, a software system designed to facilitate the management of course materialsClinical Management System, software managing electronic medical records and practice management informationFor front-end and back-end read this:http://en.wikipedia.org/wiki/Frontend
  9. The link back to youtube is made into the flash player you can not remove it
  10. Yes the problem is permission denied so try using the chmod() functionhttp://php.net/chmodExample: <?phpchmod('upload/', 0777);?>
  11. I've been search for about a hour to know how to do this. I want the footer of the website to align to the bottom of the page. First I used position absolute to do it but I found it did not scroll. Does anybody have a idea on how to do it to allow it to scroll?
  12. This should fix your email problems, and I have tested it to make sure it works.For the errors I thought it would be faster for you just to echo them so thats what I did. <?php $url = 'http://www.yourdomain.com/accountok.php'; $user = $_POST['username']; $pass = $_POST['password']; $pass2 = $_POST['password2']; $zip = $_POST['zip']; $email = $_POST['email']; $min_lenngth = 6; function CheckMail($email){ if(eregi("@", $email)){ return true; }else { return false; } } function CheckZip($zip) { if (eregi("[0-9]", $zip)){ return true; }else{ return false; } } if (($pass)!=($pass2)){ echo "Passwords to not match!"; exit; }elseif((empty($email)) || (!CheckMail($email))){ echo "E-mail is not valid"; exit; }elseif((empty($zip)) || (!CheckZip($zip)) || (strlen($zip)!=5)){ echo "ZIP Code is not valid"; exit; }elseif(strlen($user) < $min_lenngth || strlen($pass) < $min_lenngth){ echo "Password and or username is too short"; exit; }else{ echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; }?>
  13. Try using this version <?php $url = 'http://www.yourdomain.com/accountok.php'; $user = $_POST['username']; $pass = $_POST['password']; $pass2 = $_POST['password2']; $zip = $_POST['zip']; $email = $_POST['email']; $min_lenngth = 6; function CheckMail($email){ if(eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\.[a-z]{2,4}$",$email)){ return true; }else { return false; } } function CheckZip($zip) { if (eregi("[0-9]", $zip)){ return true; }else{ return false; } } if (($pass)!=($pass2)){ header("Location: error-pwverify.php"); exit; }elseif((empty($email)) || (!CheckMail($email))){ header("Location: error-email.php"); exit; }elseif((empty($zip)) || (!CheckZip($zip)) || (strlen($zip)!=5)){ header("Location: error-zip.php"); exit; }elseif(strlen($user) < $min_lenngth || strlen($pass) < $min_lenngth){ header("Location: error-pwshort.php"); exit; }else{ echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; }?>
  14. Can you please provide a copy of the script so I can clean it up for you.
  15. http://www.php.net/manual/en/security.php
  16. Make it so the PHP will display the image as a image mime type. <?php$sql = mysql_query("SELECT * FROM `images`");$row = mysql_fetch_array($sql);header('Content-type: image/gif'); //have script display as .GIF imageecho $arr['image'];?>
  17. Try doing it but don't include the domain in the URL just give the script the path
  18. Thanks anyways but I have made another method and now it works
  19. I made a function to check if a name contains banned characters. When the function does check for a banned character it always return false. function banned_letters($name){ global $_CONFIG; for($i=0; $i < strlen($name); $i++){ $pos = strrpos($_CONFIG['allowed_letters'],$name{$i}); if ($pos === false){ return true; }else{ return false; } } }
  20. It is possible to have HTML in rows and i know this for a fact because invision power board 1.3 holds all its templates in a mysql table
  21. www.mihalism.com

    Just Checking

    First of all you only need one bracket and you did not end your variables with ;Here i made it more clean and it should work <?php $mysql_servername=""; $mysql_username=""; $mysql_password=""; $mysql_database=""; $mysql_tablename=""; $mysql_fieldname=""; $mysql_password_field=""; $mysql_xml_reference=""; $username=$_POST["username"]; $password=$_POST["password"]; $connect = mysql_connect( $mysql_servername, $mysql_username , $mysql_password ); mysql_select_db( $mysql_database , $connect ); $login = "SELECT * from ".$mysql_tablename." WHERE ".$mysql_fieldname."='".$username'.""; $fetch_array = mysql_fetch_array($login)); if ($fetch_array['$mysql_password_field']="$password"){ $xml_reference=$fetch_array['$mysql_xml_reference']; } mysql_close($connect); ?>
  22. For this to work you have to have browscap.ini set in your php.ini <?php$browser = get_browser(null, true);if($browser['browser'] == "IE" && $browser['version'] == "6.0"){echo "You are in Internet Explorer 6.0";}else{echo "You are not in Internet Explorer 6.0";}?>
  23. You could you use PHP and MySQL to have the page updated Like when the change is submitted the PHP would run a query to update your database and once thats updated the page will be updated
  24. for the word User File in the form and post key try using underscores instead of spaces like this File Name: <input type="text" name="User_File" /><br />File: <a href="http://link.I.will.keep.to.myself/images/<?php echo $_POST["User_File"]; ?>.jpg</a>
×
×
  • Create New...