Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- class actions {
- function actions() {
- }
- function getaction($id = '') {
- global $db;
- if (!$id) {
- $id = $this->id;
- }
- global $appearance_settings;
- global $lng;
- $date_format = $appearance_settings['date_format_long'];
- $row = $db->fetchAssoc( '' . 'select *, date_format(`date`,\'' . $date_format . '\') as date_nice from ' . TABLE_ACTIONS . ' where id=' . $id );
- global $appearance_settings;
- $currency_pos = $appearance_settings['currency_pos'];
- $default_currency = $appearance_settings['default_currency'];
- if ($currency_pos == 0) {
- $row['amount_nice'] = $default_currency . $row['amount'];
- } else {
- $row['amount_nice'] = $row['amount'] . $default_currency;
- }
- return $row;
- }
- function getall($page, $no_per_page, $order, $order_way, $user_id = '') {
- }
- function add($type, $object_id, $user_id, $invoice, $pending, $extra = '') {
- global $db;
- if ($type == 'store') {
- $db->query( 'delete from ' . TABLE_ACTIONS . ( '' . ' where type = \'' . $type . '\' and object_id=\'' . $object_id . '\'' ) );
- }
- $timestamp = date( 'Y-m-d H:i:s' );
- $res = $db->query( 'INSERT INTO ' . TABLE_ACTIONS . ( '' . ' SET date=\'' . $timestamp . '\', type=\'' . $type . '\', object_id=\'' . $object_id . '\', user_id=\'' . $user_id . '\', invoice=\'' . $invoice . '\', pending = ' . $pending . ' , `extra` = \'' . $extra . '\' ' ) );
- return 1;
- }
- function delete($id = '') {
- global $db;
- if (!$id) {
- $id = $this->id;
- }
- $res = $db->query( 'delete from ' . TABLE_ACTIONS . ' where id=' . $id );
- return 1;
- }
- function deletelisting($ad_id) {
- global $db;
- $res = $db->query( 'delete from ' . TABLE_ACTIONS . ( '' . ' where object_id=\'' . $ad_id . '\' and ( `type` like \'newad\' or `type` like \'renewad\' or `type` like \'featured\' or `type` like \'highlited\' or `type` like \'priority\' or `type` like \'video\' )' ) );
- return 1;
- }
- function deleteuser($user_id) {
- global $db;
- $res = $db->query( 'delete from ' . TABLE_ACTIONS . ( '' . ' where object_id=\'' . $user_id . '\' and `type` like \'store\'' ) );
- return 1;
- }
- function deletesubscription($sub_id) {
- global $db;
- $res = $db->query( 'delete from ' . TABLE_ACTIONS . ( '' . ' where object_id=\'' . $sub_id . '\' and ( `type` = \'newpkg\' or `type` like \'renewpkg\' )' ) );
- return 1;
- }
- function removepending($id) {
- global $db;
- if (!$id) {
- $id = $this->id;
- }
- $res = $db->query( 'update ' . TABLE_ACTIONS . ' set pending=0 where id=' . $id );
- return 1;
- }
- ..........................
- ..............
- .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement