"\"{$vboptions['bburl']}/faq", "\"{$vboptions['bburl']}/register", "\"{$vboptions['bburl']}/{$vboptions[forumhome]}.php", "\"{$vboptions['bburl']}/#usercptools", "\"{$vboptions['bburl']}/usercp.php", "\"{$vboptions['bburl']}/login.php", "'{$vboptions['bburl']}/misc.php", "\"{$vboptions['bburl']}/calendar.php", "\"{$vboptions['bburl']}/images/misc", "\"{$vboptions['bburl']}/admincp.php", "\"{$vboptions['bburl']}/tags.php", "\"{$vboptions['bburl']}/group.php", "\"{$vboptions['bburl']}/album.php" ); $vbheader = str_replace( $headvars, $headrepl, $vbheader ); if ( VB40 == "on" ) { $vbfooter = $footer; $vbfooter = process_replacement_vars($vbfooter); $vbfooter = "$vbfooter"; $footvars = array("\"admincp","\"modcp","\"archive","\"sendmessage.php", "\"profile.php", "\"cron.php", "\"forum.php"); $footrepl = array("\"{$vboptions['bburl']}/admincp","\"{$vboptions['bburl']}/modcp","\"{$vboptions['bburl']}/archive","\"{$vboptions['bburl']}/sendmessage.php","\"{$vboptions['bburl']}/profile.php","\"{$vboptions['bburl']}/cron.php","\"{$vboptions['bburl']}/forum.php"); $vbfooter = str_replace( $footvars, $footrepl, $vbfooter ); } else { eval('$vbfooter = "' . fetch_template('footer') . '";'); $vbfooter = process_replacement_vars($vbfooter); $vbfooter = "$vbfooter"; $footvars = array("\"$admincpdir", "\"$modcpdir", "\"archive", "\"sendmessage.php", "\"profile.php", "\"cron.php"); $footrepl = array("\"{$vboptions['bburl']}/$admincpdir","\"{$vboptions['bburl']}/$modcpdir","\"{$vboptions['bburl']}/archive", "\"{$vboptions['bburl']}/sendmessage.php", "\"{$vboptions['bburl']}/profile.php", "\"{$vboptions['bburl']}/cron.php"); $vbfooter = str_replace( $footvars, $footrepl, $vbfooter ); } // One header with no navbar or such $vbnoheader = << $styleinclude $headinclude {ppheader}
VBHEADER; $vbnoheader = str_replace( $headvars, $headrepl, $vbnoheader ); if ( VB35 == "on" ) { // And save the session.... $vbulletin->session->save(); } } // // VB2 CODE // if ( VB2_INTEGRATION == "on" ) { chdir($vbpath); require("global.php"); ob_start(); eval("dooutput(\"".gettemplate('headinclude')."\",0);"); $bodytag=""; echo dovars($bodytag,0); $vbheader=""; $vbheader.=ob_get_contents(); $vbheader.="{ppheader}"; ob_end_clean(); ob_start(); eval("dooutput(\"".gettemplate('header')."\",0);"); $vbheader.=ob_get_contents(); ob_end_clean(); ob_start(); eval("dooutput(\"".gettemplate('footer')."\",0);"); $vbfooter=ob_get_contents(); ob_end_clean(); chdir($pppath); } // vBPortal Integration // If you want to include the vBPortal header, footer, and left menu, remove // the "//" slashes from the beginning of the 16 lines of code below, and change // "/home/public_html/vbportal" to your actual path to vbportal's main directory, // and change "/home/public_html/classifieds" to your actual path to PhotoPost Classifieds // directory. This will override the default header and footer variables set in the // PhotoPost admin panel. if ( VBP2_INTEGRATION == "on" ) { chdir($vbportal . "/"); require("mainfile.php"); $index = 0; global $Pmenu,$Pheader; $Pheader = "P_themeheader"; $Pmenu = "P_thememenu_photopost"; require("header.php"); $vbheader = ob_get_contents(); ob_end_clean(); ob_start(); require("footer.php"); $vbfooter = ob_get_contents(); ob_end_clean(); chdir($pppath . "/"); } ?> $vboptions['allowhtml'] = 1; $markup = fetch_censored_text($markup); $markup = convert_url_to_bbcode($markup); if ( VB35 == "off" ) { $newmarkup = parse_bbcode($markup); } else { $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $newmarkup = $bbcode_parser->do_parse($markup); } $newmarkup = str_replace("\"images", "\"{$Globals['vbulletin']}/images", $newmarkup ); return($newmarkup); } else { return ( ppconvert_markups($markup) ); } } function get_forum_style() { global $Globals, $pp_phrase; return( "" ); } // // Style references // if ( $Globals['forumstyle'] == "yes" && VB40 == "off" ) { $Style['onbody'] = "onbody"; $Style['tableborders'] = "tborder"; $Style['tablesurround']= null; $Style['tddetails'] = "alt1"; $Style['tdbackground'] = "panelsurround"; $Style['tdnothumbs'] = "tcat"; $Style['menubar'] = "tcat"; $Style['menubarnb']= null; $Style['catcolumn'] = "alt1Active"; $Style['photocol'] = "alt1"; $Style['commentscol'] = "alt2"; $Style['lastphocol'] = "alt2"; $Style['lastcommcol'] = "alt1"; $Style['small'] = "smallfont"; $Style['medium'] = "normal"; $Style['large'] = "bigusername"; $Style['welcome'] = "welcome"; $Style['lighttable'] = "mysiwyg"; $Style['alternatetable'] = "alt1"; $Style['formboxes'] = "textarea"; $Style['blockquote'] = "bginput"; } if ( !$Globals['cookieprefix'] ) { $Globals['cookieprefix'] = "bb"; } ?> t the Most Popular Ads $queryz = ppmysql_query("SELECT cat,id,title,views FROM {$Globals['pp_db_prefix']}products WHERE approved=1 AND status=0 ORDER BY views DESC LIMIT {$Globals['mostpoppal']}", $link); $numfound = 0; while ( list($popcat, $popid, $poptitle, $popviews) = mysql_fetch_row($queryz)) { $cache['popular']['title'][$numfound] = ( strlen($poptitle) > 20 ? substr($poptitle,0,20)."..." : $poptitle ); $cache['popular']['views'][$numfound] = number_format($popviews); $cache['popular']['link'][$numfound] = construct_newppurl( "showproduct.php", array( 'product' => $popid, 'title' => $poptitle, 'cat' => $popcat ) ); $numfound++; } return; } function get_statscache() { global $Globals, $pp_phrase, $link, $db_link, $cache; $cache['stats']['usertotal'] = get_totalusers(); $totalv = ppmysql_query("SELECT SUM(views) as totalviews, count(*) as totalproducts FROM {$Globals['pp_db_prefix']}products WHERE approved=1 AND status = 0", $link); list( $cache['stats']['totalviews'], $cache['stats']['totalproducts'] ) = mysql_fetch_row($totalv); $totalv = ppmysql_query("SELECT count(*) FROM {$Globals['pp_db_prefix']}comments", $link); list( $cache['stats']['posttotal'] ) = mysql_fetch_row($totalv); $totalv = ppmysql_query("SELECT amt_sold,ads_sold FROM {$Globals['pp_db_prefix']}stats", $link); list( $cache['stats']['amtsold'], $cache['stats']['soldads']) = mysql_fetch_row($totalv); $curcheck = ppmysql_query("SELECT symbol,type FROM {$Globals['pp_db_prefix']}currency WHERE code = '{$Globals['currency']}'", $link); list( $csymbol, $ctype ) = mysql_fetch_row($curcheck); $cache['stats']['totalviews'] = number_format( $cache['stats']['totalviews'] ); $cache['stats']['totalproducts'] = number_format( $cache['stats']['totalproducts'] ); $cache['stats']['usertotal'] = number_format( $cache['stats']['usertotal'] ); $cache['stats']['posttotal'] = number_format( $cache['stats']['posttotal'] ); $cache['stats']['soldads'] = number_format( $cache['stats']['soldads'] ); if ( $ctype == 0 ) $cache['stats']['amtsold'] = ($cache['stats']['amtsold'] == 0 ? "{$pp_phrase['na']}" : "{$csymbol}".number_format($cache['stats']['amtsold'],2) ); elseif ( $ctype == 1 ) $cache['stats']['amtsold'] = ($cache['stats']['amtsold'] == 0 ? "{$pp_phrase['na']}" : "{$csymbol}".number_format($cache['stats']['amtsold'],2,',','') ); elseif ( $ctype == 2 ) $cache['stats']['amtsold'] = ($cache['stats']['amtsold'] == 0 ? "{$pp_phrase['na']}" : number_format($cache['stats']['amtsold'],2)."{$csymbol}" ); else $cache['stats']['amtsold'] = ($cache['stats']['amtsold'] == 0 ? "{$pp_phrase['na']}" : number_format($cache['stats']['amtsold'])."{$csymbol}" ); return; } function get_posterscache() { global $Globals, $pp_phrase, $link, $db_link, $cache; // Lets get the Top Posters $queryz = ppmysql_query("SELECT user,userid,COUNT(*) AS pcount FROM {$Globals['pp_db_prefix']}products GROUP BY user ORDER BY pcount DESC LIMIT {$Globals['numtoppal']}", $link); $numfound = 1; while ( list($cache['top']['topposters'][$numfound], $uid, $cache['top']['topposts'][$numfound]) = mysql_fetch_row($queryz)) { $cache['top']['toplink'][$numfound] = construct_newppurl( "showcat.php", array('ppuser' => $uid, 'username' => $cache['top']['topposters'][$numfound]) ); $numfound++; } return; } function get_string( $stringvar, $p1 = null, $p2 = null, $p3 = null, $p4 = null, $p5 = null ) { global $Globals, $pp_phrase; $retstring = $pp_phrase[$stringvar]; if ( $p1 ) $retstring = str_replace( "%p1%", $p1, $retstring ); if ( $p2 ) $retstring = str_replace( "%p2%", $p2, $retstring ); if ( $p3 ) $retstring = str_replace( "%p3%", $p3, $retstring ); if ( $p4 ) $retstring = str_replace( "%p4%", $p4, $retstring ); if ( $p5 ) $retstring = str_replace( "%p5%", $p5, $retstring ); return( $retstring ); } // Default Style settings $Style = array(); $Style['onbody'] = "onbody"; $Style['tableborders'] = "tableborders"; $Style['tablesurround'] = null; $Style['tddetails'] = "tddetails"; $Style['tdbackground'] = "tdbackground"; $Style['tdnothumbs'] = "tdnothumbs"; $Style['menubar'] = "menubar"; $Style['menubarnb'] = "menubarnb"; $Style['catcolumn'] = "catcolumn"; $Style['photocol'] = "photocol"; $Style['commentscol'] = "commentscol"; $Style['lastphocol'] = "lastphocol"; $Style['lastcommcol'] = "lastcommcol"; $Style['small'] = "small"; $Style['medium'] = "medium"; $Style['large'] = "large"; $Style['welcome'] = "welcome"; $Style['lighttable'] = "lighttable"; $Style['alternatetable'] = "alternatetable"; $Style['formboxes'] = "formboxes"; $Style['blockquote'] = "blockquote"; // Now lets include the forum integration require "{$Globals['PP_PATH']}/forums/{$Globals['vbversion']}.php"; include "{$Globals['TMPL_PATH']}/ppopen.tmpl"; include "{$Globals['TMPL_PATH']}/ppclose.tmpl"; ?> AND type=1", $link); while ( list($nuserid) = mysql_fetch_row($resulta) ) { if ( $nuserid > 0 ) { list( $tuserid, $tusername, $tmail ) = get_userinfo( "", $nuserid ); $letter = $pp_phrase['subnotify']; $subject = $pp_phrase['emsubscr']; $send_to = $tmail; $letter = str_replace("^User['username']","{$User['username']}",$letter); $letter = str_replace("^title","$title",$letter); $letter = str_replace("^desc","$desc",$letter); $letter = str_replace("^realname","$realname",$letter); $letter = str_replace("^thecat","$thecat",$letter); $letter = str_replace("^keywords","$keywords",$letter); $letter = str_replace("^lastproductid","$lastproductid",$letter); $letter = str_replace("^Globals['maindir']","{$Globals['maindir']}",$letter); $letter = str_replace("^Globals['domain']","{$Globals['domain']}",$letter); $subject = str_replace("^Globals['webname']","{$Globals['webname']}",$subject); send_ppemail( "$send_to", "$subject", "$letter", $tuserid, $User['userid'] ); } } } if ( $notify == "yes" ) { $resulta = ppmysql_query("INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,product) values(NULL,'{$User['userid']}',$lastproductid)", $link); } } // Force refresh of cache ppmysql_query("UPDATE {$Globals['pp_db_prefix']}cache SET timestamp=0 WHERE id=1", $link); return( $lastproductid ); } ?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/wmartin/eastlandspin.new/classified/forums/vb3.php on line 45
Eastland Spin Free Classified Ads - Login



:  
:




Powered by: PhotoPost Classifieds PHP
Copyright 2008 All Enthusiast, Inc.