Hello There, Guest! Register

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Version Updates (which files have changed)
08-25-2012, 10:36 AM
Post: #11
RE: Version Updates (which files have changed)
update to v2.06
Find all posts by this user
Quote this message in a reply
10-09-2012, 05:31 AM
Post: #12
RE: Version Updates (which files have changed)
Current Version= v2.10
Find all posts by this user
Quote this message in a reply
03-25-2013, 02:44 PM (This post was last modified: 04-06-2013 11:26 AM by admin.)
Post: #13
RE: Version Updates (which files have changed)
Important notice regarding upgrade from version 2.54, 2.55 and 2.56
If you are upgrading from any of these versions to our newest 2.57, you may be out of sync, and that will cause errors durning upgrade. To get back into sync, please follow these instructions:

You must run queries manually in phpmyadmin. To do this go to cpanel -> phpmyadmin (or whatever you need to get there, ask your host if unsure).

When in phpmyadmin choose your table and press "SQL".

In this window you will be executing these commands one by one.

First, run this query:
Code:
UPDATE `info` SET value =  '2.57' WHERE name = 'version' AND type = 'script'

If you are upgrading from version 2.54 please do this (and all listed under 2.55 & 2.56):
Run only if you have offer plugin installed:
Code:
INSERT INTO `configs` (`name` ,`type` ,`value` ,`comment`) VALUES ('point_ratio', 'clix_offers', '0', 'if 0, all offers will credit cash. If any other number it will be the ratio of points. E.g if ratio is 1 and the offer is worth $1, user will get credited 1 point (minus fees). If ratio is 100, then member will receive 100 points (minus fees).');
Run only if you have offer plugin installed:
Code:
INSERT INTO `configs` (`name` ,`type` ,`value` ,`comment`) VALUES ('open_offer_in_new_window', 'clix_offers', '1', '0 = No, open directly, 1 = Yes, open in new window');

