// PHP?dir is a simple PHP-script to make simple URL's // Created by Misty // http://members.lycos.nl/phpmisty/phpdir/ // http://php.mistysweblog.tk /* You can add url's in the form "namepage" => "http://url.com/page.html" with a comma between the different naam => url's (see example) This will give the page url.com/thispage.php?page=namepage It also works when you use other variables in the url as url.com/thispage.php?page=index&test=525 . Then it adds the extra variable (test=525) also to the base url (http://url.com/test/page/ becomes http://url.com/test/page/?test=525) */ /* $url = array( "feedback" => "http://www.unmarked.com/support/feedback.html", "faq" => "http://www.unmarked.com/kb/index.php", "history" => "http://www.unmarked.com/textsoap/history.html", ); */ // schema : key - general redirect: simple key (ie. feedback) // - product specific: id_key (ie. ts4_history ) $url = array( "index" => "https://textsoap.com/", "store" => "https://textsoap.com/store/", "store8" => "https://textsoap.com/store/", "feedback" => "http://www.unmarked.com/textsoap/contactus.html", "question" => "http://www.unmarked.com/textsoap/contactus.html", "faq" => "http://unmarked.zendesk.com/", "notes" => "http://www.unmarked.com/textsoap7/releasenotes.html", "support" => "http://www.unmarked.com/support/", "forums" => "http://www.unmarked.com/forums/", "bugreporter" => "https://unmarked.fogbugz.com/default.asp?pg=pgPublicEdit", "ccleaners" => "http://www.unmarked.com/textsoap/ccleaners.html", "history" => "http://www.unmarked.com/textsoap/releasenotes.html", "facebook" => "http://www.facebook.com/pages/TextSoap/45764689145", "twitter" => "http://www.twitter.com/textsoap/", "socialmedia" => "http://www.unmarked.com/textsoap/", "upgrade8" => "http://www.unmarked.com/support/checkserial.php", "upgrade" => "https://textsoap.com/upgrade/", "store7" => "http://store.eSellerate.net/s.aspx?s=STR6397012075", "lostserial" => "http://www.unmarked.com/support/lostserial.php", "textsoap-verifyupgrade8" => "http://www.unmarked.com/php/ts_verifyupgrade.php", "textsoap-verifyupgrade" => "https://textsoap.com/upgrade/verify.php", "textsoap-overview" => "http://www.unmarked.com/textsoap/", "textsoap-features" => "http://www.unmarked.com/textsoap/", "textsoap-releasenotes" => "http://www.unmarked.com/textsoap/releasenotes.html", "textsoap7-upgrade-check" => "http://www.unmarked.com/support/checkserial.php", "textsoap7-download" => "http://unmarked.s3.amazonaws.com/textsoap7.zip", "textsoap7-buynow" => "http://www.unmarked.com/store/", "textsoap7-macappstore" => "http://itunes.apple.com/us/app/textsoap/id429511241?mt=12&ls=1", "textsoap7-iusethis" => "http://osx.iusethis.com/app/textsoap", "textsoap7-cnet" => "http://download.cnet.com/TextSoap/3000-2079_4-10317290.html?tag=bc", "textsoap7-macupdate" => "http://www.macupdate.com/app/mac/8974/textsoap", "textsoap7-onlinehelp" => "http://www.unmarked.com/textsoap/help7/", "textsoap8-download-old" => "http://unmarked.s3.amazonaws.com/textsoap8.zip", "textsoap8-download" => "https://textsoap.nyc3.digitaloceanspaces.com/files/textsoap8_2284.zip", "textsoap-express-macappstore" => "http://itunes.apple.com/us/app/textsoap-express/id494472906?mt=12", "textsoap-credits" => "http:/www.unmarked.com/textsoap/acknowledgements.html", "textsoap-menu-onlinehelp" => "http://www.unmarked.com/textsoap/docs/menu/", "textsoap-menu-macappstore" => "http://itunes.apple.com/us/app/textsoap/id429511241?mt=12", "textsoap6" => "http://www.unmarked.com/textsoap/", "wordofmouth" => "http://www.unmarked.com/textsoap/wordofmouth.html", "mac-download-file" => "http://unmarked.s3.amazonaws.com/textsoap6.zip", "mac-download" => "http://www.unmarked.com/downloads/", "mac-downloads" => "http://www.unmarked.com/downloads/", "mac-download-textsoap6" => "http://unmarked.s3.amazonaws.com/textsoap6.zip", "mac-buy-su" => "http://store.esellerate.net/unmarked/buymac1", "win-download-17" => "http://unmarked.com/files/textsoap17_installer.msi", "win-download-18" => "http://unmarked.com/files/textsoap18_installer.msi", "win-buy-su" => "http://store.esellerate.net/unmarked/buywin1", "news" => "http://www.unmarked.com/php/rss2html.php?XMLFILE=http://www.unmarked.com/news/newsfeed.xml", "feedrevisions" => "http://www.unmarked.com/textsoap/data/feedrevisions.plist", "textsoap7" => "http://www.unmarked.com/textsoap/", "textsoap" => "http://www.unmarked.com/textsoap/", "textsoap5_devnews" => "http://www.unmarked.com/textsoap/developer-news/news5.plist", "textsoap6_devnews" => "http://www.unmarked.com/textsoap/developer-news/news6.plist", "textsoap7_devnews" => "http://www.unmarked.com/textsoap/developer-news/news7.plist", "get-extras" => "http://www.unmarked.com/downloads/getextras.html", "endoftheline" => "http:/www.unmarked.com", ); //Other options $title="My Page"; //Enter the page title $keywords="personal, webpage, html, CV"; //Enter the page keywords $description="My personal webpage: come and see it!"; //Enter the site description // get the passed in variable page= $page = $_GET["page"]; $opage = $page; // Do not edit below if (!array_key_exists($page,$url)) { $page="index"; } if ($page=="") {$page="index";} $templink="page=$page&"; $tempurl1=str_replace ($templink, "", "$QUERY_STRING"); $templink="&page=$page"; $tempurl2=str_replace ($templink, "", "$tempurl1"); if ($tempurl2=="page=$page") {$tempurl2=""; $vraag="";} else {if ($tempurl2=="") {$vraag="";} else{ $vraag="?";} } $newurl="$url[$page]$vraag$tempurl2"; header("Location: $newurl"); ?>
"> ">