Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   TSSE 1.3.9 (http://www.bvlist.com/showthread.php?t=5)

rame 2nd November 2009 20:53

thx daffy, the short tag was off, now its work

very thanks to all you helped me here =)

greetz

robertionut95 27th December 2009 20:06

TS v.1.3.9 INVALID ID
 
So here is my problem,i got this when i invite to register a friend.

Code:

Error

Invalid ID! For security  reason, we have been logged this action.
TS v.1.3.9 FINAL by xam (based on TBDEV) (c) 2009 ****.**

[Executed  in  0.000048 seconds with 0 queries!]

What should i do to solve it?

danield 19th January 2010 22:07

I got 1 problem the user is not connectable

Code:

Connectable: No

valaki 9th June 2010 14:45

thank you very much

outlander 9th October 2010 17:22

on the setup page I get this error why ?

what should I do ?


http://img148.imageshack.us/img148/4628/53817071.png

and what causes this

http://img818.imageshack.us/img818/3636/91906048.png

ultrafranco 9th October 2010 18:08

install php5 on your server and you have to specified a valid user and password for your database

outlander 9th October 2010 18:29

@ultra

where to specified the user and password ?

if you need my functions.php file I'll upload it to you

to show me cause I'm newbie at these sort of things


wMan 9th October 2010 18:30

install
 
Quote:

Originally Posted by outlander (Post 25013)
@ultra

where to specified the user and password ?

if you need my functions.php file I'll upload it to you

to show me cause I'm newbie at these sort of things


on install you need to put all in it password and db name so on

ultrafranco 9th October 2010 18:32

i cant remember were in this source but its shoud be in config.php or something like that replace root with your database username and just after you should have the password

outlander 9th October 2010 18:55

http://img716.imageshack.us/img716/9030/50668778.png

Code:

-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 09, 2010 at 08:45 م
-- Server version: 5.1.41
-- PHP Version: 5.3.1

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `localhost`
--

-- --------------------------------------------------------

--
-- Table structure for table `torrent`
--

