0) $contents = unserialize(base64_decode($contents)); else $contents = array('left'=>array(),'mid'=>array(),'right'=> array()); } else $contents = array('left'=>array(),'mid'=>array(),'right'=> array()); return $contents; } function ShowContent($data,$part){ if(count($data) == 0 || !is_array($data)) return; foreach($data[$part] as $block) { $block['content'] = html_entity_decode($block['content'], ENT_QUOTES|ENT_NOQUOTES); preg_match_all('/<\?(php|) (.*?) \?>/si', $block['content'], $matches); $eval_string = ''; if (!empty($matches[0]) && is_array($matches[0])) { foreach ($matches[0] as $k => $v) { $block['content'] = str_replace($v, "\" . eval(\"" . $matches[2][$k] . "\") . \"", $block['content']); } $block['content'] = "\"" . $block['content'] . "\""; $block['content'] = str_replace('" . ', '"; ', $block['content']); $block['content'] = str_replace('. "', '; echo "', $block['content']); $block['content'] = "echo " . $block['content'] . ";"; $eval_string = $block['content']; } echo '
'; echo '
'; if($part == "mid") echo '
'.$block['title'].'
'; else echo '
'.$block['title'].'
'; if (!empty($eval_string)) { echo '
'; eval($block['content']); echo '
'; if($part == "mid") echo '
'; else echo '
'; } else { echo '
'.$block['content'].'
'; if($part == "mid") echo '
'; else echo '
'; } echo '
'; } } //YouTube RSS function ShowYouTubeRss($url, $title, $max_items=10, $character_count) { require_once("admin/simplepie.inc"); $feed = new SimplePie(); $feed->enable_cache(false); $feed->set_feed_url($url); $feed->init(); $feed->handle_content_type(); $items = $feed->get_items(); $temp_result=array(); $max_items = $max_items+0; if($max_items<=0) $max_items = 10; $k = 0; foreach($items as $item) { $k++; if($k > $max_items) break; $mycontent=$item->get_content(); //added $get_permalink=$item->get_permalink(); $get_title=$item->get_title(); $item_time=$item->get_date('j M Y H:i'); $temp=array(); $item=$mycontent; $temp['get_permalink']=$get_permalink; $temp['get_title']=$get_title; $temp['item_time']=$item_time; $strpos = strpos($item, '
'); $rest = substr($item, $strpos); $strpos = strpos($rest, '
'); $desc1 = substr($rest, 0,$strpos); $desc1=str_replace('
',"",$desc1); $temp['desc']=strip_tags($desc1); //done if(strlen($temp['desc']) > $character_count){ $temp['desc']=substr($temp['desc'],0,$character_count); $temp['desc']=$temp['desc'].'...'; } $temp['desc'] = wordwrap($temp['desc'], 40, "
\n"); $strpos = strpos($item, 'From:'); $rest = substr($item, $strpos); $strpos = strpos($rest, '
'); $postedby = substr($rest, 0,$strpos); $postedby=str_replace('From:',"From:",$postedby); $postedby=str_replace(''); $rest = substr($item, $strpos); $strpos = strpos($rest, ''); $views = substr($rest, 0,$strpos); $views=str_replace('Views:',"Views:",$views); $views =''.$views; $temp['views']=$views;//done $strpos = strpos($item, ''); $ratings_stars = substr($rest, 0,$strpos); $temp['rating_stars']=$ratings_stars; //done $pos = strripos($item, 'ratings'); $test1 = substr($item,0, $pos); $pos = strripos($test1, '
'); $ratings = substr($test1, $pos); $ratings=str_replace('
',"",$ratings); $temp['ratings']=$ratings; $strpos = strpos($item, 'Time:'); $rest = substr($item, $strpos); $strpos = strpos($rest, ''); $time = substr($rest, 0,$strpos); $time=str_replace('Time:',"Time:",$time); $temp['time']=$time; //done $strpos = strpos($item, 'More in'); $rest = substr($item, $strpos); $strpos = strpos($rest, ''); $moreinfo = substr($rest, 0,$strpos); $moreinfo=str_replace('More in',"",$moreinfo); $moreinfo=str_replace('
'); $rest = substr($item, $strpos); $strpos = strpos($rest, '
'); $image = substr($rest, 0,$strpos); $image=str_replace('
',"",$image); $image=str_replace(''; echo '
'; echo '
'.$title.'
'; $content = ''; $max_items = $max_items+0; //$item->get_date('j M Y H:i') foreach($temp_result as $item) { $mycontent='
'.$item['image'].'
'.$item['desc'].'
'.$item['postedby'].'
'.$item['views'].'
'.$item['rating_stars'].'
Ratings: '.$item['ratings'].'
'.$item['time'].' More in '.$item['moreinfo'].'
'; $content .= "
".$item['item_time']."
".$mycontent."
"; } echo '
'.$content.'
'; echo '
'; echo '
'; } function DisplayYouTubeRss() { global $youtube_rss_arr; if(empty($youtube_rss_arr[0])) { //show the selected RSS feed ShowYouTubeRss($youtube_rss_arr[5], $youtube_rss_arr[1], $youtube_rss_arr[2],$youtube_rss_arr[6]); } else { //show the custom rss feed $youtube_rss_arr[0]="http://gdata.youtube.com/feeds/base/videos?q=".urlencode($youtube_rss_arr[0])."&client=ytapi-youtube-search&v=2"; ShowYouTubeRss($youtube_rss_arr[0], $youtube_rss_arr[1], $youtube_rss_arr[2],$youtube_rss_arr[6]); } } //YouTube RSS function LoadData($part){ ShowContent(ReadDatabase(TEXT_DB), $part); } $filename="admin/settings/add_category.txt"; if($handle = fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $category_arr=explode("#_1_#",$contents); } $filename="admin/settings/adsense_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $adsense_arr=explode("#_1_#",$contents); } $filename="admin/settings/affiliate_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $affiliate_arr=explode("#_1_#",$contents); } $filename="admin/settings/clickbank_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $clickbank_arr=explode("#_1_#",$contents); } $filename="admin/settings/clickbank_ads_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $clickbank_ads_arr=explode("#_1_#",$contents); } $filename="admin/settings/ebay_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $ebay_arr=explode("#_1_#",$contents); } $filename="admin/settings/ebay_search.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $ebays_arr=explode("#_1_#",$contents); } $filename="admin/settings/optin_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $optin_arr=explode("#_1_#",$contents); } $filename="admin/settings/paydotcom_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $paydotcom_arr=explode("#_1_#",$contents); } $filename="admin/settings/rss_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $rss_arr=explode("#_1_#",$contents); } $filename="admin/settings/youtube_rss_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $youtube_rss_arr=explode("#_1_#",$contents); } $current_file_name = basename($_SERVER['REQUEST_URI'], ".php"); $filename="admin/settings/seo/$current_file_name.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $seo_arr=explode("#_1_#",$contents); } $filename="admin/settings/theme_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $theme_arr=explode("#_1_#",$contents); } $filename="admin/settings/website_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $website_arr=explode("#_1_#",$contents); } $filename="admin/settings/seo_settings.txt"; if($handle = @fopen($filename, 'r')) { $contents = fread($handle, filesize($filename)); fclose($handle); $track_arr=explode("#_1_#",$contents); } ?> <?php echo $seo_arr[0]; ?>
 
 
                     
 
   
     
  '; $arr=explode(":::",$argument_arr[1]); echo $arr[1]; } else { ?>main_page.php?id=">  
     
     
   
 
 
 
 
     
   
     
  '; $arr=explode(":::",$argument_arr[1]); echo $arr[1]; } else { ?>page.php?id=">  
     
     
   
 


 
     
   
 

 
     
   
     
   
 

Name

Email

 
     
   
 

Name

Email

 
     
   
 

Name

Email

 
     
   
 

Name

Email