Beispiel #1
0
    $result_search3[] = $each_comment;
}
$page_title = ucfirst($title) . ' Blog';
// START SECURITY BLOCK
$usercheck = new LoadPermissions('', $blog_id, 'blogs');
$usercheck->CheckPermissions();
$edit_on = $usercheck->ReturnVars('edit_on');
$delete_on = $usercheck->ReturnVars('delete_on');
// END SECURITY BLOCK
//print_r($usercheck);
//update counter
$views_counter = $number_of_views + 1;
$sql = "UPDATE blogs SET number_of_views = {$views_counter} WHERE indexer = {$blog_id}";
$query = @mysql_query($sql);
//record view time in views_tracker table
@media_views_tracker($blog_id, 'blogs');
// update last read time
$sql = "UPDATE blogs SET viewtime = NOW() WHERE indexer = {$blog_id}";
$query = @mysql_query($sql);
// ajax pagination reuseable
$page = $_GET['page'];
$page = mysql_real_escape_string($page);
if (empty($page)) {
    $page = 1;
}
$limit = $config["comment_page_limits"];
$limit_value = $page * $limit - $limit;
$totalrows = $text_comments;
$config['ajax_page_previous'] = $config["pagination_previous"];
$config['ajax_page_next'] = $config["pagination_next"];
// PREVIOUS
Beispiel #2
0
$result = @mysql_fetch_array($query);
$active = $result['approved'];
$public_private = $result['public_private'];
$allow_embedding = $result['allow_embedding'];
$member_id = $result['user_id'];
$date_uploaded = $result['date_uploaded'];
$num_views = $result['number_of_views'];
//disply the "video details" tabled in inner_play.htm hidden comments; <!--[onload_19;block=tr;when [var.showdetails]=1;comm]-->
if (!empty($result)) {
    $showdetails = 1;
} else {
    $error_height = '430px;';
    $message_2 = $config['error_26'] . ' - ' . $config['error_11'];
}
//record view time in views_tracker table
@media_views_tracker($vid, 'videos');
if ($proceed == false) {
    $codes = $codes_internal;
    $error_code = errorcodes($codes);
    // tmp test
    if ($error_height == '') {
        if (!empty($error_code)) {
            $blk_notification = $error_code['error_display'];
            $message_type = $error_code['error_type'];
            $error_message = $error_code['error_message'];
        }
    }
    $template = "themes/{$user_theme}/templates/main_1.htm";
    $inner_template1 = "themes/{$user_theme}/templates/inner_notification.htm";
    $TBS = new clsTinyButStrong();
    $TBS->NoErr = true;
Beispiel #3
0
if ($member_username == '') {
    $sql = "UPDATE audios SET user_id = {$member_id_a} WHERE indexer = {$audio}";
    $query = @mysql_query($sql);
    $sql = "SELECT * FROM audios WHERE indexer = {$audio} AND approved = 'yes'";
    $query = @mysql_query($sql);
    $result = @mysql_fetch_array($query);
    $active = $result['approved'];
    $public_private = $result['public_private'];
    $allow_embedding = $result['allow_embedding'];
    $member_id = $result['user_id'];
}
if (!empty($result)) {
    $showdetails = 1;
}
//record view time in views_tracker table
@media_views_tracker($audio, 'audios');
if ($active != "yes" || empty($result)) {
    $codes_internal = 111;
    $proceed = false;
}
if ($public_private == "private" && $user_id != $member_id) {
    generic_error($config['error_12']);
    //$codes_internal = 112;
    $proceed = false;
}
if ($allow_embedding == 'no') {
    $show_embed = 0;
} else {
    $show_embed = 1;
}
//show
Beispiel #4
0
 $image_url = $config['site_base_url'] . '/addons/albums/images/' . $image_view;
 $album_images[] = $image_url;
 //get members personal information
 $sql = "SELECT user_name, last_seen, date_created FROM member_profile WHERE user_id = {$member_id}";
 $query = @mysql_query($sql);
 $result = @mysql_fetch_array($query);
 $member_username = $result['user_name'];
 // last seen / active
 $db_date = $result['last_seen'];
 if ($db_date == '0000-00-00 00:00:00') {
     $db_date = $result['date_created'];
 }
 $change_date = dateTimeDiff($db_date);
 $last_seen = $change_date;
 //record view time in views_tracker table
 @media_views_tracker($image_id, 'images');
 //______PERMISSIONS CHECK AUDIO__________________________________________________________________________
 $usercheck = new LoadPermissions('', $image_id, 'images');
 //($user_id, $content_id, $content_type);
 $usercheck->CheckPermissions();
 $edit_image = $usercheck->ReturnVars('edit_on');
 $delete_image = $usercheck->ReturnVars('delete_on');
 //________________________________________________________________________________________________________
 if ($tags != "") {
     $tags_exploded = explode(" ", $tags);
     $i = 0;
     while (isset($tags_exploded[$i])) {
         $tags_each = '<a href="search.php?type=images&keyword=' . $tags_exploded[$i] . '">' . $tags_exploded[$i] . '</a>&nbsp;&nbsp;';
         $tags_string = $tags_string . $tags_each;
         $i++;
     }
Beispiel #5
0
 }
 // Members Online Status
 $sql = "SELECT * FROM online WHERE logged_in_id = {$member_id}";
 $my_online_status = @mysql_num_rows(mysql_query($sql));
 if ($my_online_status > 0) {
     // there is a multiple IP address issue hence use of '>'
     $online_status = '<img src="images/icon_online.gif" alt="status" width="8" height="8" border="0" align="absmiddle" />';
 } else {
     $online_status = '<img src="images/icon_offline.gif" alt="status" width="8" height="8" border="0" align="absmiddle" />';
 }
 // Update View
 $views_counter = $number_of_views + 1;
 $sql2 = "UPDATE member_profile SET number_of_views = {$views_counter} WHERE user_id = {$member_id}";
 $query2 = @mysql_query($sql2);
 //record view time in views_tracker table
 @media_views_tracker($member_id, 'member_profile');
 // Members Picture
 $sql = "SELECT * FROM pictures WHERE user_id = {$member_id}";
 $result1 = @mysql_query($sql);
 if (@mysql_num_rows($result1) != 0) {
     $result1 = @mysql_fetch_array($result1);
     $result1_existing_file = $result1['file_name'];
     $result1_approved = $result1['approved'];
     if ($result1_approved == "yes") {
         // show current picture
         $result1_mypicture = $config['site_base_url'] . '/pictures/' . $result1_existing_file;
         $image_thumb = $base_path . '/pictures/' . $result1_existing_file;
     } else {
         // show place holder image  for image "awaiting approval"
         $result1_mypicture = $config['site_base_url'] . "/themes/{$user_theme}/images/placeholder.gif";
         $image_thumb = $base_path . "/themes/{$user_theme}/images/placeholder.gif";