31 lines
939 B
PHP
31 lines
939 B
PHP
|
|
<?php
|
||
|
|
$page = "general";
|
||
|
|
include "header.php";
|
||
|
|
|
||
|
|
function general(){
|
||
|
|
global $database;
|
||
|
|
$query=$database->database_query("SELECT * FROM se_users WHERE user_photo !='' AND thumb='0' LIMIT 1000");
|
||
|
|
while($row=$database->database_fetch_array($query))
|
||
|
|
{
|
||
|
|
$user_id=$row["user_id"];
|
||
|
|
$user_subdir = $user_id+999-(($user_id-1)%1000);
|
||
|
|
$userdir = "./uploads_user/$user_subdir/$user_id/";
|
||
|
|
$explode=explode(".", $row["user_photo"]);
|
||
|
|
|
||
|
|
$new_photo = new se_upload();
|
||
|
|
$thumb_dest=$userdir.$explode[0]."_thumb.".$explode[1];
|
||
|
|
echo $thumb_dest."<br />
|
||
|
|
";
|
||
|
|
$new_photo->upload_thumb1($thumb_dest);
|
||
|
|
|
||
|
|
//$database->database_query("UPDATE se_users SET thumb='1' WHERE user_id='".$row["user_id"]."'");
|
||
|
|
|
||
|
|
//else{echo "R";}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
// ASSIGN SMARTY VARS AND INCLUDE FOOTER
|
||
|
|
//$smarty->assign('forumcats', $forumcat_array);
|
||
|
|
//$smarty->assign('forum_is_moderator', $forum_is_moderator);
|
||
|
|
include "footer.php";
|
||
|
|
?>
|