$oVotingView->_fRate = $book['rating'];
        $vote1 = $oVotingView->getSmallVoting(0, '');
        if ($color == 'f5f5f5') {
            $color = 'ffffff';
        } else {
            $color = 'f5f5f5';
        }
        $temp = array();
        $temp['Color'] = $color;
        $temp['ID'] = $book['ID'];
        $temp['url'] = '/product.php?ID=' . $book['ID'];
        $temp['Title'] = htmlspecialchars($book['Title']);
        $temp['Date'] = date("F jS, Y", $book['date']);
        $temp['Price'] = number_format($book['price'], 2, ".", "");
        $temp['Vote'] = $vote1;
        $temp['ctitle'] = $book['ctitle'];
        $books['list'][] = $temp;
    }
    $smarty->assign("dbooks", $books);
    $smarty->assign("aPaging2", $aPaging);
}
if ($profileID == $_SESSION['memberID']) {
    addNavigation('/profile.php?ID=' . $user['ID'], 'My Profile');
} else {
    addNavigation('/profile.php?ID=' . $user['ID'], $user['fname'] . ' ' . $user['lname']);
}
$HEADERTEXT = 'Products for Sale';
addNavigation('', $HEADERTEXT);
$smarty->assign("site_title", $HEADERTEXT . " :: " . $gConfig['site_title']);
$smarty->assign("HEADERTEXT", $HEADERTEXT);
show_smarty_template('my_products');
            $subitems = $subprop['Name'];
        }
    } elseif ($prop['Type'] == 4) {
        $qq = mysql_fetch_assoc(mysql_query("select * from StorePropValues where PropID=" . intval($prop['ID']) . " and itemID=" . $book['ID']));
        $subitems = $qq['Value'];
        $oVotingView->_fRate = $subitems;
        $subitems = $oVotingView->getSmallVoting(0, '');
    } else {
        $qq = mysql_fetch_assoc(mysql_query("select * from StorePropValues where PropID=" . intval($prop['ID']) . " and itemID=" . $book['ID']));
        $subitems = $qq['Value'];
    }
    $prop['value'] = $subitems;
    $props[] = $prop;
}
$book['props'] = $props;
$smarty->assign("book", $book);
$smarty->assign("categ", mysql_fetch_assoc(mysql_query("select * from StoreCategories where ID=" . $book['categoryID'])));
$smarty->assign("ap_seller", $seller);
if (!empty($photos)) {
    $smarty->assign("photos", $photos);
}
$contact_type = 2;
$smarty->assign("ap_contact_type", $contact_type);
include "./ap_contact.php";
include "./ap_tell.php";
$HEADERTEXT = 'Wanted Product';
addNavigation('/wcategory.php', 'Wanted Products');
addNavigation('', $book['Title']);
$smarty->assign("site_title", $book['Title'] . " :: " . $gConfig['site_title']);
$smarty->assign("HEADERTEXT", $HEADERTEXT);
show_smarty_template('wproduct');
$rElems = mysql_query($sQuery . $sLimit);
while ($book = mysql_fetch_assoc($rElems)) {
    if ($color == 'f5f5f5') {
        $color = 'ffffff';
    } else {
        $color = 'f5f5f5';
    }
    $temp = array();
    $temp['Color'] = $color;
    $temp['ID'] = $book['ID'];
    $temp['url'] = 'javascript:void(0);" onclick="show_book_info(\'' . $book['ID'] . '\',this,\'2\')';
    $temp['Title'] = htmlspecialchars($book['Title']);
    $temp['Date'] = date("F jS, Y", $book['date']);
    $temp['Price'] = number_format($book['price'], 2, ".", "");
    $temp['Vote'] = $vote1;
    $temp['ctitle'] = $book['ctitle'];
    $books['list'][] = $temp;
}
$smarty->assign("sbooks", $books);
$smarty->assign("aPaging", $aPaging);
$contact_type = 1;
include "./ap_contact.php";
$HEADERTEXT = 'Wanted Products';
addNavigation('wcategory.php', $HEADERTEXT);
if (isset($categ['Title'])) {
    addNavigation('', $categ['Title']);
    $HEADERTEXT = $categ['Title'] . ' :: ' . $HEADERTEXT;
}
$smarty->assign("site_title", $HEADERTEXT . " :: " . $gConfig['site_title']);
$smarty->assign("HEADERTEXT", $HEADERTEXT);
show_smarty_template('wcatalog');
    $properties = array();
    $propq = mysql_query("select * from StoreProp where categoryID=" . $categoryID . " and InSearch=1 and Type>3 order by Prior ");
    while ($masprop = mysql_fetch_assoc($propq)) {
        $subitems = array();
        if ($masprop['Type'] > 4) {
            $qq = mysql_query("select * from StorePropMulti where PropID=" . intval($masprop['ID']) . " order by Name");
            while ($subprop = mysql_fetch_assoc($qq)) {
                $subitems[] = $subprop;
            }
        }
        if ($masprop['Type'] == 4) {
            $oVotingView->_fRate = 1;
            $voter = $oVotingView->getBigVoting(1, '', $masprop['ID']);
            $subitems = '<input type="hidden" name="prop' . $masprop['ID'] . '" id="gvotingbig' . $masprop['ID'] . '" value="1">' . $voter;
        }
        $masprop['subprop'] = $subitems;
        $properties[] = $masprop;
    }
    $smarty->assign("props", $properties);
}
if (isset($_REQUEST['go'])) {
    $HEADERTEXT = 'Search Results' . (trim($_REQUEST['keywords']) != '' ? ' for "' . $_GET['keywords'] . '"' : '');
} else {
    $HEADERTEXT = 'Advanced Search';
}
$contact_type = 1;
include "./ap_contact.php";
addNavigation('', 'Advanced Search');
$smarty->assign("site_title", $HEADERTEXT . " :: " . $gConfig['site_title']);
$smarty->assign("HEADERTEXT", $HEADERTEXT);
show_smarty_template('search');
 * @date		May 7, 2009
 * 
 * Silurus is a professionally developed PHP Classifieds script that was built for you.
 * Whether you are running classifieds for autos, motorcycles, bicycles, rv's, guns,
 * horses, or general merchandise, our product is the right package for you.
 * It has template system and no limit to usage with free for any changes.
 *
 * Copyright (c) 2009
 */