CREATE TABLE IF NOT EXISTS `torrent` (
  `Browse Torrents` int(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `torrent`
--


/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Code:

# IMPORTANT: Do not edit below unless you know what you are doing!
if(!defined('IN_INSTALL'))
  die('Hacking attempt!');
 
  function validusername($username)
{
    if ($username == "")
      return false;

    // The following characters are allowed in user names
    $allowedchars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

    for ($i = 0; $i < strlen($username); ++$i)
      if (strpos($allowedchars, $username[$i]) === false)
        return false;

    return true;
}
function validemail($email) {
    return preg_match('/^[\w.-]+@([\w.-]+\.)+[a-z]{2,6}$/is', $email);
}
function mksecret($len = 20) {
    $ret = "";
    for ($i = 0; $i < $len; $i++)
        $ret .= chr(mt_rand(0, 255));
    return $ret;
}
function get_date_time ()
{
    return date("Y-m-d H:i:s");
}
function sqlerr($file = '', $line = '')
{
  print("" .
    "

SQL Error

\n" .
  "" . mysql_error() . ($file != '' && $line != '' ? "

in $file, line $line

" : "") . "
");
  die;
}
function sqlesc($value) {
    // Stripslashes
  if (get_magic_quotes_gpc()) {
      $value = stripslashes($value);
  }
  // Quote if not a number or a numeric string
  if (!is_numeric($value)) {
      $value = "'" . mysql_real_escape_string($value) . "'";
  }
  return $value;
}
function mkglobal($vars) {
    if (!is_array($vars))
        $vars = explode(":", $vars);
    foreach ($vars as $v) {
        if (isset($_GET[$v]))
            $GLOBALS[$v] = unesc($_GET[$v]);
        elseif (isset($_POST[$v]))
            $GLOBALS[$v] = unesc($_POST[$v]);
        else
            return 0;
    }
    return 1;
}
function unesc($x) {
    if (get_magic_quotes_gpc())
        return stripslashes($x);
    return $x;
}
function safe_email($email) {   
    $email = str_replace("<","",$email);
    $email = str_replace(">","",$email);
    $email = str_replace("\'","",$email);
    $email = str_replace('\"',"",$email);
    $email = str_replace("\\\\","",$email);
    return $email;
}
function check_email ($email) {
    # Check EMail Function v.02 by xam!
    if(ereg("^([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", $email))
        return true;
    else
        return false;
}
function bark($msg) {
    stdmsg("Signup Failed! (See Below)", $msg,false);
    exit;
}
function stdmsg($heading, $text, $htmlstrip = TRUE)
{
    if ($htmlstrip) {
        $heading = htmlspecialchars(trim($heading));
        $text = htmlspecialchars(trim($text));
    }
    print("
\n");
        if ($heading)
            print("

$heading

\n");
    print("
\n");
    print($text . "
\n");
}
function int_check($value) {
    if ( is_array($value) ) {
        foreach ($value as $val) int_check ($val);
    } else {
        if (!is_valid_id($value)) {
            bark("Invalid ID! For security reason, we have been logged this action.");        }           
        else
            return true;
    }
}
function is_valid_id($id)
{
  return is_numeric($id) && ($id > 0) && (floor($id) == $id);
}
  function dbconn()
{
    global $DATABASE;

    if (!@mysql_connect($DATABASE[localhost], $DATABASE[root], $DATABASE[my.pass]))
    {
      switch (mysql_errno())
      {
        case 1040:
        case 2002:
            if ($_SERVER[REQUEST_METHOD] == "GET")
                die("

The server load is very high at the moment. Retrying, please wait...

");
            else
                die("Too many users. Please press the Refresh button in your browser to retry.");
        default:
            die("[" . mysql_errno() . "] dbconn: mysql_connect: " . mysql_error());
      }
    }
    mysql_select_db($DATABASE[localhost])
        or die('dbconn: mysql_select_db: ' + mysql_error());

}
  function step ($text = '', $stepname = '', $stepnumber = '') {
      ?>
     


STEP: (/8)


\n");
}
?>

        }
  function ReadConfig ($configname) {
    if (strstr($configname, ',')) {
        $configlist = explode(',', $configname);
        foreach ($configlist as $key=>$configname) {
            ReadConfig(trim($configname));
        }
    } else {
        $configname = basename($configname);
        $path = ROOT_PATH.'config/'.$configname;
        if (!file_exists($path)) {
            die("File [".htmlspecialchars($configname)."] doesn't exist!.Before the setup starts, please ensure that you have properly configured file and directory access permissions. Please see below.chmod 777 CONFIG (config directory).chmod 777 CONFIG/main (the file which save the main settings).");
        }
        $fp = fopen($path, 'r');
        $content = '';
        while (!feof($fp)) {
            $content .= fread($fp, 102400);
        }
        fclose($fp);
        if (empty($content)) {
            if ($configname == 'XAM') {
                Header("Location: index.php");                 
                die;
            }
            return array();
        }
        $tmp        = @unserialize($content);
        if (empty($tmp)) {
            if ($configname == 'XAM') {
                Header("Location: index.php");                 
                die;               
            }
            die("Cannot read file [".htmlspecialchars($configname)."]!.Before the setup starts, please ensure that you have properly configured file and directory access permissions. Please see below.chmod 777 CONFIG (config directory).chmod 777 CONFIG/main (the file which save the main settings).");
        }
        $GLOBALS[$configname] = $tmp;
        return true;
    }
}

function WriteConfig ($configname, $config) {
    $configname = basename($configname);
    $path = ROOT_PATH.'config/'.$configname;
    if (!file_exists($path) || !is_writable ($path)) {
        die("Cannot read file [".htmlspecialchars($configname)."]!.Before the setup starts, please ensure that you have properly configured file and directory access permissions. Please see below.chmod 777 CONFIG (config directory).chmod 777 CONFIG/main (the file which save the main settings).");
    }
    $data = @serialize($config);
    if (empty($data)) {
        die("Cannot serialize file [".htmlspecialchars($configname)."]Before the setup starts, please ensure that you have properly configured file and directory access permissions. Please see below.chmod 777 CONFIG (config directory).chmod 777 CONFIG/main (the file which save the main settings).");
    }
    $fp = @fopen ($path, 'w');
    if (!$fp) {
        die("Cannot open file [".htmlspecialchars($configname)."] to save info!.Before the setup starts, please ensure that you have properly configured file and directory access permissions. Please see below.chmod 777 CONFIG (config directory).chmod 777 CONFIG/main (the file which save the main settings).");
    }
    $Res = @fwrite($fp, $data);
    if (empty($Res)) {
        die("Cannot save info in file (error in serialisation) [".htmlspecialchars($configname)."] to save info!.Before the setup starts, please ensure that you have properly configured file and directory access permissions. Please see below.chmod 777 CONFIG (config directory).chmod 777 CONFIG/main (the file which save the main settings).");
    }
    fclose($fp);
    return true;
}

function GetVar ($name) {
    if ( is_array($name) ) {
        foreach ($name as $var) GetVar ($var);
    } else {
        if ( !isset($_REQUEST[$name]) )
            return false;
        if ( get_magic_quotes_gpc() ) {
            $_REQUEST[$name] = ssr($_REQUEST[$name]);
        }
        $GLOBALS[$name] = $_REQUEST[$name];
        return $GLOBALS[$name];
    }
}

function ssr ($arg) {
    if (is_array($arg)) {
        foreach ($arg as $key=>$arg_bit) {
            $arg[$key] = ssr($arg_bit);
        }
    } else {
        $arg = stripslashes($arg);
    }
    return $arg;
}
function tr($x,$y,$noesc=0,$relation='') {
    if ($noesc)
        $a = $y;
    else {
        $a = htmlspecialchars($y);
        $a = str_replace("\n", "\n", $a);
    }
    print("
$x$a


All times are GMT +2. The time now is 08:30.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.