Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -2,25 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-11 13:01:38 -0500 (Wed, 11 Oct 2006) $
|
||||
| > $Revision: 628 $
|
||||
| > $Date: 2007-10-17 16:30:00 -0400 (Wed, 17 Oct 2007) $
|
||||
| > $Revision: 1133 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -333,8 +325,8 @@ class ad_paysubscriptions
|
||||
$this->ipsclass->DB->do_insert( 'subscription_methods', array( 'submethod_title' => $this->gateway->db_info['human_title'],
|
||||
'submethod_desc' => $this->gateway->db_info['human_desc'],
|
||||
'submethod_name' => $this->gateway->db_info['module_name'],
|
||||
'submethod_is_cc' => $this->gateway->db_info['allow_creditcards'],
|
||||
'submethod_is_auto' => $this->gateway->db_info['allow_auto_validate'],
|
||||
'submethod_is_cc' => intval($this->gateway->db_info['allow_creditcards']),
|
||||
'submethod_is_auto' => intval($this->gateway->db_info['allow_auto_validate']),
|
||||
'submethod_use_currency' => $this->gateway->db_info['default_currency'] ) );
|
||||
}
|
||||
|
||||
@@ -407,7 +399,7 @@ class ad_paysubscriptions
|
||||
// Already installed?
|
||||
//-------------------------------------------
|
||||
|
||||
if ( $methods[ $gateway ] )
|
||||
if ( isset($methods[ $gateway ]) AND $methods[ $gateway ] )
|
||||
{
|
||||
$installed = 1;
|
||||
}
|
||||
@@ -1345,10 +1337,10 @@ class ad_paysubscriptions
|
||||
'submethod_title' => $this->ipsclass->input['submethod_title'],
|
||||
'submethod_desc' => $this->ipsclass->txt_safeslashes( $_POST['submethod_desc'] ),
|
||||
'submethod_email' => $this->ipsclass->input['submethod_email'],
|
||||
'submethod_active' => $this->ipsclass->input['submethod_active'],
|
||||
'submethod_active' => intval($this->ipsclass->input['submethod_active']),
|
||||
'submethod_sid' => $this->ipsclass->input['submethod_sid'],
|
||||
'submethod_is_cc' => $this->ipsclass->input['submethod_is_css'],
|
||||
'submethod_is_auto' => $this->ipsclass->input['submethod_is_auto'],
|
||||
'submethod_is_cc' => intval($this->ipsclass->input['submethod_is_css']),
|
||||
'submethod_is_auto' => intval($this->ipsclass->input['submethod_is_auto']),
|
||||
'submethod_use_currency' => $this->ipsclass->input['submethod_use_currency'],
|
||||
);
|
||||
|
||||
@@ -1493,7 +1485,7 @@ class ad_paysubscriptions
|
||||
$this->ipsclass->html .= implode( "\n", $custom );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Activate this Gateway?</b><br />This will allow your members to use this option." ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Activate this Gateway?</b><br>This will allow your members to use this option." ,
|
||||
$this->ipsclass->adskin->form_yes_no("submethod_active", $row['submethod_active'] )
|
||||
) );
|
||||
|
||||
@@ -1951,6 +1943,11 @@ class ad_paysubscriptions
|
||||
|
||||
$end_date = $row['sub_unit'] == 'x' ? 'Lifetime' : $this->ipsclass->get_date( $row['subtrans_end_date'], 'JOINED', 1 );
|
||||
|
||||
if( !$row['sub_unit'] )
|
||||
{
|
||||
$end_date = '<i>N/A</i>';
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<center><input type='checkbox' name='subtrans_id_{$row['subtrans_id']}' value='1' /></center>" ,
|
||||
"<b><a href='{$this->ipsclass->vars['board_url']}/index.php?showuser={$row['subtrans_member_id']}' target='_blank'>{$row['name']}</a></b><br /><span style='color:green'>[ <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edittransaction&id={$row['subtrans_id']}' style='color:green'>Edit Transaction</a> ]</span>",
|
||||
"{$row['email']}",
|
||||
@@ -2223,11 +2220,24 @@ class ad_paysubscriptions
|
||||
$new_expiry = 9999999999;
|
||||
}
|
||||
|
||||
$groups = array();
|
||||
|
||||
foreach( $this->ipsclass->cache['group_cache'] as $id => $data )
|
||||
{
|
||||
if( $this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group']
|
||||
AND $id == $this->ipsclass->vars['admin_group'] )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$groups[] = $id;
|
||||
}
|
||||
|
||||
$save['subtrans_method'] = $this->ipsclass->input['subtrans_method'];
|
||||
$save['subtrans_end_date'] = $new_expiry;
|
||||
$save['subtrans_sub_id'] = $this->ipsclass->input['subtrans_sub_id'];
|
||||
$save['subtrans_state'] = $this->ipsclass->input['subtrans_state'];
|
||||
$save['subtrans_old_group'] = $this->ipsclass->input['subtrans_old_group'];
|
||||
$save['subtrans_old_group'] = in_array( $this->ipsclass->input['subtrans_old_group'], $groups ) ? $this->ipsclass->input['subtrans_old_group']: 0;
|
||||
$save['subtrans_paid'] = $this->ipsclass->input['subtrans_paid'];
|
||||
$save['subtrans_cumulative'] = $this->ipsclass->input['subtrans_paid'];
|
||||
|
||||
@@ -2340,11 +2350,14 @@ class ad_paysubscriptions
|
||||
|
||||
$groups = array( 0 => array( 0, "--Don't Change Group--" ) );
|
||||
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'g_id,g_title', 'from' => 'groups', 'order' => 'g_title' ) );
|
||||
$this->ipsclass->DB->exec_query();
|
||||
|
||||
while ( $r = $this->ipsclass->DB->fetch_row() )
|
||||
foreach( $this->ipsclass->cache['group_cache'] as $id => $r )
|
||||
{
|
||||
if( $this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group']
|
||||
AND $r['g_id'] == $this->ipsclass->vars['admin_group'] )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$groups[] = array( $r['g_id'], $r['g_title'] );
|
||||
}
|
||||
|
||||
@@ -2799,7 +2812,7 @@ class ad_paysubscriptions
|
||||
{
|
||||
if ( $mark == 'paid' )
|
||||
{
|
||||
$change_date = time() + ( $row['sub_length'] * $day_to_seconds[ $row['sub_unit'] ] );
|
||||
$change_date = $row['sub_length'] ? time() + ( $row['sub_length'] * $day_to_seconds[ $row['sub_unit'] ] ) : 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2893,7 +2906,7 @@ class ad_paysubscriptions
|
||||
$this->email->get_template("new_subscription");
|
||||
$this->email->build_message( array(
|
||||
'PACKAGE' => $row['sub_title'],
|
||||
'EXPIRES' => $this->ipsclass->get_date( $row['subtrans_end_date'], 'DATE' ),
|
||||
'EXPIRES' => $this->ipsclass->get_date( $row['subtrans_end_date'], 'DATE', 1 ),
|
||||
'LINK' => $this->ipsclass->vars['board_url'].'/index.'.$this->ipsclass->vars['php_ext'].'?act=paysubs&CODE=index',
|
||||
) );
|
||||
|
||||
|
||||
Reference in new issue
Block a user