$smarty->assign("site_url", $gConfig['site_url']);
$smarty->assign("site_title", $gConfig['site_title']);
$smarty->assign("site_keywords", $gConfig['site_keywords']);
$smarty->assign("site_description", $gConfig['site_description']);
$smarty->assign("site_slogan1", $gConfig['logo_title']);
$smarty->assign("site_slogan2", $gConfig['logo_slogan']);
addNavigation('/', 'Home');
$topmenu = array();
$q = mysql_query("select * from Menu where Parent=0 and ((Login=0)or(Login=1&&" . intval($_SESSION['memberID']) . ">0)or(Login=2&&" . intval($_SESSION['memberID']) . "=0)) order by Prior");
while ($a = mysql_fetch_assoc($q)) {
    $temp = array();
    $qq = mysql_query("select * from Menu where Parent=" . $a['ID'] . " and ((Login=0)or(Login=1&&" . intval($_SESSION['memberID']) . ">0)or(Login=2&&" . intval($_SESSION['memberID']) . "=0)) order by Prior");
    if (mysql_numrows($qq) > 0) {
        while ($aa = mysql_fetch_assoc($qq)) {
            $temp[] = $aa;
        }
    }
    $a['list'] = $temp;
    $topmenu[] = $a;
}
$smarty->assign("topmenu", $topmenu);
if (!is_array($_SESSION['location'])) {
                        } else {
                            $newFileName = time() . '.' . $ext;
                        }
                        if (!move_uploaded_file($_FILES['Photo']['tmp_name'], $dir . 'photo_' . $newFileName)) {
                            $sActionText = 'Couldn\'t download file.';
                        } else {
                            imageResize($dir . 'photo_' . $newFileName, $dir . 'thumb_' . $newFileName, 200);
                            $Photo = "PrimPhoto='{$newFileName}',";
                        }
                    }
                }
            }
        }
        mysql_query("update `Profiles` SET \t\t\r\n\t\t\t\tfname='" . mysql_escape_string($_POST['fname']) . "',\r\n\t\t\t\tlname='" . mysql_escape_string($_POST['lname']) . "',\r\n\t\t\t\tEmail='" . mysql_escape_string($_POST['Email']) . "',\r\n\t\t\t\t" . ($_POST['Password1'] != '' ? "Password='******'Password1']) . "'," : "") . "\r\n\t\t\t\tzip='" . mysql_escape_string($_POST['zip']) . "',\r\n\t\t\t\tcity=" . $collgeid . ",\t\t\t\t\r\n\t\t\t\t{$Photo}\r\n\t\t\t\tLastModified=" . time() . ",\t\r\n\t\t\t\tintro='" . mysql_escape_string($_POST['intro']) . "',\r\n\t\t\t\tnote='" . mysql_escape_string($_POST['note']) . "',\r\n\t\t\t\taltemail='" . mysql_escape_string($_POST['altemail']) . "',\r\n\t\t\t\tphone='" . mysql_escape_string($_POST['phone']) . "',\r\n\t\t\t\tcell='" . mysql_escape_string($_POST['cell']) . "',\r\n\t\t\t\taim='" . mysql_escape_string($_POST['aim']) . "',\r\n\t\t\t\tskype='" . mysql_escape_string($_POST['skype']) . "',\r\n\t\t\t\tphone_none='" . intval($_POST['phone_none']) . "',\r\n\t\t\t\tcell_none='" . intval($_POST['cell_none']) . "',\r\n\t\t\t\taim_none='" . intval($_POST['aim_none']) . "',\r\n\t\t\t\taltemail_none='" . intval($_POST['altemail_none']) . "',\r\n\t\t\t\tskype_none='" . intval($_POST['skype_none']) . "'  \t\t\t\r\n\t\t\t\twhere ID=" . $_SESSION['memberID']);
        $_SESSION['memberINFO'] = mysql_fetch_assoc(mysql_query("select * from Profiles where ID=" . $_SESSION['memberID']));
        header("location: profile.php");
        die;
    }
    $smarty->assign("error", $err);
    $smarty->assign("t_error", $add_on);
} else {
    $_REQUEST = $_SESSION['memberINFO'];
    $_REQUEST['Email2'] = $_REQUEST['Email'];
    $city = mysql_fetch_assoc(mysql_query("select * from City where ID=" . intval($_REQUEST['city'])));
    $_REQUEST['city'] = $city['Title'];
}
addNavigation('profile.php', 'My Profile');
addNavigation('', 'Edit My Account Information');
$smarty->assign("site_title", 'Edit My Account Information' . " :: " . $gConfig['site_title']);
$smarty->assign("HEADERTEXT", 'Edit My Account Information');
show_smarty_template('edit_user');
Esempio n. 7
0
 * @date		March 7, 2013
 * 
 * Silurus is a professionally developed PHP Classifieds script that was built for you.
 * Whether you are running classifieds for autos, motorcycles, bicycles, rv's, guns,
 * horses, or general merchandise, our product is the right package for you.
 * It has template system and no limit to usage with free for any changes.
 *
 * Copyright (c) 2009-2013
 */
