function GalleryController()
 {
     global $_zp_gallery;
     zp_load_page();
     $this->requestedPage = getCurrentPage() >= 1 ? getCurrentPage() : 1;
     if (!isset($_zp_gallery)) {
         load_gallery();
     }
     list($album, $image) = rewrite_get_album_image('album', 'image');
     $this->setAlbum($album);
     $this->setImage($image);
 }
Example #2
0
    }
}
$categories_list1 .= '</select>' . "\n";
$categories_list2 = '<select name="secondcat">' . "\n";
if (isset($category_plain) && count($category_plain) > 0) {
    foreach ($category_plain as $k => $v) {
        $categories_list2 .= '	<option value="' . $k . '"' . ($k == $auction_data['secondcat'] ? ' selected="true"' : '') . '>' . $v . '</option>' . "\n";
    }
}
$categories_list2 .= '</select>' . "\n";
// Pictures Gellery
$K = 0;
$UPLOADED_PICTURES = array();
if (file_exists('../' . $uploaded_path . $auc_id)) {
    // load dem pictures
    $UPLOADED_PICTURES = load_gallery($uploaded_path, $auc_id);
    if (is_array($UPLOADED_PICTURES)) {
        foreach ($UPLOADED_PICTURES as $k => $v) {
            $TMP = @getimagesize('../' . $v);
            if ($TMP[2] >= 1 && $TMP[2] <= 3) {
                $template->assign_block_vars('gallery', array('V' => $v));
            }
        }
    }
}
// payments
$payment = explode(', ', $auction_data['payment']);
$payment_methods = '';
$query = "SELECT * FROM " . $DBPrefix . "gateways";
$db->direct_query($query);
$gateways_data = $db->result();
Example #3
0
    }
}
$categories_list1 .= '</select>' . "\n";
$categories_list2 = '<select name="secondcat">' . "\n";
if (isset($category_plain) && count($category_plain) > 0) {
    foreach ($category_plain as $k => $v) {
        $categories_list2 .= '	<option value="' . $k . '"' . ($k == $auction_data['secondcat'] ? ' selected="true"' : '') . '>' . $v . '</option>' . "\n";
    }
}
$categories_list2 .= '</select>' . "\n";
// Pictures Gellery
$K = 0;
$UPLOADED_PICTURES = array();
if (file_exists(UPLOAD_PATH . $auc_id)) {
    // load dem pictures
    $UPLOADED_PICTURES = load_gallery($auc_id);
    if (is_array($UPLOADED_PICTURES)) {
        foreach ($UPLOADED_PICTURES as $k => $v) {
            $TMP = @getimagesize('../' . $v);
            if ($TMP[2] >= 1 && $TMP[2] <= 3) {
                $template->assign_block_vars('gallery', array('V' => $v));
            }
        }
    }
}
// payments
$payment = explode(', ', strtolower($auction_data['payment']));
$payment_methods = '';
$query = "SELECT * FROM " . $DBPrefix . "payment_options";
$db->direct_query($query);
while ($payment_method = $db->fetch()) {