Location: PHPKode > projects > H-tracker > take-theme.php
<?
//
//  H-Tracker v0.2
//    http://h-tracker.org
//    Based on TorrentTrader (http://www.torrenttrader.org)
//
//
require_once("backend/functions.php");
require_once("backend/phpbb2Bridge.php");
dbconn();
loggedinonly(); 

$set = array();

$updateset = array();
$stylesheet = $_POST["stylesheet"];
$language = $_POST["language"];

if (is_valid_id($stylesheet))
  $updateset[] = "stylesheet = '$stylesheet'";

mysql_query("UPDATE users SET " . implode(",", $updateset) . " WHERE id = " . $CURUSER["id"]);
if (is_valid_id($stylesheet))
{
    update_phpBB2style ($CURUSER["username"],$stylesheet);
}  
if (is_valid_id($language))
  $updateset[] = "language = '$language'";

mysql_query("UPDATE users SET " . implode(",", $updateset) . " WHERE id = " . $CURUSER["id"]);
 
$url = $_SERVER['HTTP_REFERER'];
header("Location: $url");
?>
Return current item: H-tracker