$smarty->assign("site_url", $gConfig['site_url']);
$smarty->assign("site_title", $gConfig['site_title']);
$smarty->assign("site_keywords", $gConfig['site_keywords']);
$smarty->assign("site_description", $gConfig['site_description']);
$smarty->assign("site_slogan1", $gConfig['logo_title']);
$smarty->assign("site_slogan2", $gConfig['logo_slogan']);
addNavigation('index.php', 'Home');
$topmenu = array();
$q = mysql_query("select * from Menu where Parent=0 and ((Login=0)or(Login=1&&" . intval($_SESSION['memberID']) . ">0)or(Login=2&&" . intval($_SESSION['memberID']) . "=0)) order by Prior");
while ($a = mysql_fetch_assoc($q)) {
    $temp = array();
    $qq = mysql_query("select * from Menu where Parent=" . $a['ID'] . " and ((Login=0)or(Login=1&&" . intval($_SESSION['memberID']) . ">0)or(Login=2&&" . intval($_SESSION['memberID']) . "=0)) order by Prior");
    if (mysql_numrows($qq) > 0) {
        while ($aa = mysql_fetch_assoc($qq)) {
            $temp[] = $aa;
        }
    }
    $a['list'] = $temp;
    $topmenu[] = $a;
}
$smarty->assign("topmenu", $topmenu);
if (!is_array($_SESSION['location'])) {
 * Silurus Classifieds Builder
 *
 *
 * @author		SnowHall - http://snowhall.com
 * @website		http://snowhall.com/silurus
 * @email		support@snowhall.com
 *
 * @version		2.0
 * @date		March 7, 2013
 *
 * Silurus is a professionally developed PHP Classifieds script that was built for you.
 * Whether you are running classifieds for autos, motorcycles, bicycles, rv's, guns,
 * horses, or general merchandise, our product is the right package for you.
 * It has template system and no limit to usage with free for any changes.
 *
 * Copyright (c) 2009-2013
 */
include "./include_php/init.php";
if ($_SESSION['memberID'] == 0) {
    header("location: index.php");
}
$uniqueId = strtoupper(md5(uniqid()));
mysql_query("update `Profiles` SET `unique_id`='" . $uniqueId . "' where ID=" . $_SESSION['memberID']);
$smarty->assign("uniqueId", $uniqueId);
$smarty->assign("paypal_email", $gConfig['paypal_email']);
$smarty->assign("currency", $gConfig['currency']);
addNavigation('profile.php', 'My Profile');
addNavigation('', 'Fill My Balance');
$smarty->assign("site_title", 'Fill My Balance' . " :: " . $gConfig['site_title']);
$smarty->assign("HEADERTEXT", 'Fill My Balance');
show_smarty_template('fill_balance');