besttop clones toplists

Started on the old forum in February 2010 · view the original in the archive · old links redirect here

28 replies · 3,667 views · started 16 years ago · 1 min read

TL;DR · summary of 28 replies
  • Rekon was getting an error and needed help fixing it.
  • Chris4u suggested checking the database details in /inc/config.inc.php.
  • Snoopywap solved their issue by uploading a custom .htaccess file.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

17 participants
Chris4u Junior · 10 posts #22

djmob wrote: when register site get code and send his to code then code not working nothing open http://livetop.in/in.php?uid=29

Ok bro copy this page & replace your in.php with this code

<?php
///////////////b-o-h-e-m-i-a/////////
//////////////wapadmin.info////////
///////n is lucky for me/////////
include 'config.inc.php';
include 'functions.inc.php';
require('top.php');
	include "config.php";
//---------------------------------------------------------------
error_reporting(0);
ini_set ('session.use_cookies', 0);
ini_set ('session.use_trans_sid', 1);
session_name('sid');
session_start();
connect_to_db();

//---------------------------------------------------------------

		  $today  = date("Ymd");
          @mysql_query("UPDATE weeks,users SET weeks.cat=users.cat WHERE weeks.uid=users.uid");
          $res=mysql_query("SELECT count(`cat`) FROM `weeks` WHERE `host` > 0 and `date`=$today");
			$cnt = mysql_fetch_row($res);
			$c = $cnt[0];
		

			//Check input id
			if (!empty($_GET['uid']))
			{
				$uid=(int)$_GET['uid'];
                $uid=@mysql_escape_string($uid);
				// Check for your account 
				$result = mysql_query("SELECT site_name,link,admin,info,cat FROM users WHERE uid=$uid");
				$row=mysql_fetch_array($result);
				if (!empty($row))
				{
					//===================== It
					$week_day = date("w");
					$today = date("Ymd");
					//  Count
					$result = mysql_query("SELECT `in` FROM `weeks` WHERE `date`=$today AND `uid`=$uid LIMIT 1");
					$row=mysql_fetch_array($result);
					if (empty($row))
					{
					    $dayNext =$week_day + 7;
					    if ($dayNext > 7){
					        $dayNext-=7;
					    }
					    $cntDay=8-$dayNext;
					    $nextMonday=date("Ymd",mktime(0,0,0,date("m"),date("d")+$cntDay));
					    @mysql_query("INSERT INTO `weeks` VALUES ('',$uid,$nextMonday,$today,$week_day,0,0,0,0)");
					    $in_count = 0;
					} else{
							$in_count = $row['in'];
						}
					$in_count++;
					// Save 
					@mysql_query("UPDATE `weeks` SET `in`=$in_count WHERE `date`=$today AND `uid`=$uid LIMIT 1");
					
					$today = date("Ymd");
					$hour = date("H");
					
								
				}
			}
			  

$host  = $_SERVER['HTTP_HOST'];
$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');

header("Location: http://$host$uri/");

		
	
?>

After done let me know wether its working

Added after 8 minutes:

rock wrote: I've done this but still not working 🙁 i think my server dont support this script..

Nope bro your still not doing sum thing right with DATABASE DETAILS.

function connect_to_db()
{
                                           [SIZE="4"] //CHECK WETHER THIS IS SET TO (localhost) [/SIZE]
	$dbh = @mysql_connect ("localhost", USER_DB, PASS_DB) or die ('Sorry!!!');
	mysql_select_db (DB);
}

Or else if you have entered the DB details correctly then you havent setup the DATABASE Correctly... Eg: not added the databse to a user etc... may be thats the reason its not connecting to the database

Rekon Developer · 215 posts #23

Chris i have emailed u something pls check it ..

Girls are like internet domain name, The girls i like are already taken!

djmob Junior · 10 posts #25

no bro its not working plz sove it and help me

Chris4u wrote: Ok bro copy this page & replace your in.php with this code

<?php
///////////////b-o-h-e-m-i-a/////////
//////////////wapadmin.info////////
///////n is lucky for me/////////
include 'config.inc.php';
include 'functions.inc.php';
require('top.php');
	include "config.php";
//---------------------------------------------------------------
error_reporting(0);
ini_set ('session.use_cookies', 0);
ini_set ('session.use_trans_sid', 1);
session_name('sid');
session_start();
connect_to_db();

