include '../mainfile.php'; include_once('config.php'); include_once($full_path.'functions.php'); include '../header.php'; if( $xoopsUser ) { $userid = $xoopsUser->getVar('uid'); $username = $xoopsUser->getVar('uname'); } else { $userid = '0'; $username = 'Anonymous'; } $tgdb = mysql_connect($tgdbHost, $tgdbUser, $tgdbPass) or die(mysql_error()); mysql_select_db($tgdbName, $tgdb); $config = getConfig(); cleanDb($config['tracking_days']); generateTextFile($config); $delete_result = mysql_query("delete from tg_ref_cur"); $opt_result = mysql_query("optimize table tg_ref_cur"); $ref_result = mysql_query("select max(hit_id) as hit_id, hits.url as url, sum(hits_out) as hits_out, count(*) as hits_in, app.alias as alias, app.forward as forward from tg_ref_hits hits, tg_ref_approved app where hits.url = app.url group by url having hits_in >= ".$config['min_hits']." order by hits_in desc LIMIT ".$config['full_per_page']); $num_rows = mysql_num_rows($ref_result); $cur_count = 1; $col_count = 1; echo '
'; ?> if ($alias == "") { $link_text = $short_url; } else { $link_text = $alias; } echo $link_text; ?> if($cur_count != $num_rows) echo ' -
'; else echo ''; // Insert Current List $insert_result = mysql_query("insert into tg_ref_cur (id, click_id, link_text, hits_in, hits_out) values ('".$cur_count."', '".$ref_row['hit_id']."', '".$link_text."', '".$ref_row['hits_in']."', '".$ref_row['hits_out']."')"); $cur_count++; } echo '
Would you like for your link to appear on every single page of playZgame?
Well I will tell you how, and in fact it is very SIMPLE.
All you have to do is send traffic to ANY page on playZgame and our servers
will pick up your site and add you right away to the list.
It is that simple.
The more traffic you send the higher your link goes up
on the list resulting in more traffic being sent back to your site.
So try and send as much traffic as you can!
Linkage "Free Online Games"
All others ways to link with us are discribed here.
As soon as your link will be implemented on your site or blog and then validated on our database of referrers you will appear at least on the page All referrers and if you bring a high level of traffic to playZgame, you will appear sitewide (on all pages of playZgame).
It is free and easy... so just try it !