10 lines
479 B
PHP
10 lines
479 B
PHP
|
|
<?
|
||
|
|
session_start();
|
||
|
|
include("../../config.php");
|
||
|
|
$sql=mysql_connect($sugar_config['dbconfig']['db_host_name'],$sugar_config['dbconfig']['db_user_name'],$sugar_config['dbconfig']['db_password']);
|
||
|
|
mysql_select_db($sugar_config['dbconfig']['db_name']);
|
||
|
|
$z="update users set tree_width='".str_replace("px","",$_GET['width'])."',tree_height='".str_replace("px","",$_GET['height'])."' where id='".$_SESSION['authenticated_user_id']."'";
|
||
|
|
mysql_query($z);
|
||
|
|
mysql_close($sql);
|
||
|
|
?>
|