Ok thanks @billy
besttop clones toplists
Collapse
X
-
Im getting an error pls help me guys
check http://waptopi.tkGirls are like internet domain name, The girls i like are already taken!
Comment
-
heelo sir when i register site than get code and did not open site pages http://livetop.in/in.php?uid=29
Comment
-
Originally posted by rock View PostIm getting an error pls help me guys
check http://waptopi.tk
check your database details are setup correctly then it will work
Added after 18 minutes:
Originally posted by rock View PostIm getting an error pls help me guys
check http://waptopi.tk
check these lines are correct in your /inc/config.inc.php
define ('DB', 'YOUR DATABASE NAME');
define ('USER_DB', 'YOUR DATABASE USER NAME');
define ('PASS_DB', 'YOUR DATABASE PASSWORD');
otherwise you wont be connected 2 the database thats y u get the error
in /inc/0functions.inc.php
### ?????????? ? MySQL
function connect_to_db()
{
$dbh = mysql_connect ("sql109.oskol.in", USER_DB, PASS_DB) or die ('Sorry!!!'); // if cant connect to database it will how u this msg
mysql_select_db (DB);
}Last edited by Chris4u; 25.12.10, 17:27.
Comment
-
when register site get code and send his to code then code not working nothing open http://livetop.in/in.php?uid=29
Comment
-
Originally posted by djmob View Postwhen register site get code and send his to code then code not working nothing open http://livetop.in/in.php?uid=29
PHP 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/");
?>
Added after 8 minutes:
Originally posted by rock View PostI've done this but still not working i think my server dont support this script..
PHP Code: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 databaseLast edited by Chris4u; 26.12.10, 04:46.
Comment
-
I have problem , beacouse if you register site only visible in TOP 100, but invisible in categories, why??? wtop.me | The Best traffic sender toplist
Comment
-
no bro its not working plz sove it and help me
Originally posted by Chris4u View PostOk bro copy this page & replace your in.php with this code
PHP 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/");
?>
Added after 8 minutes:
Nope bro your still not doing sum thing right with DATABASE DETAILS.
PHP Code: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
Comment
-
Originally posted by snoopywap View PostI have problem , beacouse if you register site only visible in TOP 100, but invisible in categories, why??? wtop.me | The Best traffic sender toplist
Any help ???
Comment
-
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
Originally posted by djmob View Postwhen register site get code and send his to code then code not working nothing open LiveTop.IN | The Best traffic sender toplist
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:
Originally posted by snoopywap View PostI have problem , beacouse if you register site only visible in TOP 100, but invisible in categories, why??? wtop.me | The Best traffic sender toplist
Last edited by Chris4u; 30.12.10, 06:21.
Comment
-
Originally posted by snoopywap View PostI have problem , beacouse if you register site only visible in TOP 100, but invisible in categories, why??? wtop.me | The Best traffic sender toplist
Comment
Comment