:
Text: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
File: /home/ce73/public_html/applenewsnow/classes/smarty/Smarty_Compiler.class.php
Line: 270
Call Stack:
errorHandler(8192, "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead", "/home/ce73/public_html/applenewsnow/classes/smarty/Smarty_Compiler.class.php", 270, array())
preg_replace("~\{\*(.*?)\*\}|\{\s*literal\s*\}(.*?)\{\s*/literal\s*\}|\{\s*php\s*\}(.*?)\{\s*/php\s*\}~se", "'{php' . str_repeat("
", substr_count('\0', "
")) .'}'", "


{if !empty($staticPageContent)}{$staticPageContent->title}{else}{$page->name}{/if}
{$metatag}






Menu
    {include file="menu.tpl" curtree=$tree href=$HttpUrl}
{if empty($staticPageContent->content)}

{$page->content1}

{$page->content3}

{$page->content4}

{else} {$staticPageContent->content} {/if}
Resources
    {if empty($staticPageContent->content)}{$page->content2}
{if $page->name_in_url eq 'index'}
    {php} function tla_ads() { // Number of seconds before connection to XML times out // (This can be left the way it is) $CONNECTION_TIMEOUT = 10; // Local file to store XML // This file MUST be writable by web server // You should create a blank file and CHMOD it to 666 $LOCAL_XML_FILENAME = "local_387407.xml"; if( !file_exists($LOCAL_XML_FILENAME) ) die("Script error: $LOCAL_XML_FILENAME does not exist. Please create a blank file named $LOCAL_XML_FILENAME."); if( !is_writable($LOCAL_XML_FILENAME) ) die("Script error: $LOCAL_XML_FILENAME is not writable. Please set write permissions on $LOCAL_XML_FILENAME."); if( filemtime($LOCAL_XML_FILENAME) < (time() - 3600) || filesize($LOCAL_XML_FILENAME) < 20) { $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ""; $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""; tla_updateLocalXML("http://www.text-link-ads.com/xml.php?inventory_key=XCR4VEO3EI0LXICYPFGC&referer=" . urlencode($request_uri) . "&user_agent=" . urlencode($user_agent), $LOCAL_XML_FILENAME, $CONNECTION_TIMEOUT); } $xml = tla_getLocalXML($LOCAL_XML_FILENAME); $arr_xml = tla_decodeXML($xml); if ( is_array($arr_xml) ) { echo "\n
      \n"; for ($i = 0; $i < count($arr_xml['URL']); $i++) { if( isset($arr_xml['PostID'][$i]) && $arr_xml['PostID'][$i] > 0 ) continue; echo "
    • ".$arr_xml['BeforeText'][$i]." ".$arr_xml['Text'][$i]." ".$arr_xml['AfterText'][$i]."
    • \n"; } echo "
    "; } } function tla_updateLocalXML($url, $file, $time_out) { if($handle = fopen($file, "a")){ fwrite($handle, "\n"); fclose($handle); } if($xml = file_get_contents_tla($url, $time_out)) { $xml = substr($xml, strpos($xml, '(.*?)', '"'); $n = 0; while (isset($out[$n])) { $retarr[$out[$n][1]][] = str_replace($search_ar, $replace_ar,html_entity_decode(strip_tags($out[$n][0]))); $n++; } return $retarr; } tla_ads(); {/php}
{/if}{/if}
") /home/ce73/public_html/applenewsnow/classes/smarty/Smarty_Compiler.class.php [270] Smarty_Compiler->_compile_file("content.tpl", " {if !empty($staticPageContent)}{$staticPageContent->title}{else}{$page->name}{/if} {$metatag}
Menu
    {include file="menu.tpl" curtree=$tree href=$HttpUrl}
{if empty($staticPageContent->content)}

{$page->content1}

{$page->content3}

{$page->content4}

{else} {$staticPageContent->content} {/if}
Resources
    {if empty($staticPageContent->content)}{$page->content2}
{if $page->name_in_url eq 'index'}
    {php} function tla_ads() { // Number of seconds before connection to XML times out // (This can be left the way it is) $CONNECTION_TIMEOUT = 10; // Local file to store XML // This file MUST be writable by web server // You should create a blank file and CHMOD it to 666 $LOCAL_XML_FILENAME = "local_387407.xml"; if( !file_exists($LOCAL_XML_FILENAME) ) die("Script error: $LOCAL_XML_FILENAME does not exist. Please create a blank file named $LOCAL_XML_FILENAME."); if( !is_writable($LOCAL_XML_FILENAME) ) die("Script error: $LOCAL_XML_FILENAME is not writable. Please set write permissions on $LOCAL_XML_FILENAME."); if( filemtime($LOCAL_XML_FILENAME) < (time() - 3600) || filesize($LOCAL_XML_FILENAME) < 20) { $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ""; $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""; tla_updateLocalXML("http://www.text-link-ads.com/xml.php?inventory_key=XCR4VEO3EI0LXICYPFGC&referer=" . urlencode($request_uri) . "&user_agent=" . urlencode($user_agent), $LOCAL_XML_FILENAME, $CONNECTION_TIMEOUT); } $xml = tla_getLocalXML($LOCAL_XML_FILENAME); $arr_xml = tla_decodeXML($xml); if ( is_array($arr_xml) ) { echo "\n
      \n"; for ($i = 0; $i < count($arr_xml['URL']); $i++) { if( isset($arr_xml['PostID'][$i]) && $arr_xml['PostID'][$i] > 0 ) continue; echo "
    • ".$arr_xml['BeforeText'][$i]." ".$arr_xml['Text'][$i]." ".$arr_xml['AfterText'][$i]."
    • \n"; } echo "
    "; } } function tla_updateLocalXML($url, $file, $time_out) { if($handle = fopen($file, "a")){ fwrite($handle, "\n"); fclose($handle); } if($xml = file_get_contents_tla($url, $time_out)) { $xml = substr($xml, strpos($xml, '(.*?)', '"'); $n = 0; while (isset($out[$n])) { $retarr[$out[$n][1]][] = str_replace($search_ar, $replace_ar,html_entity_decode(strip_tags($out[$n][0]))); $n++; } return $retarr; } tla_ads(); {/php}
{/if}{/if}
", ) /home/ce73/public_html/applenewsnow/classes/smarty/Smarty.class.php [1484] Smarty->_compile_source("content.tpl", " {if !empty($staticPageContent)}{$staticPageContent->title}{else}{$page->name}{/if} {$metatag}
Menu
    {include file="menu.tpl" curtree=$tree href=$HttpUrl}
{if empty($staticPageContent->content)}

{$page->content1}

{$page->content3}

{$page->content4}

{else} {$staticPageContent->content} {/if}
Resources
    {if empty($staticPageContent->content)}{$page->content2}
{if $page->name_in_url eq 'index'}
    {php} function tla_ads() { // Number of seconds before connection to XML times out // (This can be left the way it is) $CONNECTION_TIMEOUT = 10; // Local file to store XML // This file MUST be writable by web server // You should create a blank file and CHMOD it to 666 $LOCAL_XML_FILENAME = "local_387407.xml"; if( !file_exists($LOCAL_XML_FILENAME) ) die("Script error: $LOCAL_XML_FILENAME does not exist. Please create a blank file named $LOCAL_XML_FILENAME."); if( !is_writable($LOCAL_XML_FILENAME) ) die("Script error: $LOCAL_XML_FILENAME is not writable. Please set write permissions on $LOCAL_XML_FILENAME."); if( filemtime($LOCAL_XML_FILENAME) < (time() - 3600) || filesize($LOCAL_XML_FILENAME) < 20) { $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ""; $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""; tla_updateLocalXML("http://www.text-link-ads.com/xml.php?inventory_key=XCR4VEO3EI0LXICYPFGC&referer=" . urlencode($request_uri) . "&user_agent=" . urlencode($user_agent), $LOCAL_XML_FILENAME, $CONNECTION_TIMEOUT); } $xml = tla_getLocalXML($LOCAL_XML_FILENAME); $arr_xml = tla_decodeXML($xml); if ( is_array($arr_xml) ) { echo "\n
      \n"; for ($i = 0; $i < count($arr_xml['URL']); $i++) { if( isset($arr_xml['PostID'][$i]) && $arr_xml['PostID'][$i] > 0 ) continue; echo "
    • ".$arr_xml['BeforeText'][$i]." ".$arr_xml['Text'][$i]." ".$arr_xml['AfterText'][$i]."
    • \n"; } echo "
    "; } } function tla_updateLocalXML($url, $file, $time_out) { if($handle = fopen($file, "a")){ fwrite($handle, "\n"); fclose($handle); } if($xml = file_get_contents_tla($url, $time_out)) { $xml = substr($xml, strpos($xml, '(.*?)', '"'); $n = 0; while (isset($out[$n])) { $retarr[$out[$n][1]][] = str_replace($search_ar, $replace_ar,html_entity_decode(strip_tags($out[$n][0]))); $n++; } return $retarr; } tla_ads(); {/php}
{/if}{/if}
", , "/home/ce73/public_html/applenewsnow/templates_c//%%A1^A1E^A1EADC17%%content.tpl.inc") /home/ce73/public_html/applenewsnow/classes/smarty/Smarty.class.php [1417] Smarty->_compile_resource("content.tpl", "/home/ce73/public_html/applenewsnow/templates_c//%%A1^A1E^A1EADC17%%content.tpl.php") /home/ce73/public_html/applenewsnow/classes/smarty/Smarty.class.php [1249] Smarty->fetch("content.tpl", , , true) /home/ce73/public_html/applenewsnow/classes/smarty/Smarty.class.php [1101] Smarty->display("content.tpl") /home/ce73/public_html/applenewsnow/index.php [285]