Example #1
0
 public static function newInstance()
 {
     if (!self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
}
if(!FacebookUser::newInstance()->checkTable()){
    FacebookUser::newInstance()->import('sql/facebookuser.sql');
}
*/
if (!SellerRatings::newInstance()->checkTable()) {
    SellerRatings::newInstance()->import('sql/seller_ratings.sql');
}
if (!WatchList::newInstance()->checkTable()) {
    WatchList::newInstance()->import('sql/watchlist.sql');
}
if (!UniqueCounter::newInstance()->checkTable()) {
    UniqueCounter::newInstance()->import('sql/unique-counter.sql');
}
if (!PaidAds::newInstance()->checkTable()) {
    PaidAds::newInstance()->import('sql/paid-ads.sql');
}
if (!Subscriber::newInstance()->checkTable()) {
    Subscriber::newInstance()->import('sql/subscriber.sql');
}
/**
classified DATABASE FUNCTION
*/
function nc_osc_install()
{
    //ncdb::newInstance();
}
function nc_osc_uninstall()
{
    hello();
}
Example #3
0
						//responsive code end
        
		});
    </script>
    <!-- Jssor Slider Begin -->
    <!-- To move inline styles to css file/block, please specify a class name for each element. --> 
    
    <div id="slider1_container" style=" margin:0 auto; position: relative; top: 0px; left: 0px; height:350px; background: #fff; overflow: hidden; ">

       

        <!-- Slides Container -->
        <div data-u="slides" style="cursor: move; position: absolute; left: 0px; top: 0px; width:950px; height:350px;
            overflow: hidden;">
            <?php 
$arr = PaidAds::newInstance()->selectPaidAdsData();
?>
            <?php 
foreach ($arr as $ar) {
    ?>
            <?php 
    $item = Item::newInstance()->findByPrimaryKey($ar['pk_paid_ads_id']);
    ?>
            <?php 
    $item_price = $item['i_price'];
    ?>
 
            <?php 
    if ($item_price == null) {
        $item_price = "Check with Seller";
    } else {
Example #4
0
     $arr = PaidAds::newInstance()->selectPaidAdsData();
     $html = "<table class='table'><thead><th>#</th><th>Title</th><th></th></thead>";
     foreach ($arr as $ar) {
         $item = Item::newInstance()->findByPrimaryKey($ar['pk_paid_ads_id']);
         $temp = array('id' => $item['pk_i_id'], 'title' => $item['s_title']);
         $html = $html . "<tr>";
         $html = $html . "<td>" . $temp['id'] . "</td><td>" . $temp['title'] . "</td>";
         $html = $html . "<td><a href='#' OnClick='remove_id(" . $temp['id'] . ");' > Remove </a></td>";
         $html = $html . "</tr>";
     }
     $html = $html . "</table>";
     echo $html;
     break;
 case 'home_slider_remove_item':
     $item_id = Params::getParam('home_slider_item_id');
     PaidAds::newInstance()->removeId($item_id);
     break;
 case 'paypal_credentials':
     $paypal_username = Params::getParam('paypal_username');
     $paypal_password = Params::getParam('paypal_password');
     $paypal_signature = Params::getParam('paypal_signature');
     $paypal_server = Params::getParam('paypal_server');
     osc_set_preference('paypal_username', $paypal_username, 'classified');
     osc_set_preference('paypal_password', $paypal_password, 'classified');
     osc_set_preference('paypal_signature', $paypal_signature, 'classified');
     osc_set_preference('paypal_server', $paypal_server, 'classified');
 case 'send_newsletter':
     $subject = Params::getParam('newsletter_subject');
     $message = stripslashes(Params::getParam('newsletter_message'));
     $message = str_replace('src="../', 'src="' . osc_base_url() . '/', $message);
     $recipients = array();