The blog you are looking for cannot be found.
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earnCredits', $codeOwner['user_id'], $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370103727
[last_activity] => 1370104658
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370104657
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earnCredits', $codeOwner['user_id'], $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370105720
[last_activity] => 1370106638
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370106638
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes', 0, $codeOwner['user_id'], $iId );
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370106697
[last_activity] => 1370107020
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370107020
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370107644
[last_activity] => 1370107844
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370107842
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, 0, $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370107644
[last_activity] => 1370107844
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370107842
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, 0, $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370107644
[last_activity] => 1370107844
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370107842
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370107644
[last_activity] => 1370107844
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370107842
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370107644
[last_activity] => 1370107844
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370107842
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
Phpfox::getService('friend.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370107644
[last_activity] => 1370107844
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370107842
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
Phpfox::getService('friend.request.process')->add($codeOwner['user_id'], Phpfox::getUserId());
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370108940
[last_activity] => 1370109502
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370109500
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
Phpfox::getService('friend.request.process')->add($codeOwner['user_id'], Phpfox::getUserId());
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370239179
[last_activity] => 1370239324
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370239322
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
Phpfox::getService('friend.request.process')->add(Phpfox::getUserId(), $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370239537
[last_activity] => 1370239788
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370239782
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id']);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370239537
[last_activity] => 1370239788
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370239782
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = 'Somebody want you be his friend';
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370239947
[last_activity] => 1370240033
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370240032
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370240115
[last_activity] => 1370240235
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370240232
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: $profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
Phpfox_Debug::log('code owner: '.print_r($codeOwner, true));
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} code owner: Array
(
[user_id] => 1
[profile_page_id] => 0
[server_id] => 0
[user_group_id] => 1
[status_id] => 0
[view_id] => 0
[user_name] => admin
[full_name] => admin
[password] => 8b5ad15dbb0a3616019e02e2c0a7ac7e
[password_salt] => "KY
[email] => admin@shotpage.com
[gender] => 1
[birthday] => 07081986
[birthday_search] => 521164800
[country_iso] =>
[language_id] =>
[style_id] => 0
[time_zone] =>
[dst_check] => 0
[joined] => 1333628564
[last_login] => 1370325638
[last_activity] => 1370325736
[user_image] =>
[hide_tip] => 0
[status] =>
[footer_bar] => 0
[invite_user_id] => 0
[im_beep] => 0
[im_hide] => 0
[is_invisible] => 0
[total_spam] => 0
[last_ip_address] => 178.168.31.91
[cclastactivity] => 1370325727
[feed_sort] => 0
)
$profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} $profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} $profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} $profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} $profilesToInstall = $this->database()->select('profile_id')->from(Phpfox::getT('shotprofile'))->where('is_open=1')->execute('getRows');
$values = array();
foreach($profilesToInstall as $profile) {
$values[] = array('profile_id' => $profile['profile_id'], 'user_id' => $iId);
}
if (count($values))
{
$this->database()->multiInsert(Phpfox::getT('shotprofile_my'), array('profile_id', 'user_id'), $values);
} // Check if user entered a code value
$code = $aCustom[9];
if ($code != '') {
// get user by code
$codeOwner = Phpfox::getService('affiliatecodes')->codeOwner($code);
if ($codeOwner)
{
// get a discount from settings and make this discount for user that is registering now
$discount = Phpfox::getParam('affiliatecodes.affiliate_discount_percents') / 100.0;
Phpfox::getService('affiliatecodes')->addDiscount($iId, $aVals['package_id'], $discount, $code);
// add credits to afiiliate code owner
$creditsToAdd = Phpfox::getParam('affiliatecodes.affiliate_credits');
Phpfox::getService('credits')->addCredits($creditsToAdd, $codeOwner['user_id'], 'affiliate', 0);
// notificate code owner about new credits
Phpfox::getService('notification.process')->add('affiliatecodes_earn', 0, $codeOwner['user_id'], $iId );
// notificate user that he has a discount
Phpfox::getService('notification.process')->add('affiliatecodes_discount', 0, $iId, $iId);
// make them friends
$message = Phpfox::getPhrase('affiliatecodes.friend_request_by_affiliate_code');
Phpfox::getService('friend.request.process')->add($iId, $codeOwner['user_id'], 0, $message);
}
} /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$users = phpfox::getLib('database')->select('max(user_id) as user_id')
->from(phpfox::getT('user'))
->where(1)
->execute('getSlaveField');
$email_signup = phpfox::getLib('database')->select('email')
->from(phpfox::getT('user'))
->where('user_id = '.$users)
->execute('getSlaveField');
$contactimporter_user_id = phpfox::getLib('database')->select('DISTINCT inv.email')
->from(phpfox::getT('invite'),'inv')
->where(1)
->execute('getRows');
$emails = array();
foreach ($contactimporter_user_id as $key=>$email_contacts)
{
$emails[$key] = $email_contacts['email'];
}
if(in_array($email_signup,$emails))
{
$_SESSION['signup_plugin'] = 1;
} sVideoPath1: /home/shotpage/public_html/file/video/2013/06/c1fe7fe5d8484f91d6e3b7e700630426.flv
sVideoPath2: /home/shotpage/public_html/file/video/2013/06/c1fe7fe5d8484f91d6e3b7e700630426_forward2.flv
sVideoPath4: /home/shotpage/public_html/file/video/2013/06/c1fe7fe5d8484f91d6e3b7e700630426_forward4.flv
out: Array code: 0
out: Array code: 0
out: Array code: 0
before clip horizontal
flip horizontal begin
after clip horizontal
flipped image: Resource id #324 thumb output: /home/shotpage/public_html/file/pic/clip/2013/06/16709815813702118682052261145_flip.jpg
flip image start
flip horizontal begin
$flippedVerImage, $flippedVerImageOutputResource id #331,/home/shotpage/public_html/file/pic/clip/2013/06/203076006913702118671289412545_flip.jpg
cmd: /usr/local/bin/convert \( /home/shotpage/public_html/file/pic/clip/2013/06/19773012771370211867690335073.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/19773012771370211867690335073_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/1015697391370211867584215713.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/1015697391370211867584215713_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/127278558613702118671663774269.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/127278558613702118671663774269_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/19332625541370211867770712345.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/19332625541370211867770712345_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/12999899791370211867969782248.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/12999899791370211867969782248_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/12601585671370211867237297770.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/12601585671370211867237297770_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/621084041370211867360680218.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/621084041370211867360680218_flip.jpg +delete \) null: out: Array code:1
cmd: /usr/local/bin/convert \( /home/shotpage/public_html/file/pic/clip/2013/06/19773012771370211867690335073.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/19773012771370211867690335073_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/1015697391370211867584215713.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/1015697391370211867584215713_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/127278558613702118671663774269.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/127278558613702118671663774269_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/19332625541370211867770712345.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/19332625541370211867770712345_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/12999899791370211867969782248.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/12999899791370211867969782248_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/12601585671370211867237297770.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/12601585671370211867237297770_flip.jpg +delete \) \( /home/shotpage/public_html/file/pic/clip/2013/06/621084041370211867360680218.jpg -flop -write /home/shotpage/public_html/file/pic/clip/2013/06/621084041370211867360680218_flip.jpg +delete \) null: out: Array code:0
Array
(
[session] => 1cf832499e85024dc45666f691ebcb4d
[theme] => a:10:{s:8:"style_id";s:1:"6";s:15:"style_parent_id";s:1:"1";s:17:"style_folder_name";s:7:"default";s:17:"theme_folder_name";s:7:"tm_boom";s:15:"theme_parent_id";s:1:"1";s:12:"total_column";s:1:"2";s:7:"l_width";s:1:"0";s:7:"c_width";s:1:"0";s:7:"r_width";s:1:"0";s:19:"parent_style_folder";s:7:"default";}
[redirect] => /blog/62/un-jour-sommaire-petites-têtes-blondes-de/
)
Array ( )