$index = rand(0, count($all_owned) - 1);
if (count($all_owned) > 0) {
    $owned_random = get_listing_info($all_owned[$index]);
} else {
    $owned_random = array();
}
// newest joined fanlisting (current)
if (count($all_joined) > 0) {
    $joined_newest = get_joined_info($all_joined[0]);
} else {
    $joined_newest = array();
}
// random joined fanlisting (current)
$index = rand(0, count($all_joined) - 1);
if (count($all_joined) > 0) {
    $joined_random = get_joined_info($all_joined[$index]);
} else {
    $joined_random = array();
}
// collective total fans (approved)
$collective_total_fans_approved = 0;
$ownedarray = get_owned('current');
$query = '';
foreach ($ownedarray as $o) {
    $info = get_listing_info($o);
    $table = $info['dbtable'];
    $dbserver = $info['dbserver'];
    $dbdatabase = $info['dbdatabase'];
    $dbuser = $info['dbuser'];
    $dbpassword = $info['dbpassword'];
    if ($dbserver != $db_server || $dbdatabase != $db_database || $dbuser != $db_user || $dbpassword != $db_password) {
Exemple #2
0
    ?>
   <table>

   <tr><th></th><th>
   Subject/URL
   </th><th>
   Categories
   </th><th>
   Image
   </th><th>
   Action
   </th></tr>
<?php 
    $shade = false;
    foreach ($ids as $id) {
        $info = get_joined_info($id);
        $class = '';
        if ($shade) {
            $class = ' class="rowshade"';
            $shade = false;
        } else {
            $shade = true;
        }
        $dir = get_setting('joined_images_dir');
        $root_web = get_setting('root_path_web');
        $root_abs = get_setting('root_path_absolute');
        $image = $info['imagefile'] && is_file($dir . $info['imagefile']) ? @getimagesize($dir . $info['imagefile']) : '';
        $dir = str_replace($root_abs, $root_web, $dir);
        $target = '_self';
        if ($info['pending'] == 1) {
            echo '<tr' . $class . '><td class="important"><b>x</b></td>';