Example #1
0
// Copyright reserved                                                                //
///////////////////////////////////////////////////////////////////////////////////////
include_once 'classes/config.php';
include_once 'classes/sessions.php';
include_once 'classes/permissions.php';
// load required javascripts used in main_1.htm
$rating_update = 1;
$ahah = 1;
$thickbox = 1;
$greybox = 1;
$load_ajax = 1;
$referer = $_SERVER['HTTP_REFERER'];
$wrap_limit = 80;
$blog_id = (int) mysql_real_escape_string($_GET['id']);
$show_v = 0;
$tag_cloud = make_tag_cloud('blogs');
$tag_cloud_block = $tag_cloud[1];
$load_ajax = 1;
$small_block_background = $config['color_tellafriend'];
// this is per each template from config.inc.php advanced config settings
$page_display_small_width = $config['read_blog_member_thumb_width'];
// 65
// declare media type for ratings
$media = 'blogs';
if ($user_id == "") {
    $ajax_rating = pullRating($media, $blog_id, false, true, true, 'novote');
} else {
    $ajax_rating = pullRating($media, $blog_id, true, false, true, $user_id);
}
include_once 'includes/enabled_features.php';
// get blog categories
Example #2
0
<?php

///////////////////////////////////////////////////////////////////////////////////////
// PHPmotion                                                http://www.phpmotion.com //
///////////////////////////////////////////////////////////////////////////////////////
// License: You are not to sell or distribute this software without permission       //
// Help and support please visit http://www.phpmotion.com                            //
// Copyright reserved                                                                //
///////////////////////////////////////////////////////////////////////////////////////
include_once 'classes/config.php';
include_once 'classes/sessions.php';
// load required javascripts used in main_1.htm
$ahah = 1;
$tag_cloud = make_tag_cloud('audios');
$tag_cloud_block = $tag_cloud[1];
$channel = $_GET['cid'];
$channel = mysql_real_escape_string($channel);
$limit = $config['see_more_limits'];
//$config['search_page_limits'];
$codes = $_GET['code'];
$sql1 = "SELECT * FROM genre WHERE has_audio = 'yes' AND channel_name = '{$channel}'";
$query1 = @mysql_query($sql1);
if (@mysql_num_rows($query1) == 0) {
    @mysql_close();
    error_redirect(121);
}
// get all genre that has an audio file, we only show genre with content
$all_categories = array();
$sql = "SELECT * FROM genre WHERE has_audio = 'yes' order by channel_name";
$query = @mysql_query($sql);
while ($result = @mysql_fetch_array($query)) {
Example #3
0
///////////////////////////////////////////////////////////////////////////////////////
// License: You are not to sell or distribute this software without permission       //
// Help and support please visit http://www.phpmotion.com                            //
// Copyright reserved                                                                //
///////////////////////////////////////////////////////////////////////////////////////
include_once 'classes/config.php';
include_once 'classes/sessions.php';
include_once 'includes/enabled_features.php';
$page_title = $lang_browse_images . ' ' . $lang_on . ' ' . $site_name;
$ahah = 1;
$progress_bar_width = 0;
$blk_notification = '';
$load_ajax = '';
$load_javascript = '';
$show_v = '';
$tag_cloud = make_tag_cloud('images');
$tag_cloud_block = $tag_cloud[1];
//$tag_cloud[1]= small $tag_cloud[0]=large
$limit = mysql_real_escape_string($config['see_more_limits']);
$all_albums = '';
$albums_list = '';
// get left menu listing--------------------------------
$albums_display_limit = 7;
$temp_page_holder = $_GET['page'];
//Bug fix: pagination() already calls $_GET['page'] so have to reset to prevent pagination on side albums
$_GET['page'] = '';
$pagination = pagination("SELECT * FROM image_galleries WHERE has_images = '1' AND approved='yes' {$sql_public_private} ORDER BY gallery_id DESC", $albums_display_limit);
$set_limit = $pagination[0]['set_limit'];
$total_pages = $pagination[0]['total_pages'];
$current_page = $pagination[0]['current_page'];
$total_records = $pagination[0]['total_records'];
Example #4
0
        $url = substr($url, 0, -1);
    }
    @header("Location: {$url}/setup");
} else {
    include_once 'classes/config.php';
    include_once 'classes/sessions.php';
    include_once 'includes/news.inc.php';
    include_once 'online.php';
    include_once 'popular.php';
    // load required javascripts used in main_1.htm
    $swfobject = 1;
    $ahah = 1;
    $codes_internal = '';
    $codes = '';
    $page_title = $config['site_name'];
    $tag_cloud = make_tag_cloud('videos');
    $tag_cloud_block = $tag_cloud[0];
    $proceed = true;
    $enable_promoted = true;
    $limit = $config['see_more_limits'];
    $featured_display = $config['admin_order_by'];
    $default_album_pic = $config['default_album_pic'];
    $enabled_stats = $config['enabled_features_stats'];
    $tpl_ajax_height = 166;
    $ajax_mutiplier = $limit / 4;
    //default template has 4 views accross the row - so limit = 8 / 4 = 2 rows
    $ajax_height = $tpl_ajax_height * $ajax_mutiplier;
    $show_vid_channels = $config['show_home_page_categories'];
    $theme_thumbnail_width = $config['theme_thumbnail_width'];
    $theme_thumbnail_height = $config['theme_thumbnail_height'];
    $auto_play_index = $config['auto_play_index'];
Example #5
0
        break;
    case 'blogs':
        $type_blogs = 5;
        $row_id = 'blog_id';
        $media_comments = 'blog_replys';
        $type_query_rows = 'indexer, blog_owner, user_id, title, title_seo, description, tags, category, date_created, approved, number_of_views';
        break;
}
$query_get_type = $get_type;
if ($query_get_type == 'groups') {
    $query_get_type = 'group_profile';
    $page_guery = "SELECT indexer FROM {$query_get_type} WHERE (group_name like '%{$keyword}%' or group_description like '%{$keyword}%')";
    $search_query = "SELECT {$type_query_rows} FROM {$query_get_type} WHERE (group_name like '%{$keyword}%' or group_description like '%{$keyword}%') LIMIT ";
    // $set_limit, $limit";
} else {
    $tag_cloud = make_tag_cloud($get_type);
    $tag_cloud_block = $tag_cloud[1];
    $page_guery = "SELECT indexer FROM {$query_get_type} WHERE approved = 'yes' AND public_private = 'public' and (title like '%{$keyword}%' or tags like '%{$keyword}%' or description like '%{$keyword}%')";
    $search_query = "SELECT {$type_query_rows} FROM {$query_get_type} WHERE approved = 'yes' AND public_private = 'public' and (title like '%{$keyword}%' or tags like '%{$keyword}%' or description like '%{$keyword}%') LIMIT ";
    // $set_limit, $limit";
}
if ($query_get_type == 'group_profile') {
    $limit = (int) mysql_real_escape_string($config['search_page_limits']);
    $pagination = pagination($page_guery, $limit);
    $set_limit = $pagination[0]['set_limit'];
    $total_pages = $pagination[0]['total_pages'];
    $current_page = $pagination[0]['current_page'];
    $total_records = $pagination[0]['total_records'];
    $next_page = $pagination[0]['next_page'];
    $prev_page = $pagination[0]['prev_page'];
    $nl = $pagination[0]['nl'];