www.gusucode.com > 仿51.com的php源码 1.1 > User/PhotoUploadNormal.php

    <?php
include "CheckLogined.php"; 
require_once("GDImage.inc.php"); 
include "../include/dbclass.php";
$db=new DbConn();
include "functions.php";
include "user.php";
$uid=$_COOKIE['uid'];
$globalvars->set_vars();
$user_dat = $user->process_user($globalvars);

include "upload.php";
$imgfunction = new uploads();
//$imgfunction->upload($user_dat, $globalvars);
if($_GET["type"]=="2")
{
$imgfunction->new_upload_photo($user_dat, $globalvars);
}
if($_GET["type"]=="Photo"|| $_GET["type"]=="Image")
{
$user=$_GET["user"];
if($user!=$uid)
{
echo "false";
exit();
}
//echo "OK";
//exit();

$imgfunction->upload_photo($user_dat, $globalvars);



}

?>