If you are upgrading from version 2.55 please do this (and all listed under 2.56):
Code:
ALTER TABLE `tb_users` ADD `stp_user` VARCHAR( 255 ) NOT NULL COMMENT 'SolidTrust Pay Username' AFTER `lr_user` ,
                          ADD `stp_invested` DECIMAL( 10, 4 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'How much have been invested using SolidTrust Pay?' AFTER `lr_invested` ,
                          ADD `stp_paid` DECIMAL( 10, 4 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'How much have been paid using SolidTrust Pay?' AFTER `lr_paid`
Code:
INSERT INTO `configs` (`name` ,`type` ,`value` ,`comment`) VALUES
                        ('stp', 'payments', '0', 'SolidTrust Pay : 1 = On, 0 = Off'),
                        ('stp_receiver', 'payments', '', 'SolidTrust Pay Account ID/username (receiver), where payments are sent'),
                        ('stp_secondary_pw','payments','','SolidTrust Pay Secondary Password (for IPN verifications)'),
                        ('stp_api_name','payments','','SolidTrust Pay API Name'),
                        ('stp_api_pass','payments','','SolidTrust Pay API Password'),
                        ('stp_fee_fixed', 'payments', '0', ''),
                        ('stp_fee_percent', 'payments', '0', ''),
                        ('stp_max_send_amount', 'payments', '1000', 'The maximum amount allowed to be sent in one transaction.'),
                        ('stp_max_mass_pay', 'payments', '100', 'The maximum numbers of people allowed within one mass pay.'),
                        ('stp_instant', 'payments', '1', 'SolidTrustPay instant payouts, 1 = instant, 0 = manual'),
                        ('proxy_detector_clixscript_1', 'security', '0', 'ClixScript Proxy Detection method #1');
Code:
UPDATE `configs` SET `value` = '{"pp":"Paypal","lr":"Liberty Reserve","ap":"Payza","ep":"EGOPAY","stp":"SolidTrust Pay","pm":"Perfect Money","ab":"Account Balance","pb":"Purchase Balance"}' WHERE `configs`.`name` = 'payment_processors' AND `configs`.`type` = 'payments';
Run only if you have offer plugin installed:
Code:
INSERT INTO `configs` (`name` ,`type` ,`value` ,`comment`) VALUES
                            ('advertiser_offer_percent', 'clix_offers', '0', 'Fee percent taken from advertiser/ptsu offers from 0-100. If 10, 10% is fee which goes to admin. Please NOTE you may put this fee to 0% and price in a few by making the credits costing more!');
Run only if you have offer plugin installed:
Code:
ALTER TABLE `membership_settings` ADD `mlm_ref_earnings_clix_offers_adv` TEXT NOT NULL COMMENT 'Referral earnings (for advertiser/ptsu type of offers) % separated by ,' AFTER `mlm_ref_earnings_default`
If you are upgrading from version 2.56 please do this:

Code:
CREATE TABLE IF NOT EXISTS `banned_words` (
                  `word` varchar(255) NOT NULL,
                  PRIMARY KEY (`word`)
                ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Code:
ALTER TABLE `tb_users` ADD `fb_id` VARCHAR( 50 ) NOT NULL COMMENT 'Facebook User ID (empty if not connected)' AFTER `id` ,
                                                 ADD `tw_id` VARCHAR( 50 ) NOT NULL COMMENT 'Twitter User ID (empty if not connected)' AFTER `fb_id` ,
                                                 ADD `gp_id` VARCHAR( 50 ) NOT NULL COMMENT 'Google Plus User ID (empty if not connected)' AFTER `tw_id`,
                                                 ADD `fb_token` TEXT NOT NULL COMMENT 'FB Access Token (temporary, 60 days or so)'
Code:
INSERT INTO `configs` (`name` ,`type` ,`value` ,`comment`) VALUES
                ('fb', 'login', '0', 'Facebook Login: 0 = disabled, 1 = enabled'),
                ('fb_app_id', 'login', '', ''),
                ('fb_app_secret', 'login', '', NULL),
                ('gp', 'login', '0', 'google Plus Login: 0 = disabled, 1 = enabled'),
                ('gp_app_id', 'login', '', NULL),
                ('gp_app_secret', 'login', '', NULL),
                ('tw', 'login', '0', 'Twitter Login: 0 = disabled, 1 = enabled'),
                ('tw_consumer_key', 'login', '', NULL),
                ('tw_consumer_secret', 'login', '', NULL),
                ('main', 'asset', '1', NULL),
                ('points', 'asset', '0', NULL);

Run only if you have offer plugin installed:
Code:
INSERT INTO `configs` (`name` ,`type` ,`value` ,`comment`) VALUES
                            ('fb_share_message', 'clix_offers', 'I just earned {amount} by completing an offer at {site_name}, join for free: {ref_link}',''),
                            ('fb_share', 'clix_offers', '0', '1 = Enabled, everytime offer completes an offer, this will be shared (unless they disabled it in their profile) 0 = Off');
Run only if you have offer plugin installed:
Code:
ALTER TABLE `tb_users` ADD `clix_fb_share` TINYINT ( 1 ) NOT NULL DEFAULT '1' COMMENT 'Share activity on facebook'

2.57
Finally, to add the new networks for offers and offerwall use these queries (only if you have installed the plugins)
Offers:
Code:
INSERT INTO `clix_offers_affiliate_networks` (`name`, `url`, `uri_postback`, `key`, `site_username`, `site_password`, `postback_ips`, `postback_password`, `postback_cid`, `postback_subid`, `postback_rate`, `postback_status`, `postback_value_reverse`, `postback_value_credit`, `postback_success`, `postback_error`, `postback_websiteid`, `postback_cname`, `postback_sale`, `postback_reversal_reason`, `enabled`, `enabled_postback`, `columns_delimiter`, `values_delimiter`, `columns_trimmer`, `values_trimmer`) VALUES
('Peerfly', 'http://peerfly.com', '&offer=%offer%&commission=%commission%&subid=%subid1%', '', '', '', '67.228.170.7|208.43.12.28|208.43.12.29', '', 'offer', 'subid', 'commission', 'status', '-1', '1', '', '', '', 'cname', '', '', 1, 1, '', '', '', ''),
('incent.ly', 'http://incent.ly', '&offer=%offer%&commission=%commission%&subid=%subid1%', '', '', '', '184.173.106.43', '', 'offer', 'subid', 'commission', 'status', '-1', '1', '', '', '', 'cname', '', '', 1, 1, '', '', '', '');
Offerwall:
Code:
INSERT INTO `clix_offerwall_networks` (`id`, `name`, `logo`, `url`, `code`, `postback_ips`, `postback_var_password`, `postback_val_password`, `postback_var_transaction_id`, `postback_var_cid`, `postback_var_cname`, `postback_var_subid`, `postback_var_rate`, `postback_var_ctype`, `postback_var_gateid`, `postback_var_status`, `postback_val_status_credit`, `postback_val_status_reject`, `postback_var_reason`, `multiplication_ratio`, `currency`, `currency_label`, `display_wall`, `status`) VALUES
(11, 'Super Sonic Ads', '', 'http://www.supersonicads.com', '<iframe style="width:700px;height:500px;border:0;padding:0;margin:0;" frameborder="0" src="http://www.supersonicads.com/delivery/panel.php?applicationKey=<YOUR APPLICATION KEY>&applicationUserId=<%USER_ID%>&noDirectPayments=1"></iframe>', '', '', '<YOUR PRIVATE KEY>', 'eventId', '', 'itemName', 'applicationUserId', 'rewards', '', '', 'status', '1', '0', '', '1.0000', 0, 'Points', 1, 1),
(12, 'Volume 11', '', 'http://v11media.com', '<iframe src="http://b.v11media.com/video_path?k=<YOUR APP KEY>&uid=<%USER_ID%>" width="725" height="600" frameborder="0" scrolling="no"></iframe>', '', '', '<YOUR SECRET KEY>', 'ocid', '', 'title', 'uid', 'amount', '', '', '', '', '', '', '1.0000', 0, 'Points', 1,  1);
Find all posts by this user
Quote this message in a reply
03-25-2013, 03:10 PM
Post: #14
RE: Version Updates (which files have changed)
Warning: include(/var/www/clients/client1/web82/web/cs/vendor/facebook/base_facebook.php): failed to open stream: No such file or directory
Visit this user's website Find all posts by this user
Quote this message in a reply
03-25-2013, 03:17 PM
Post: #15
RE: Version Updates (which files have changed)
Please re-download Michael, we have added the vendor folder. Thanks
Find all posts by this user
Quote this message in a reply
03-25-2013, 03:33 PM (This post was last modified: 03-25-2013 03:37 PM by Michael Pehl.)
Post: #16
RE: Version Updates (which files have changed)
Do I need to reinstall?

Getting:

Fatal error: Class 'Config' not found in /var/www/clients/client1/web82/web/cs/classes/class.bux.php on line 28
Now getting this error after reinstall:

Fatal error: Access to undeclared static property: Config::$language in /var/www/clients/client1/web82/web/cs/classes/class.router.php on line 152
Visit this user's website Find all posts by this user
Quote this message in a reply
03-25-2013, 03:46 PM (This post was last modified: 03-27-2013 03:07 PM by admin.)
Post: #17
RE: Version Updates (which files have changed)
Ok here is what you need to do, open ClixScript_PHP_DOCS/config.php and copy this code to it:
Code:
<?php
class Config {
    public static $language = 'en-us';
    public static $is_plugin = false;
    public static $plugin_id = false;
/**
* ------------------------------------------------------------------------------------------
*                             Database settings
* ------------------------------------------------------------------------------------------
*/
    public static $__db = array(
        "host"     => '<<<_host_>>>',
        "username" => '<<<_user_>>>',
        "password" => '<<<_pass_>>>',
        "database" => '<<<_db_>>>',
        "type" => "MySQL",
        "persistent" => FALSE,
    );
    
/**
* ------------------------------------------------------------------------------------------
*                             General settings
* ------------------------------------------------------------------------------------------
*/

    public static $__site = array(
        "ipn_path"             => 'ipn',
        'admin_panel_location' => array(
            'uri' => 'adminpanel', // You may edit this to change admin panel url, e.g if "admin" url will be yourdomain.com/admin
            'dir' => 'admin2', // name of the dir inside ClixScript_PHP_DOCS where admin files are located
        ),
        "admin_panel_password" => '<<<_admin_panel_password_>>>',
    );
    
/**
* ------------------------------------------------------------------------------------------
*                             Users with admin permissions:
* ------------------------------------------------------------------------------------------
*/
    public static $__admins = array(
        'admin',
    );
    
/**
* ------------------------------------------------------------------------------------------
*                             Routes (path to files)
* ------------------------------------------------------------------------------------------
*/
    public static $__routes = array(
    
    "Home"                    => "index.php",
    "Contact"                 => "contact.php",
    "Register"                => "register.php",
    "Msg"                     => "common/message.php",
    "Login"                   => "login.php",
    "Login Social"            => "login_social.php",
    "Login Check"             => "login_check.php",
    "Lost"                    => "forgot_pw.php",
    "Rlp"                     => "forgot_pw_reset.php",
    "Support"                 => "support.php",
    "Success"                 => "success.php",
    "Act"                     => "activate.php",
    "Ipn"                     => "ipn.php",
    "Ipn_private_dir/ipn"     => "ipn.php", // Deprecated
    "TOS"                     => "tos.php",
    "FAQ"                     => "faq.php",
    "Privacy Policy"          => "privacy.php",
    
    "Account"                 => "account/panel.php",    
    "Account Settings"        => "account/settings.php",
    "Account Balance"         => "account/account_balance.php",
    "Upgrade"                 => "account/upgrade.php",
    "Purchase Balance"        => "account/purchase_balance.php",
    "Deposit"                 => "account/deposit.php",
    "Point"                   => "account/point.php",
    "Request Payment"         => "account/request_payment.php",
    "History"                 => "account/history.php",
    "Notifications"           => "account/notifications.php",
    "Transactions"            => "account/transactions.php",
       "Logout"                  => "account/logout.php",

    "Rent Referrals"          => "refs/account/rent.php",
    "View Referrals"          => "refs/account/view.php",
    "View Rented Referrals"   => "refs/account/view_rented.php",
    "Referring Tools"         => "refs/account/tools.php",
    "Shares"                  => "refshares/buy.php",
    "View Shares"             => "refshares/account/panel.php",
    "Ads"                     => "ads.php",
    "Advertise"               => "advertising.php",
    "Ptc Ads"                 => "ptc/ads.php",
    "V"                       => "ptc/view.php",
    "Sys"                     => "ptc/verify.php",    
    "Ptc Framekiller"         => "ptc/framekiller.php",
    "Ptc Panel"               => "ptc/account/panel.php",
    "Ptc Advertise"           => "ptc/buy.php",
    "Ptc Advertise Extend"    => "ptc/extend.php",
    "Country Target"          => "ptc/account/target.php",
    "Banner Advertise"        => "banner/buy.php",
    "Banner Advertise Extend" => "banner/extend.php",
    "Banner Ads"              => "banner/account/panel.php",

    //Administration
    "Admin Panel"             => "admin/main.php",
    );
}
if(!defined("NO_SIDEBAR")) {

if(    $_REQUEST["_doroute"] == "ptc-ads" OR $_REQUEST["_doroute"] == "faq" ) {

define("NO_SIDEBAR",true);

} else

define("NO_SIDEBAR",false);

}

if(defined('LOAD_VARS') AND LOAD_VARS === TRUE)
{
// Load configs from db:
Vars::load();
// Prepare certain configs:
Vars::$conf->payments->payment_processors = (array)json_decode(Vars::$conf->payments->payment_processors);
/**
* You may overwrite database configs here. If you prefer to store IPN and API keys
* in your config file instead of database (for security etc) then you may do so.
*
* Simply write code such as:
* <code>
*      Vars::$conf->payments->pp_user = 'mypaypal@email.com';     // Your IPN user account
*      Vars::$conf->payments->pp_api_user = 'mypaypal@email.com'; // Your API user account
*      Vars::$conf->payments->pp_api_signature = 'yoursecretkey';
*      Vars::$conf->payments->pp_api_password = 'yoursecretkey';
* </code>
*
* If you do this, it won't matter what's stored in database, each of these settings will be overwritten
* and what you write here is what will be used.
*/
}
Config::$language = 'en-en';

Now change these to your own details:
Code:
    "host"     => '<<<_host_>>>',
        "username" => '<<<_user_>>>',
        "password" => '<<<_pass_>>>',
        "database" => '<<<_db_>>>'

Code:
        "admin_panel_password" => '<<<_admin_panel_password_>>>',
so for example instead of '<<<_admin_panel_password_>>>' you would write 'mysecretpass'
Find all posts by this user
Quote this message in a reply
03-25-2013, 03:51 PM (This post was last modified: 03-25-2013 03:55 PM by Michael Pehl.)
Post: #18
RE: Version Updates (which files have changed)
Did the trick, mate.

So it's basically these 4 lines to be added to the beginning:

public static $language = 'en-us';
public static $is_plugin = false;
public static $plugin_id = false;

and at the end

Config::$language = 'en-en';

Could Config::$language = 'en-en'; be Config::$language = 'en-us'; , too ?
Got an error when installing Offerwall Script:

Critical DB Error!
Date: [25-03-2013 23:54:43]
MySQL Error: [Column count doesn't match value count at row 9]
Query: []
File: [/var/www/clients/client1/web82/web/cs/admin/main.php]
Line: [8332]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-25-2013, 04:07 PM
Post: #19
RE: Version Updates (which files have changed)
Ok, try this, find the file public_html/plugins/clix_offerwall/install/database.sql and copy this into it:
http://pastebin.com/Rcxr9qBp

now uninstall and install the offerwall plugin

let me know if it works or not
Find all posts by this user
Quote this message in a reply
03-25-2013, 04:14 PM
Post: #20
RE: Version Updates (which files have changed)
Anoth error:

Critical DB Error!
Date: [26-03-2013 00:13:50]
MySQL Error: [Duplicate column name 'clix_fb_share']
Query: []
File: [/var/www/clients/client1/web82/web/cs/admin/main.php]
Line: [8332]

Critical DB Error!
Date: [26-03-2013 00:13:51]
MySQL Error: [Duplicate column name 'mlm_ref_earnings_clix_offers_adv']
Query: []
File: [/var/www/clients/client1/web82/web/cs/admin/main.php]
Line: [8332]

Offerwall worked okay.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)