Jump to content

nerotic

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by nerotic

  1. http://www.krianmusicgroup.com/Krian/ On the homepage the bug is that there should only be 4 posts but it repeats posts 1 and 2. I really have no idea where to deal with this, or probably even how. Here is the source for the homepage: http://pastie.org/private/bfn8sekydisn564pezylq If anyone can offer me some insight I'd be most grateful.
  2. Long story short, I'm using a buggy WordPress template and we're too far into development to change. Good news is that we only have one item left to deal with and the rest I've been able to hack away at with my beginner PHP skills and a little help from a friend. The homepage of the template grabs all posts and creates a thumbnail. What I want to do is have those links go to the corresponding page. I just need to add some code any posts page that change the URL after WP's output <li><a href='localhost/brian/vhs_or_beta' title='VHS or Beta'>VHS or Beta</a></li> <li><a href='localhost/brian/the_ettes' title='The Ettes'>The Ettes</a></li> becomes <li><a href='localhost/brian/vhs-or-beta' title='VHS or Beta'>VHS or Beta</a></li> <li><a href='localhost/brian/the-ettes' title='The Ettes'>The Ettes</a></li> by changing "_" to "-" Just to be clear, I still want the page to draw using the latest posts but I want them to link to their corresponding page. I know it's repetitive but for the sake of clarity I've used the same names but I've used "_" to indicate post, and "-" to indicate page. I figured today would also be a good day to learn PHP regex but there are only 4 links and it's not changing any time soon. My question is whether it's a better idea to do this with a separate PHP script rather than try to hack WP....either way I'm out of my depth but I at least want to start trying in the right place. I'm thinking that the easiest way would be a small PHP script that would simple search 4 explicit URLs appearing in <a href> and changing them for 4 specific alteratives. Can anyone give me some guidance here? Thanks.
  3. Here's my $_SESSION start: <?php session_start(); $section = $_SESSION["nav"]; ?> My js: <script language="JavaScript" type="text/javascript"> $(document).ready(function() { $("div.tabs").tabs(".images > div", { // enable "cross-fading" effect effect: 'fade', fadeInSpeed: 600, fadeOutSpeed: 1000, // start from the beginning after the last tab rotate: false // use the slideshow plugin. It accepts its own configuration }).slideshow({autoplay: false, interval:5000}); $("a.lnav").onclick(function() { // Get the ID of the link var src = $(this).attr("id"); alert(id); // Send Ajax request to backend.php, with src set as "id in the POST data $.post("/backend.php", {"id": src}); }); }); </script> Here's backend.php: <?php // do any authentication first, then add POST variable to session $_SESSION['nav'] = $_POST['id']; ?> Why can't I get the alert(src) to work?
  4. Hey Catfish, Thanks for replying. I should have marked this forum solved but until now I hadn't seen the green button...too obvious I suppose I've actually moved onto bigger and better problems: http://www.phpfreaks.com/forums/index.php/topic,303153.0.html If you have any insight there I'd be grateful from what i remember of your page, "classic" is the first value (X) and "content=who" is the second value (Y) isn't it? the value of content will be passed around in $_GET (as long as each link the user clicks has a ?content=value part) and the other value is always defined by the page name.
  5. Extra comma in the css before the {} Will do it every time.
  6. Hi folks, On: http://nerotic.net/aux/ I'm using CSS to turn navigation red to indicate location and it's always worked in the past...but now it's not and I have no idea why. Here's the code I'm using (no comments about the <br />, that's going to be changed later on) <table width="185"> <tr> <td width="40" height="510"></td> <td width="105" height="510"align="center" valign="middle"> <a href="index.php?page=soundwhy" class="lnav" id="soundwhynav">why<a/><br /><br /><br /> <a href="index.php?page=soundhow" id="soundhownav" class="lnav">how<a/><br /><br /><br /> <a href="index.php?page=soundwhat" id="soundwhatnav" class="lnav">what<a/><br /><br /><br /> <a href="index.php?page=soundwhere" id="soundwherenav" class="lnav">where <a/><br /><br /> <br /> <a href="index.php?page=soundwho" id="soundwhonav" class="lnav">who<a/> </td> <td width="40" height="510" style="border-right: solid gray 0px;"></td> </tr> </table> and this is my CSS: body#soundwhy a#soundwhynav, body#soundhow a#soundhownav, body#soundwhat a#soundwhatnav, body#soundwhere a#soundwherenav, body#soundwho a.lnav#soundwhynav, { color:#E3170D; } As you can see I've tried reordering the elements (as silly as it might seem but nada. I also can't style the links by placing the class="lnav" in the <table> or <td> tag and have no idea why that doesn't want to take now.
  7. There's one more issue here... Technically everything is working just fine in terms of passing the variable. One unforeseen issue that has come up is since the $_SESSION "nav" is being set in an included document that's streamed into an overarching template the variable doesn't update in the template until the page is reloaded which means that the navigation is always one step behind what the user actually just clicked on. How can update the session variable w/o refreshing the page?
  8. In the end it was simple enough: Muffins dropped this little nugget on me: you need to set $_SESSION["nav"] somewhere so this: <?php $nav = "who"; echo $nav; ?> became this: <?php $_SESSION["nav"] = "who"; ?>
  9. I've changed the code to this in the index.php: <? session_start(); $section = $_SESSION["nav"]; echo $section; ?> and this in the file that's being included: <?php $nav = "who"; echo $nav; ?> In the included file the echo is working just fine, it's just not making it back to the index.html
  10. I don't understand the question. What element is missing? I've shown all the code that I'm using. And another question I have, do I need to open php sessions on all pages on the site in the event that people enter via a deep link?
  11. Ok..I've taken a new tack, using what I understand. In the include files I've added the following. In sound-where.php (which is being included by index.php) I have this line of code: <?php $nav = "where"; ?> Then in index.php I have the following at the top of the document: <? session_start(); $_SESSION["section"] = $_POST["nav"]; echo $_SESSION["section"]; ?> And then later I'm constructing my links as such: <a href="level.php?page=level<?php echo $section;?>" class="tnav"> <a href="box.php?page=box<?php echo $section;?>" class="tnav"> <a href="classic.php?page=box<?php echo $section;?>" class="tnav"> I'm not getting anything back from $nav though...blank. Can anyone tell me what I'm doing wrong? Thanks.
  12. so in order to pass this how would I have to construct a link...would it look something like this? <a href="classic.php?content=who">who</a>
  13. Think of it as a 5x5 matrix: x x x x x y y y y y The nav never changes and it's going to give us a much clearer way for users to compare data on the products. In any event, I could technically do it the way you described by concatenating two variable to form a page name...and in the end this is what it's actually going to do, just that the 1st part will be hardcoded (i.e. won't use a variable). I understand that I need to use a session varaible, what I don't know how to do is create and have the page store that variable. That's actually what I was asking
  14. This is a newbie question, very limited understanding of PHP. For a site that I'm working on: http://nerotic.net/aux/ I have X-Y navigation as you can see (top: sound,level,box,classic,shop - left: why,what,how,where,who). These elements never change anywhere on the site, except in shop where they disappear but that's really neither here nor there. Because of different needs in templating between the Sound/Level/Box/Classic/Shop areas each one has its own PHP file which then uses php includes in the content area div so that the left nav is getting reloaded each time there's a switch to another top nav section. At all times one X and one Y will always be "lit" up (still getting the CSS in order for this one). The homepage is SOUND/WHY. So if you click on what..you're now at SOUND/WHAT- Here's what I'm trying to accomplish but not sure how. If youre on SOUND/WHAT and click on BOX...you should land at BOX/WHAT rather than BOX/WHY and if you're on LEVEL/WHO and click on CLASSIC you end up at CLASSIC WHO. I assume that I need to set a global variable to capture which Y axis point I'm on: define("y_coord","$ycoord"); However, what I don't know how to do is to tell the page which is the current variable. Apparently I'm not even searching correctly for answers. If anyone could lend me a hand or even point me to a post/tutorial that would help I'd be greatly appreciative. Thanks.
  15. Hi Mikesta, First all let me say just how grateful I am, not just for your response, but for the time you took in preparing your explanations, I really learned quite a bit. In fact, after I implemented your changes I ended up with some other errors but after your post I was immediately able to see that this: Language::SetAuto(no); should have been this: Language::SetAuto('no'); New knowledge immediately put to good use! So now I'm only left with one error (which I get on every page except the index): Fatal error: Cannot redeclare __() (previously declared in /home/nerotic/public_html/auxtest/Language.php:287) in /home/nerotic/public_html/auxtest/Language.php on line 290 There are lines 287-290 in the Translation Class that I'm using: function __($string){ global $Language; return $Language->_($string); } In documentation it states: Save language per user This example shows you how you can save the language for a user and set it with a url parameter (?ln=) If you will open this example in your browser the languages are default displayed in English. If you add ?ln=fr to the url and reload you will see that the strings are automaticly are translated to french. If you remove the ?ln= parameter from the url and reload the page you’ll notice that the language is saved in the session. include(“Language.php”); if(isset($_GET[‘ln’])) $_SESSION[‘language’] = $_GET[‘ln’]; Language::Set($_SESSION[‘language’]); Language::SetAuto(true); echo __(‘My name is Wim’); echo __(‘I am 23 years old.’);
  16. disclaimer: I'm pretty new to PHP and a novice Here is the page in question (and all its lovely errors): http://nero.exofire.net/auxtest/look_intro.php And a working copy (www.auxout.com/look_intro.php) Here's what I was doing originally (code at end of post): look_intro.php calls in another file (look_landing.php) into a div (using an external include file as below: <? switch($page) { case 'cwords': include "words_classic.php"; break; case 'cnerds': include "nerds_classic.php"; break; case 'cshop': include "shop_classic.php"; break; case 'cshopus': include "shop_classic_us.php"; break; case 'cshopuk': include "shop_classic_uk.php"; break; case 'lwords': include "words_level.php"; break; case 'lnerds': include "nerds_level.php"; break; case 'lshop': include "shop_level.php"; break; case 'lshopus': include "shop_level_us.php"; break; case 'lshopuk': include "shop_level_uk.php"; break; case 'bwords': include "words_box.php"; break; case 'bnerds': include "nerds_box.php"; break; case 'bshop': include "shop_box.php"; break; case 'bshopus': include "shop_box_us.php"; break; case 'bshopuk': include "shop_box_uk.php"; break; case 'combine': include "combine.php"; break; default: include "look_landing.php"; break; } ?> I then have 3 areas where I use PHP to set 3 variables: 1) The browser title bar text 2) The page ID (so that later with CSS I can set the color for the current page in the nav) 3) A page heading that shows up in tbe banner area which sets the page. I bought a php translation class online (PDF documentation attached) which uses __ as it's function (details below). So in the last couple of days I've been doing what the doc stipulates...wrapping all texts that I want to translate with the following. if existing text: xxxxxx wrapped text: <?php echo __("xxxxxx");?> (footnote: the doc states to use ' but I switched it to " because I had certain chars that weren't being escaped) Since then I'm getting the error...there were even more but I removed this from the top include on the page, which removed some additional errors. session_start(); So I have two questions: 1) Why am I getting these undefined errors now when I wasn't before? Obviously there's a conflict with the new include for the Language.php file but how can I find out what it is. 2) How can I include this into the templating mechanism for my translation class so that I can change page titles/headers when someone changes language? <? $page = $_GET['page']; switch($page) { case cwords: echo 'AUX Classic Product Overview'; break; Thanks in advance...if there is any additional information I can submit please let me know. <?php error_reporting(E_ALL); include("Language.php"); if(isset($_GET['ln'])) $_SESSION['language'] = $_GET['ln']; Language::Set($_SESSION['language']); Language::SetAuto('no'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>AUX Speakers: <? $page = $_GET['page']; switch($page) { case cwords: echo 'AUX Classic Product Overview'; break; case cnerds: echo 'AUX Classic Product Specifications'; break; case cshop: echo 'AUX Classic Euro Pricing'; break; case cshopus: echo 'AUX Classic US Pricing'; break; case cshopuk: echo 'AUX Classic UK Pricing'; break; case lwords: echo 'AUX Level Product Overview'; break; case lnerds: echo 'AUX Level Product Specifications'; break; case lshop: echo 'AUX Level Euro Pricing'; break; case lshopus: echo 'AUX Level US Pricing'; break; case lshopuk: echo 'AUX Level UK Pricing'; break; case bwords: echo 'AUX Box Product Overview'; break; case bnerds: echo 'AUX Box Product Specifications'; break; case bshop: echo 'AUX Box Euro Pricing'; break; case bshopus: echo 'AUX Box US Pricing'; break; case bshopuk: echo 'AUX Box UK Pricing'; break; case combine: echo 'Product Configurator'; break; default: echo 'Look at the Products'; } ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="css/stylesheet.css" /> <script src="js/jquery.tools.min.js" type="text/javascript"></script> <link rel="icon" type="image/ico" href="favicon.ico" /> </head> <body bgcolor="#000000" id="<? $page = $_GET['page']; switch($page) { case cwords: echo 'cwords'; break; case cnerds: echo 'cnerds'; break; case cshop: echo 'cshop'; break; case cshopus: echo 'cshopus'; break; case cshopuk: echo 'cshopuk'; break; case lwords: echo 'lwords'; break; case lnerds: echo 'lnerds'; break; case lshop: echo 'lshop'; break; case lshopus: echo 'lshopus'; break; case lshopuk: echo 'lshopuk'; break; case bwords: echo 'bwords'; break; case bnerds: echo 'bnerds'; break; case bshop: echo 'bshop'; break; case bshopus: echo 'bshopus'; break; case bshopuk: echo 'bshopuk'; break; case combine: echo 'combine'; break; default: echo 'customers'; break; } ?>"> <table align="center" width="1230" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="370" align="center" style="height: 88px"> <a href="index.php"><img src="images/auxlogo.jpg" width="108" height="68" alt="AUX Logo" border="0" /></a> </td> <td width="860" align="center" style="height: 88px"> <div id="header"> <? $page = $_GET['page']; switch($page) { case cwords: echo 'AUX Classic Product Overview'; break; case cnerds: echo 'AUX Classic Product Specifications'; break; case cshop: echo 'Classic Shipped from Milan, VAT included'; break; case cshopus: echo 'Classic Shipped from Minnesota'; break; case cshopuk: echo 'Classic Shipped from Milan, VAT included'; break; case lwords: echo 'AUX Level Product Overview'; break; case lnerds: echo 'AUX Level Product Specifications'; break; case lshop: echo 'Level Shipped from Milan, VAT included'; break; case lshopus: echo 'Level Shipped from Minnesota'; break; case lshopuk: echo 'Level Shipped from Milan, VAT included'; break; case bwords: echo 'AUX Box Product Overview'; break; case bnerds: echo 'AUX Box Product Specifications'; break; case bshop: echo 'Box Shipped from Milan, VAT included'; break; case bshopus: echo 'Box Shipped from Minnesota'; break; case bshopuk: echo 'Box Shipped from Milan, VAT included'; break; case combine: echo 'Product Configurator'; break; default: echo 'Look at the Products'; } ?></div> </td> </tr> <tr> <td width="1230" height="3" colspan="2"> <img src="images/pixel_grey.png" width="1230" height="3" /> </td> </tr> <tr> <td bgcolor="#000000" width="1230" height="32" colspan="2"> <table width="1230" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="333"><img src="images/nav/spacer.jpg" width="333" height="32" border="0" /></td> <td width="195" align="right"><a href="look_intro.php" target="_top"><img src="images/nav/look1.jpg" alt="Look" name="Look" width="195" height="32" border="0" id="Look" /></a></td> <td width="186" align="center"><a href="listen.php" target="_top"><img src="images/nav/listen.jpg" alt="Listen" name="Listen" width="186" height="32" border="0" id="Listen" /></a></td> <td width="184" align="center"><a href="learn.php" target="_top"><img src="images/nav/learn.jpg" alt="Learn" name="Learn" width="184" height="32" border="0" id="Learn" /></a></td> <td width="187" align="center"><a href="review.php" target="_top"><img src="images/nav/review.jpg" alt="Review" name="Review" width="187" height="32" border="0" id="Review" /></a></td> <td width="150" align="left"><a href="shop.php"><img src="images/nav/shop.jpg" alt="Shop" name="Shop" width="150" height="32" border="0" id="Shop" /></a></td> </tr> </table> </td> </tr> <tr> <td width="1230" height="5" colspan="3"> <img src="images/pixel_grey.png" width="1230" height="5" /> </td> </tr> <tr> <td bgcolor="#000000" align="left" valign="top" colspan="3"> <table width="1230" height="385" border="0"> <tr> <!-- Begin Vertical Left Nav --> <td width="370" valign="top" align="left" bgcolor="#000000"> <table width="370" border="0" class="style1"> <tr> <td style="width: 42px"> </td> <td colspan="3" style="width: 259px" align="center"><span class="headers2"><?php echo __("Classic");?></span></td> <td width="50"> </td> </tr> <tr> <td style="width: 42px"> </td> <td colspan="3" style="width: 259px" align="center"><a href="look.php?page=cwords"><img src="images/classic_icon.jpg" border="0" alt="The AUX Classic" width="140" height="74" /></a></td> <td width="50"> </td> </tr> <tr> <td style="width: 42px"> </td> <td width="65"><div align="right"><a href="look.php?page=cwords" id="cwordsnav"><?php echo __("Words");?></a></td> <td width="45"><div align="center"><a href="look.php?page=cnerds" id="cnerdsnav"><?php echo __("Nerds");?></a> </div></td> <td width="60"><div align="left"><a href="look2.php?page=cshopus" id="cshopusnav"> &#36; </a> <a href="look2.php?page=cshopuk" id="cshopuknav"> £ </a> <a href="look2.php?page=cshop" id="cshopnav"> € </a></td> <td width="50"> </td> </tr> <tr> <td colspan="5" height="10"></td> </tr> <tr> <td style="width: 42px"> </td> <td colspan="3" style="width: 259px" align="center"><span class="headers2"><?php echo __("Level");?></span></td> <td width="50"> </td> </tr> <tr> <td style="width: 42px"> </td> <td colspan="3" style="width: 259px" align="center"><a href="look.php?page=lwords"><img src="images/level_icon.jpg" border="0" alt="The AUX Level" width="198" height="59" /></a></td> <td width="50"> </td> </tr> <tr> <td style="width: 42px"> </td> <td width="65"><div align="right"><a href="look.php?page=lwords" id="lwordsnav"><?php echo __("Words");?></a></td> <td width="45"><div align="center"><a href="look.php?page=lnerds" id="lnerdsnav"><?php echo __("Nerds");?></a></td> <td width="60"><div align="left"><a href="look2.php?page=lshopus" id="lshopusnav"> &#36; </a> <a href="look2.php?page=lshopuk" id="lshopuknav"> £ </a> <a href="look2.php?page=lshop" id="lshopnav"> € </a></td> <td width="50"> </td> </tr> <tr> <td colspan="5" height="10"></td> </tr> <tr> <td style="width: 42px"> </td> <td colspan="3" style="width: 259px" align="center"><span class="headers2"><?php echo __("Box");?></span></td> <td width="50"> </td> </tr> <tr> <td style="width: 42px"> </td> <td colspan="3" style="width: 259px" align="center"><a href="look.php?page=bwords"><img src="images/icon_box1.jpg" border="0" alt="The AUX Box" width="140" height="83" /></a></td> <td width="50"> </td> </tr> <tr> <td style="width: 42px"> </td> <td width="65"><div align="right"><a href="look.php?page=bwords" id="bwordsnav"><?php echo __("Words");?></a></td> <td width="45"><div align="center"><a href="look.php?page=bnerds" id="bnerdsnav"><?php echo __("Nerds");?></a></td> <td width="60"><div align="left"><a href="look2.php?page=bshopus" id="bshopusnav"> &#36; </a> <a href="look2.php?page=bshopuk" id="bshopuknav"> £ </a> <a href="look2.php?page=bshop" id="bshopnav"> € </a></td> <td width="50"> </td> </tr> <tr> <td colspan="5" height="10"></td> </tr> <tr> <td style="width: 42px"> </td> <td colspan="3" style="width: 259px" align="center"><a href="look.php?page=combine" id="combinenav" class="link3"><?php echo __("COMBINE");?></a></td> <td width="50"> </td> </tr> </table> </td> <!-- End Vertical Left Nav --> <!-- Begin Main Content Area --> <td width="860" height="475" valign="top"> <noscript class="mag"><center><?php echo __("AUXout.com makes extensive use of JavaScript to deliver a truly unique browsing experience. Please enable JavaScript in your browser otherwise a significant portion of our content will not be visible to you.");?></center></noscript> <div style="width: 854px; height: 470px; overflow-y: hidden"><br /><? include "look_page_content.inc.php"; ?> </div> </td> <!-- End Main Content Area --> </tr> </table> </td> </tr> <tr> <td width="1230" height="5" colspan="2"> <img id="pixel_grey" src="images/pixel_grey.png" width="1230" height="4" /> </td> </tr> <tr> <td width="360" align="center"> <div style="margin-top:10px;"> <font face="arial" size="2" color="#636363"> <?php echo __("Copyright");?> © <?php echo __("2010");?> <a href="mailto:aux@auxout.com" class="link4"><?php echo __("AUX");?></a></font> </td> <?php $tabwidth = 435 - ($dots/2 * 9); $prevwidth = $tabwidth - 265; $pausewidth = 560 + ($dots/2 * 9); ?> <td width="870"> <!-- previous / next --> <div style="margin-left:<?php echo $prevwidth;?>px; margin-top:4px; height: 10px;"> <button onclick='$("div.tabs").tabs().prev();'><?php echo __("PREVIOUS");?></button> <button onclick='$("div.tabs").tabs().next();'><?php echo __("NEXT");?></button> </div> <!-- the tabs --> <div class="tabs" style="margin-left:<?php echo $tabwidth;?>px; margin-top:-3px;"> <?php for ($i = 1; $i <= $dots; $i++) { echo '<a href="#"></a>'; } ?> </div> <!-- pause / resume --> <div style="margin-left:<?php echo $pausewidth;?>px; margin-top:-10px; height: 10px; padding-right: 0px;"> <button onclick='$("div.tabs").tabs().stop();'><?php echo __("PAUSE");?></button> <button onclick='$("div.tabs").tabs().play();'><?php echo __("AUTO");?></button> </div> </div> <script language="JavaScript" type="text/javascript"> // What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready $(function() { $("div.tabs").tabs(".images > div", { // enable "cross-fading" effect effect: 'fade', fadeInSpeed: 600, fadeOutSpeed: 1000, // start from the beginning after the last tab rotate: true // use the slideshow plugin. It accepts its own configuration }).slideshow({autoplay: true, interval: 2000}); }); </script> </td> </tr> </table> </body> </html> [attachment deleted by admin]
  17. Hello all, I just got into .htaccess today due to a sudden need from my client and I'm really not all that adept at Apache. I've tried countless tutorials and generators and but nothing seems to work. In a nutshell I have a catalog website that can include one of 6 stores...the setup looks like this (everything housed under one domain): www.mydomain.com www.mydomain.com/store1/ www.mydomain.com/store2/ etc up to 6 For stores 1,2,3, I want them accessible openly, which means direct linking and indexing by search engines However, for stores 4,5,6, I have it set up so that from a certain page on www.mydomain.com people can enter a code which will take them to these hidden stores with special pricing. I've set up my robots.txt so that /osc4/, /osc5/, /osc6/ aren't being indexed. So far so good...this is where I need .htaccess to kick in and I can't find a way to do so that hasn't blocked out access completely. The last element that I want to implement I want to do is set up is to prevent people from direct linking into those special stores. I've heard there's a way to do this with .htaccess so that those stores will only allow access from www.mydomain.com and if they access from elsewhere I can redirect them elsewhere. So in plain English what I need is: Allow referrer www.mydomain.com (entire domain) Allow referrer mydomain.com (entire domain) Deny all other referrers and redirect them to URL Allow IP 1 (for direct store and admin panel access) Allow IP 2 (for direct store and admin panel access) Deny all other IPs and redirect them to URL I don't mind putting an instance of .htaccess into each folder, doesn't have to be in root and it's probably for the better considering how the host is set up. Thanks in advance. Here's the latest version of what I've been trying. Options +ExecCGI AddHandler server-parsed .shtml DirectoryIndex .htredirect.html index.html index.php ErrorDocument 404 /404.html RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://mydomain.com/store1/ RewriteCond %{HTTP_REFERER} !^http://mydomain.com/store2/ RewriteCond %{HTTP_REFERER} !^http://mydomain.com/store3/ RewriteCond %{HTTP_REFERER} !^http://mydomain.com/store4/ RewriteCond %{HTTP_REFERER} !^http://mydomain.com/store5/ RewriteCond %{HTTP_REFERER} !^http://mydomain.com/store6/ RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/store1/ RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/store2/ RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/store3/ RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/store4/ RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/store5/ RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/store6/ RewriteRule \.(gif|jpg)$ http://mydomain.com/ [R,L] RewriteRule /* http://mydomain/restricted/index.html [R,L] RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR] RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR] RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR] RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR] RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR] RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR] RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR] RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR] RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR] RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR] RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR] RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR] RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR] RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR] RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR] RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR] RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR] RewriteCond %{HTTP_USER_AGENT} ^HMView [OR] RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR] RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR] RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR] RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR] RewriteCond %{HTTP_USER_AGENT} ^larbin [OR] RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR] RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR] RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR] RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR] RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR] RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR] RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR] RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR] RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR] RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR] RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR] RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR] RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR] RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR] RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR] RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR] RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR] RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR] RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR] RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR] RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR] RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR] RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR] RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR] RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR] RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR] RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR] RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR] RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR] RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR] RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR] RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR] RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR] RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR] RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR] RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR] RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR] RewriteCond %{HTTP_USER_AGENT} ^Wget [OR] RewriteCond %{HTTP_USER_AGENT} ^Widow [OR] RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR] RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Zeus RewriteRule ^.* - [F,L]
  18. Nevermind...I enclosed everything in parens and it worked like a charm!! Thanks to everyone who offered their time and help.
  19. Thanks for responding Wildteen. My code look slike this now: <?php switch $_POST['storeentry'] { case 'test1': case 'test2': case 'test3': header('Location: oscomm3/'); break; case 'test4': case 'test5': case 'test6': header('Location: oscomm4/'); break; default: header('Location: storeerror.php'); } ?> And it's giving me this error: Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in D:\Nero\Works\A.U.X\Web2.0\storeentry.php on line 2
  20. I've echoed the variable <?php echo $storyentry; ?> in my HTML code and it's not getting passed. Can anyone give me an idea is to how to find out why? Or maybe it's apparent in the code that I've posted?
×
×
  • 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.