include("modules/Media/go_config.php");
include("includes/j a v a s c r i p t.php");
//global $ALBUM_SET;
$cpg_dir = "coppermine";
$cpg_block = true;
require("modules/" . $cpg_dir . "/include/load.inc");
$cpg_block = false;
//////////////////// USERS CAN EDIT THIS AREA ////////////////////////////////
$pwidth = "100"; // This is the pictue width setting
$pheight = "75"; // This is the pictue height setting
// Either specify the exact number of pictures that are displayed across using this line
//$limit = 5; // The number of thumbnail pictures shown
// or
// use this self adjusting one...
$limit =$CONFIG['thumbcols']; // this will match the columns set in the coppermine/config area
///////////////////// END USER DEFINEABLES //////////////////////////////////////
///////////////////////////////////////////
///////////////////////////////////////////
/// Begin All Picture Rows Area
///////////////////////////////////////////
///////////////////////////////////////////
// This is a 2 Row Block of pictures created by www.pcnuke.com //
///<Row> ///
$content .= '<table><tr>';
// modified by DJMaze
$result = $db->sql_query("SELECT COUNT(*) FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid");
//$result = $db->sql_query("SELECT COUNT(*) from " . $cpg_prefix . "pictures WHERE approved = 'YES' $ALBUM_SET");
$nbEnr = $db->sql_fetchrow($result);
$pic_count = $nbEnr[0];
// if we have more than 1000 pictures, we limit the number of picture returned
// by the SELECT statement as ORDER BY RAND() is time consuming
if ($pic_count > 1000) {
$result = $db->sql_query("SELECT COUNT(*) from " . $cpg_prefix . "pictures WHERE approved = 'YES'");
$nbEnr = $db->sql_fetchrow($result);
$total_count = $nbEnr[0];
$granularity = floor($total_count / 1000);
$cor_gran = ceil($total_count / $pic_count);
srand(time());
for ($i = 1; $i <cor_gran>sql_query("SELECT pid, filepath, filename, p.aid, p.title FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE randpos IN ($random_num_set) AND approved='YES' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit");
} else {
$result = $db->sql_query("SELECT pid, filepath, filename, p.aid, p.title FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit");
}
// modified by DJMaze
$result = $db->sql_query("SELECT COUNT(*) FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid");
//$result = $db->sql_query("SELECT COUNT(*) from " . $cpg_prefix . "pictures WHERE approved = 'YES' $ALBUM_SET");
$nbEnr = $db->sql_fetchrow($result);
$pic_count = $nbEnr[0];
// if we have more than 1000 pictures, we limit the number of picture returned
// by the SELECT statement as ORDER BY RAND() is time consuming
if ($pic_count > 1000) {
$result = $db->sql_query("SELECT COUNT(*) from " . $cpg_prefix . "pictures WHERE approved = 'YES'");
$nbEnr = $db->sql_fetchrow($result);
$total_count = $nbEnr[0];
$granularity = floor($total_count / 1000);
$cor_gran = ceil($total_count / $pic_count);
srand(time());
for ($i = 1; $i <cor_gran>sql_query("SELECT pid, filepath, filename, p.aid, p.title FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE randpos IN ($random_num_set) AND approved='YES' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit");
} else {
$result = $db->sql_query("SELECT pid, filepath, filename, p.aid, p.title FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit");
}
///////////////////////////////////////////
///////////////////////////////////////////
/// End All Picture Rows Area
///////////////////////////////////////////
///////////////////////////////////////////
///////////////////////////////////////////
///////////////////////////////////////////
/// Begin all Stats Area
///////////////////////////////////////////
///////////////////////////////////////////
/// Stats by pcnuke.com //
global $prefix, $db, $CONFIG, $Version_Num, $cat, $cpg_dir, $textcolor1;
//$textcolor1 = "#ffffff"; // Use this instead of theme setting - as a replacement setting for the font colors
$cat = is_numeric($cat) ? $cat : 0;
$result = $db->sql_query("SELECT dirname, prefix FROM ".$prefix."_cpg_installs");
while ($row = $db->sql_fetchrow($result)) {
if ($content != "") $content .= "<hr>";
$cpgdir = $row[0];
$cpgprefix = $row[1];
$cpgtitle = $db->sql_fetchrow($db->sql_query("SELECT custom_title FROM " . $prefix . "_modules WHERE title='$cpgdir'"));
if ($cpgtitle[0] == '') $cpgtitle[0] = $cpgdir;
include("modules/Media/includes/j a v a s c r i p t.php");
?>
<Script>
function loadadd() {
window.open('modules.php?name=Video_Stream&page=vidadd','','scrollbars=no,menubar=no,height=550,width=400,resizable=no,toolbar=no,location=center,status=no,left = 415,top = 10');
}
</Script>
</s>sql_query("SELECT * FROM ".$prefix."_video_stream_settings WHERE id=1");
$srow = $db->sql_fetchrow($settings);
$ratingshow = $srow['ratingV'];
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ORDER BY RAND() LIMIT 1");
while($row = $db->sql_fetchrow($result)) {
$content .= "";
$content .= "<table><tr><td>";
$content .= "<table><tr><td>";
///////////////////////////////////////////
///////////////////////////////////////////
/// End All Video Rows Area
///////////////////////////////////////////
///////////////////////////////////////////
$content .= "</table>";
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız