Jump to content

mitcho

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mitcho's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all, This same thing is happening again and i thought i would check google for a solution - and i came across this post which i actually posted some time ago. Wondering if now, almost a year later, anyone has any new information about this. its being used to encrypt and decrypt a bankcard number, and its the same person (actually its only that person) whose card is not being decrypted properly - just the last 8 characters. so could the last 8 characters be causing a conflict do you think??? if so where would that conflict lie within the blowfish scripts?
  2. Ok, this is still a problem , but i just found out something interesting. If i do not type the "WWW" in front of the URL i use to access my site admin online, it WORKS! But if i include the WWW then Norton blocks it?!?
  3. Ok when i echoed $page i got an blank string - i had forgotten to include the $page definition on one of the pages. So, NOW testing again both revraz and saint959 solutions work! Thanks guys for helping me pinpoint the error! also, to respond to thorpe - i define $page at the top of NOW every page, as follows: <?php $page = basename($_SERVER['SCRIPT_NAME']); ?> Thanks - topic solved!
  4. sorry saint959 that wasn't the problem - tried ur edit but still no luck.
  5. I tried both methods and neither worked: <div class="main_menu" <?php if ($page == 'website-portfolio.php') { ?>id="active"<?php }elseif ($page == 'graphic-portfolio.php'){ ?>id="active"<?php }elseif ($page == 'multimedia-portfolio.php'){ ?>id="active"<?php }elseif ($page == 'academic-portfolio.php'){ ?> id="active"<?php }; ?>> and <div class="main_menu" <?php if ($page == 'website-portfolio.php' || $page == 'graphic-portfolio.php' || $page == 'multimedia-portfolio.php' || $page == 'academic-portfolio.php') { ?>id="active"<?php }; ?>> Am i doing something wrong?
  6. Hi, I'm using php to detect which page of my website the user is on and then using that to determine which button in the menu to show as active. but in one case, there is 4 pages which fall under the same button, so i needed to write an IF OR statement so that if the page being viewed is any of the 4 specified page, then the button will remain active. code used is below: <div class="main_menu" <?php if ($page == 'website-portfolio.php' || 'graphic-portfolio.php' || 'multimedia-portfolio.php' || 'academic-portfolio.php') { ?>id="active"<?php }; ?>> However this doesnt work, this button is ALWAYS shown as active even when not on of the the 4 mentioned pages - its active all the time on every page of the site. Can someone please help me to fix this OR statement? Thanks
  7. I typed in the sites URL in the Macafee link you provided but there was no entry for it. So i guess im in the clear there?
  8. whoops - thanks very much for removing those. I just wasn't thinking!
  9. I have a CMS for my website which i built about 1 year ago. I have just got the latest Norton Antivirus and it now blocks access to the page giving a phishing warning - which i know is wrong because its my own cms and i would phish myself lol. Anyway I thought I would post my code up here - its pretty much the login page that is blocked i guess, i can't get passed it to try any other pages. maybe i have used some older style of coding that is frowned upon by norton. Tell me what you guys think??? Thanks admin_login.php Please type in your username and password to login into your website manager:<br/> <font color="#FF0000"> <?php if (isset($_GET['message'])) print("<br>".$_GET['message'].":<br/>"); ?> </font> </blockquote> <blockquote> <h3>ADMIN ONLY - LOGIN</h3> <form name="frmLogin" method="post" action="admin_confirm.php"> <table width="100" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" width="15%">Username: </td> <td> <input type="text" id="username" name="username" width="100"></td> </tr> <tr> <td align="right" width="15%">Password: </td> <td> <input type="password" id="userpassword" name="userpassword" width="100"></td> </tr> <tr> <td align="right"> </td> <td height="30" valign="bottom"><div align="right"> <input name="submit" type="submit" class="btn" id="save" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" value="Login" > </div></td> </tr> </table> </form> admin_confirm.php <?php include "db.php"; $result = mysql_query("select * from admin where password=MD5('".$_POST['userpassword']."') and username='".$_POST['username']."'"); if(!$result) die("Can't execute query!".mysql_error()); if(mysql_num_rows($result)>0) { $arow=mysql_fetch_array($result); setcookie("eckuser", $arow['username'],time()+7200,"/"); setcookie("eckpass", $arow['password'],time()+7200,"/"); mysql_close($dbh); $username = trim($_POST['username']); $password = trim($_POST['userpassword']); session_start(); session_register('username'); session_register('password'); $sess_id = session_id(); $c_hour = date("H"); //Current Hour $c_min = date("i"); //Current Minute $c_sec = date("s"); //Current Second $c_mon = date("m"); //Current Month $c_day = date("d"); //Current Day $c_year = date("Y"); //Current Year $t_timestamp = mktime($c_hour,$c_min,$c_sec,$c_mon,$c_day,$c_year); header("Location: index.php?new_login=1&stamp=$t_timestamp"); exit; /* print("Congratulations ".$_POST['username']."<br>You may now proceed to the <a href='index.php'>admin area</a>!");*/ } else { echo "User name '".$_POST['username']."' or password '".$_POST['userpassword']."' is incorrect, please try again"; } mysql_close($dbh); ?> db.php <?php $dbh=mysql_connect ("localhost", "*removed*", "*removed*") or die ('Cannot connect to the database because:'. mysql_error().'.<br>Please try again soon.'); $db="easternc_eckdb"; mysql_select_db($db , $dbh) or die("Can't select $db "); ?> Edit by Daniel0: Removed database credentials.
  10. Hey guys, sorry for the late response. Thanks for all your help on this one - problem solved!
  11. Ok - hidden inputs? - my n00b alarm is ringing!
  12. this topic should have been called "PHP form with preview" - if a moderator could change this would be much appreciated. Thanks
  13. Hi all. I've got a question about a PHP form i am building. I have contact forms before but nothing like this. I have a form with 3 text fields: name, email, phone. And 1 text box: poem. Basically people type in the details and type a poem into the text box. There would be two buttons at the bottom of the form: Submit & Preview Print. I am ok with sending the email but the preview print is what i am having trouble with. I have a HTML template that i want to populate with the text entered into the poem text box so that people can print their poem as well. Any help would be much appreciated guys. Thank you
  14. Hi All. I have a site that uses blowfish encryption to firstly save some user details to a mySQL database submitted in a form, which are then decrypted to be viewed in the backend of the site. This has worked fine for 6 months without problem, then all of a sudden, i noticed some users data was not being decrypted properly in the backend. when i view the 'decrypted' details, half of it is decrypted then the second half is still strange encrypted characters (e.g. ”¥£åyök). The details which are being decrypted/encrypted is a credit card number. as i said, works fine then all of a sudden a couple of times ive noticed the above problem. it also seems to be the same people having the problem, so does this mean that there is a certain series of digits which break the blowfish algorithm, or could it be the computer/browser the user is using when submitting the form? Any assistance/advice will come much appreciated! Thanks all
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.