101 lines
2.9 KiB
PHP
101 lines
2.9 KiB
PHP
<?php
|
|
|
|
/* $Id: albums.php 42 2009-01-29 04:55:14Z john $ */
|
|
|
|
$page = "general";
|
|
include "header.php";
|
|
|
|
|
|
// DISPLAY ERROR PAGE IF NO OWNER
|
|
if( !$owner->user_exists )
|
|
{
|
|
$page = "error";
|
|
$smarty->assign('error_header', 639);
|
|
$smarty->assign('error_message', 828);
|
|
$smarty->assign('error_submit', 641);
|
|
include "footer.php";
|
|
}
|
|
|
|
// ENSURE ALBUMS ARE ENABLED FOR THIS USER
|
|
if( $user->user_info["user_level_id"]!=2 &&$user->user_info['user_level_id'] != 7)
|
|
{
|
|
header("Location: ".$url->url_create('profile', $owner->user_info['user_username']));
|
|
exit();
|
|
}
|
|
function general(){
|
|
global $error, $name, $user, $privacy, $type, $database, $message, $owner, $url;
|
|
echo $message;?>
|
|
|
|
<?php
|
|
$query=$database->database_query("SELECT * FROM batelist WHERE userid='".$owner->user_info["user_id"]."'");
|
|
while($row=$database->database_fetch_array($query)){
|
|
?>
|
|
|
|
<div class="album" style="width: 500px;">
|
|
<table cellpadding="0" cellspacing="0" width="100%">
|
|
<tbody><tr>
|
|
<td class="album_left" width="1">
|
|
<div class="album_photo" style="width: 140px; height: auto;">
|
|
<a href="https://bateworld.com/batelist.php?user=<?php echo $owner->user_info["user_username"];?>&id=<?php echo $row["id"];?>">
|
|
<?php
|
|
if($row["type"]==1){
|
|
$query1=$database->database_query("SELECT * FROM batelistcontent, se_videos WHERE objectid=video_id AND batelistid='".$row["id"]."' LIMIT 1");
|
|
$row1=$database->database_fetch_array($query1)
|
|
?>
|
|
<img src="<?php echo video_dir($row1["owner"]).$row1["video_id"]."_thumb.jpg";?>" border="0" width="140"><?php
|
|
}
|
|
else{
|
|
$query1=$database->database_query("SELECT * FROM batelistcontent, se_media WHERE objectid=media_id AND batelistid='".$row["id"]."' LIMIT 1");
|
|
$row1=$database->database_fetch_array($query1)
|
|
?>
|
|
<img src="<?php echo $url->url_userdir($row1["owner"]).$row1["media_id"].".".$row1["media_ext"];?>" border="0" width="140"><?php
|
|
}
|
|
?></a></div>
|
|
|
|
|
|
</td>
|
|
<td class="album_right">
|
|
<div class="album_title">
|
|
<a href="https://bateworld.com/batelist.php?user=<?php echo $owner->user_info["user_username"];?>&id=<?php echo $row["id"];?>"><?php echo $row["name"];?></a>
|
|
|
|
<div style="margin-bottom: 8px;">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody></table>
|
|
</div>
|
|
|
|
|
|
<div id="seBlogRow_7452" class="blog_list1">
|
|
<table cellpadding="0" cellspacing="0" width="100%">
|
|
<tbody><tr>
|
|
<!--<td style="padding-top: 2px; vertical-align: top;" width="1">
|
|
<input type="checkbox" name="delete_blogentries[]" value="<?php echo $row["id"];?>">
|
|
</td>-->
|
|
<td style="padding-left: 5px;">
|
|
<div style="font-size: 13px; font-weight: bold;">
|
|
|
|
|
|
</a>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
</tbody></table>
|
|
</div>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
// SET GLOBAL PAGE TITLE
|
|
$global_page_title[0] = 1000160;
|
|
$global_page_title[1] = $owner->user_displayname;
|
|
$global_page_description[0] = 1000161;
|
|
$global_page_description[1] = $owner->user_displayname;
|
|
|
|
// ASSIGN SMARTY VARIABLES AND DISPLAY ALBUMS PAGE
|
|
//$smarty->assign('albums', $album_array);
|
|
//$smarty->assign('total_albums', $total_albums);
|
|
include "footer.php";
|
|
?>
|