//---------------------------------------------------------------


		  $today  = date("Ymd");
          @mysql_query("UPDATE weeks,users SET weeks.cat=users.cat WHERE weeks.uid=users.uid");
          $res=mysql_query("SELECT count(`cat`) FROM `weeks` WHERE `host` > 0 and `date`=$today");
			$cnt = mysql_fetch_row($res);
			$c = $cnt[0];
		

			//Check input id
			if (!empty($_GET['uid']))
			{
				$uid=(int)$_GET['uid'];
                $uid=@mysql_escape_string($uid);
				// Check for your account 
				$result = mysql_query("SELECT site_name,link,admin,info,cat FROM users WHERE uid=$uid");
				$row=mysql_fetch_array($result);
				if (!empty($row))
				{
					//===================== It
					$week_day = date("w");
					$today = date("Ymd");
					//  Count
					$result = mysql_query("SELECT `in` FROM `weeks` WHERE `date`=$today AND `uid`=$uid LIMIT 1");
					$row=mysql_fetch_array($result);
					if (empty($row))
					{
					    $dayNext =$week_day + 7;
					    if ($dayNext > 7){
					        $dayNext-=7;
					    }
					    $cntDay=8-$dayNext;
					    $nextMonday=date("Ymd",mktime(0,0,0,date("m"),date("d")+$cntDay));
					    @mysql_query("INSERT INTO `weeks` VALUES ('',$uid,$nextMonday,$today,$week_day,0,0,0,0)");
					    $in_count = 0;
					} else{
							$in_count = $row['in'];
						}
					$in_count++;
					// Save 
					@mysql_query("UPDATE `weeks` SET `in`=$in_count WHERE `date`=$today AND `uid`=$uid LIMIT 1");
					
					$today = date("Ymd");
					$hour = date("H");
					
								
				}
			}
			  



$host  = $_SERVER['HTTP_HOST'];
$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');

header("Location: http://$host$uri/");

		
	
?>

After done let me know wether its working

Added after 8 minutes:

Nope bro your still not doing sum thing right with DATABASE DETAILS.

function connect_to_db()
{
                                            //CHECK WETHER THIS IS SET TO (localhost) 
	$dbh = @mysql_connect ("localhost", USER_DB, PASS_DB) or die ('Sorry!!!');
	mysql_select_db (DB);
}

Or else if you have entered the DB details correctly then you havent setup the DATABASE Correctly... Eg: not added the databse to a user etc... may be thats the reason its not connecting to the database

akela Senior · 305 posts #26

Both script are working on our side. but now i have removed the portal because my these portal site uses more cpu Resource and my site has been suspended. ,many site was added on my both portal. so both script are consumed more cpu resources. if you have vps then its ok.

External image (may be gone) Unlimited Web Hosting service. 99.99 $ uptime Guarantee. Free Trail Available for 30 days. Free Script | Null script| Php | Unlimited Web Hosting| Unlimited Space | Unlimited Bandwidth| Unlimited Domain| $3/m Unlimited Space | Unlimited Bandwidth|5 Domain| $2/m 10 GB Space | 100 GB Bandwidth| 1 Domain| $1/m FFMPEG| FREE SCRIPT | FREE SITE BUILDER |LIVE SUPPORT [Timewebhosting.com On Web Hosting| Unlimited Web Hosting](http://www…

Chris4u Junior · 10 posts #28

First of all i must say this which i forgot before,, This is not a BestTop.mobi - Top Mobile Sites clone @ all.. its only a CSS Clone from BestTop.mobi - Top Mobile Sites

djmob wrote: when register site get code and send his to code then code not working nothing open LiveTop.IN | The Best traffic sender toplist

U mean when we click http://livetop.in/in.php?uid=29 its not Opening or Redirecting??.. Or empty page is showing up??

but i when i clicked this link LiveTop.IN | The Best traffic sender toplist its working & redirecting fine with no errors.... If thats not the error your getting make me clear abt the ERROR or show me the error so i can fiuger it out

Added after 36 minutes:

snoopywap wrote: I have problem , beacouse if you register site only visible in TOP 100, but invisible in categories, why??? wtop.me | The Best traffic sender toplisthttp://wtop.me/topall.php?sid=eaeqo75lf9rmqn1i4va5hlhbh6

Did you edit the shortcat.php Page?? if so then i think u might have messed up something....... Coz that page in the script is working fine.... download the script again and Replace the shortcat.php and see how it goes

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close