Page 1 of 1

This Donation error

PostPosted: Mon Jul 03, 2006 8:02 am
Author: MrGrim
Warning: strpos(): Offset not contained in string. in /hsphere/local/home/traggy/dbyonline.net/lwdonateconfirm.php on line 85

How to fix it?

PostPosted: Wed Jul 05, 2006 3:19 am
Author: MrGrim
anybody?

Re: This Donation error

PostPosted: Wed Jul 05, 2006 9:21 am
Author: found it
A quick search at the authors site and this came up...

http://www.loewen.com.sg/bbs/viewtopic.php?p=1003#1003

:mrgreen:

PostPosted: Wed Jul 05, 2006 10:51 am
Author: ZacFields
Trag, to make it work completely you will also have to disable your DDos protection on your PHPBB Security. otherwise when paypal reports back to your site on a payment received, it will block paypal for a DDos attempt. I have no idea why.

If you don't want to disable your DDos protection you can always do as I do and enter your payment information into the ACP when you get the confirmation from paypal in your email.

Zac

PostPosted: Wed Jul 05, 2006 10:55 am
Author: MrGrim
"ZacFields";p="10910" wrote:Trag, to make it work completely you will also have to disable your DDos protection on your PHPBB Security. otherwise when paypal reports back to your site on a payment received, it will block paypal for a DDos attempt. I have no idea why.

If you don't want to disable your DDos protection you can always do as I do and enter your payment information into the ACP when you get the confirmation from paypal in your email.

Zac
wow that causes that problem? So when you disable..that error doesn't appear? I have bene having attacks lately..lol That might be a bad idea...But I will see if it works!! I hope you do know what i'm talking about..i get this error when I submit a payment. Thanks again for that info!!! <img>

PostPosted: Wed Jul 05, 2006 3:53 pm
Author: MrGrim
still no good.

Re: This Donation error

PostPosted: Wed Jul 05, 2006 4:00 pm
Author: found it
the error is not caused by the security mod...though you do need to set the security mod as stated above....

Did you do the file edits that are given in the link I gave you above.....

:mrgreen:

PostPosted: Wed Jul 05, 2006 4:09 pm
Author: MrGrim
yeah...the link you gave me..i looked in and saw nothing that look like what was stated.

look at my file. O notice the <?php turns to <php> when i'm using this code yall have.

Code: Select all
 <php>', '</Set> 0){     $sql = "SELECT r.rank_id, r.rank_title           FROM " . RANKS_TABLE . " r         WHERE r.rank_id = " . $userdata['user_rank'];     if ( ($resultr = $db->sql_query($sql)) )     {         if( $rowr = $db->sql_fetchrow($resultr) )         {             if(strcmp(trim($rowr['rank_title']), trim(VIP_RANK_TITLE)) == 0)             {                 $uservip = 1;             }         }       }}if( $userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD || $uservip == 1 ){     $message = $lang['Account_activated_lw'] . '<br><br>' .  sprintf($lang['Click_return_index'], '<a>', '</a>');     message_die(GENERAL_MESSAGE, $message);     exit;}  //get payment account, use business account first, if not exist, then choose personal account$paypalaccount = lw_grap_sys_paypal_acct();if(strlen($paypalaccount) <0>set_filenames(array(     'body' => 'lwtopup_body.tpl')     );    $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_type = " . GROUP_PAYMENT . " AND group_amount > 0";if ( !($result = $db->sql_query($sql)) ){         message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql);}$group_infos = array();if( ($group_info = $db->sql_fetchrow($result)) ){     do     {         $group_infos[] = $group_info;         }     while( $group_info = $db->sql_fetchrow($result) );}  $group_id = -1;if( isset($HTTP_POST_VARS['group_id']) || isset($HTTP_GET_VARS['group_id']) ){     $group_id = isset($HTTP_POST_VARS['group_id']) ? intval($HTTP_POST_VARS['group_id']) ]);}  //get arrays of the group this user subscribed to//$user_group_id = 0;//$user_grp_sub_recur = 0;//$user_current_memberfee = 0;$user_group_id = array();$user_grp_sub_recur = array();$user_current_memberfee = array();$sql = "SELECT ug.*, g.* FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g " . " WHERE g.group_type = " . GROUP_PAYMENT . " AND g.group_amount > 0 AND g.group_id = ug.group_id AND ug.user_id = " . $userdata['user_id'];if ( !($result = $db->sql_query($sql)) ){         message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql);}//$higheramount = 0;$higheramount = array();if( ($group_info = $db->sql_fetchrow($result)) ){     do     {//       if($group_info['group_amount'] > $higheramount)//       {             $higheramount[] = $group_info['group_amount'];             $user_group_id[] = $group_info['group_id'];             $user_current_memberfee[] = $group_info['group_amount'];             $user_grp_sub_recur[] = $group_info['group_sub_recurring'];//       }     }     while( $group_info = $db->sql_fetchrow($result) );}if($group_id <0> 0){     $group_id = $user_group_id[0];   }    $groupexplain = 'N/A';$groupname = '';  $amount_to_pay = 0;$group_period = 0;$group_period_basis = '';  $grp_sub_recur = 0;$group_first_trial_fee = 0;$group_first_trial_period = 0;$group_first_trial_period_basis = '';$group_second_trial_fee = 0;$group_second_trial_period = 0;$group_second_trial_period_basis = '';  $optiongroups = "";$optiongroups .= "<form><input><label><select>";$optiongroups .= "<option>" . $lang['LW_SELECT_A_GROUP'] . "</option>";for($i = 0; $i </option> 0) {         if($grp_sub_recur == 1) //mean auto-billing     {         $flag = 0;         $payinstruction .= $lang['L_IPN_Subscribe_term_title'];         //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_first_trial_period_basis) > 0 && strcasecmp($group_first_trial_period_basis, '0') != 0)         {             $payinstruction .= "<br>" . ($group_first_trial_fee <= 0 ? $lang['L_IPN_Subscribe_free'] : ($group_first_trial_fee . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_first'] . $group_first_trial_period . " " . lw_convert_period_basis($group_first_trial_period_basis);             $flag = 1;         }         //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_second_trial_period_basis) > 0 && strcasecmp($group_second_trial_period_basis, '0') != 0)         {             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_then'] . " " . ($group_second_trial_fee <= 0 ? $lang['L_IPN_Subscribe_free'] : ($group_second_trial_fee . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_next'] . $group_second_trial_period . " " . lw_convert_period_basis($group_second_trial_period_basis);             $flag = 1;         }         if($flag == 1)         {             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_then'] . " " . ($amount_to_pay <= 0 ? $lang['L_IPN_Subscribe_free'] : ($amount_to_pay . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_following'] . $group_period . " " . lw_convert_period_basis($group_period_basis);             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_auto_renew'];         }         else         {             $payinstruction .= "<br>" . ($amount_to_pay <= 0 ? $lang['L_IPN_Subscribe_free'] : ($amount_to_pay . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_every'] . $group_period . " " . lw_convert_period_basis($group_period_basis);             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_auto_renew'];         }                     }     else     {         $payinstruction .= $lang['L_IPN_Subscribe_term_manual'];                 $payinstruction .= "<br>" . ($amount_to_pay <0> 0 ) ? (strlen($board_config['script_path']) - 2) : 0;$pos = strpos($board_config['script_path'], '/', ( $slashpos ) );if($pos === false){     $server_url .= '/';}$notifyurl = $server_url . 'lwtopupresult.' . $phpEx;$returnurl = $server_url . 'lwtopupshowresult.' . $phpEx;    //$formaction = append_sid('lwtopupconfirm.'.$phpEx);//$lw_submit = '<input>';//$lw_submit_hidden_fields = '<input><input><input><input><input>';$formaction = '';$lw_submit = '';$lw_submit_hidden_fields = '';  $user_in_grp_flag = 0;for($j = 0; $j <count> 0)//{//   $l_group_to_pay = $lang['L_LW_GROUP_VIEW_DETAIL'];//   $formaction = '';//   if($user_grp_sub_recur == 1)//   {//       $lw_submit = 'If you want to subscribe to this group, you will have to <A>' . //               '<IMG></A> from your current group first. <br>Note: Your unsubscription will take effect when your current expiration date is reached.';//   }//   else//   {//       $lw_submit = "If you want to subscribe to this group, you have to wait untill the subscription of your current group expires. <br>You can also contact our administrator for help.";   //   }//}  //else if($group_id > 0)if($user_in_grp_flag == 0 && $group_id > 0){     if($grp_sub_recur == 1)     {         $formaction = $lang['L_IPN_Subscribe_paypal_sub_url'];         $lw_submit_hidden_fields = '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';           $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         //if there is trial period #1         //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_first_trial_period_basis) > 0 && strcasecmp($group_first_trial_period_basis, '0') != 0)         {             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';         }         //if there is trial period #2             //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_second_trial_period_basis) > 0 && strcasecmp($group_second_trial_period_basis, '0') != 0)         {             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';         }         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';                 $lw_submit = '<input>';         }     else     {         $formaction = $lang['L_IPN_Subscribe_paypal_sub_url'];           $lw_submit = '<input>';         $lw_submit_hidden_fields = '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';           $lw_submit_hidden_fields .= '<input>';           $lw_submit_hidden_fields .= '<input>';                     }     }      $template->assign_vars(array(         'U_INDEX'         => append_sid('index.'.$phpEx),         'L_INDEX'         => sprintf($lang['Forum_Index'], $board_config['sitename']),         'S_LW_TOPUP'         => append_sid('lwtopup.'.$phpEx),         'L_LW_TOPUP'         => $lang['LW_ACCT_DEPOSIT_INTO'],         'LW_PAYPAL_ACTION'   => $formaction,           'L_LW_TOPUP_TITLE'   => $lang['LW_TOPUP_TITLE'],             'L_LW_GROUP_TO_PAY'  => $l_group_to_pay,             'LW_GROUP_TO_PAY' => $optiongroups,         'L_LW_GROUP_EXPLAIN'     => $groupexplain,         'L_LW_GROUP_DESCRIPTION' => $lang['L_LW_GROUP_DESCRIPTION'],         'LW_UPGRADE_REMIND' => $payinstruction,         'L_LW_UPGRADE_REMIND' => $lang['L_LW_UPGRADE_REMIND'],         'LW_SUBMIT_HIDDEN_FIELDS' => $lw_submit_hidden_fields,         'LW_SUBMIT_ACTION' => $lw_submit,         )     );     // page$template->pparse('body');  include($phpbb_root_path . 'includes/page_tail.'.$phpEx);  ?>      

Re: This Donation error

PostPosted: Wed Jul 05, 2006 4:12 pm
Author: found it
So you didnt see the post above with the same error as you have and the fix straight underneath it....... :?: :?:

Or have you a different error to what you posted..... :?: :?:


:mrgreen:

Re: This Donation error

PostPosted: Wed Jul 05, 2006 4:14 pm
Author: MrGrim
Code: Select all
$pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));


This code I was loking for in my script..I can't find it to replace it with.

Code: Select all
$pos = true;if(strlen($board_config['script_path']) >= 2){    $pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));}

Re: This Donation error

PostPosted: Wed Jul 05, 2006 4:20 pm
Author: found it
back up the file

find
Code: Select all
$pos = strpos($board_config['script_path'], '/', ( $slashpos ) );


replace with

Code: Select all
$pos = true;if(strlen($board_config['script_path']) >= 2){    $pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));}


let me know what happens......if it doesnt work replace with the original file and we can try something else.....

:mrgreen:

PostPosted: Wed Jul 05, 2006 4:28 pm
Author: MrGrim
just replaced it. and still the same error.

Code: Select all
<php>', '</Set> 0){     $sql = "SELECT r.rank_id, r.rank_title           FROM " . RANKS_TABLE . " r         WHERE r.rank_id = " . $userdata['user_rank'];     if ( ($resultr = $db->sql_query($sql)) )     {         if( $rowr = $db->sql_fetchrow($resultr) )         {             if(strcmp(trim($rowr['rank_title']), trim(VIP_RANK_TITLE)) == 0)             {                 $uservip = 1;             }         }       }}if( $userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD || $uservip == 1 ){     $message = $lang['Account_activated_lw'] . '<br><br>' .  sprintf($lang['Click_return_index'], '<a>', '</a>');     message_die(GENERAL_MESSAGE, $message);     exit;}  //get payment account, use business account first, if not exist, then choose personal account$paypalaccount = lw_grap_sys_paypal_acct();if(strlen($paypalaccount) <0>set_filenames(array(     'body' => 'lwtopup_body.tpl')     );    $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_type = " . GROUP_PAYMENT . " AND group_amount > 0";if ( !($result = $db->sql_query($sql)) ){         message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql);}$group_infos = array();if( ($group_info = $db->sql_fetchrow($result)) ){     do     {         $group_infos[] = $group_info;         }     while( $group_info = $db->sql_fetchrow($result) );}  $group_id = -1;if( isset($HTTP_POST_VARS['group_id']) || isset($HTTP_GET_VARS['group_id']) ){     $group_id = isset($HTTP_POST_VARS['group_id']) ? intval($HTTP_POST_VARS['group_id']) ]);}  //get arrays of the group this user subscribed to//$user_group_id = 0;//$user_grp_sub_recur = 0;//$user_current_memberfee = 0;$user_group_id = array();$user_grp_sub_recur = array();$user_current_memberfee = array();$sql = "SELECT ug.*, g.* FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g " . " WHERE g.group_type = " . GROUP_PAYMENT . " AND g.group_amount > 0 AND g.group_id = ug.group_id AND ug.user_id = " . $userdata['user_id'];if ( !($result = $db->sql_query($sql)) ){         message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql);}//$higheramount = 0;$higheramount = array();if( ($group_info = $db->sql_fetchrow($result)) ){     do     {//       if($group_info['group_amount'] > $higheramount)//       {             $higheramount[] = $group_info['group_amount'];             $user_group_id[] = $group_info['group_id'];             $user_current_memberfee[] = $group_info['group_amount'];             $user_grp_sub_recur[] = $group_info['group_sub_recurring'];//       }     }     while( $group_info = $db->sql_fetchrow($result) );}if($group_id <0> 0){     $group_id = $user_group_id[0];   }    $groupexplain = 'N/A';$groupname = '';  $amount_to_pay = 0;$group_period = 0;$group_period_basis = '';  $grp_sub_recur = 0;$group_first_trial_fee = 0;$group_first_trial_period = 0;$group_first_trial_period_basis = '';$group_second_trial_fee = 0;$group_second_trial_period = 0;$group_second_trial_period_basis = '';  $optiongroups = "";$optiongroups .= "<form><input><label><select>";$optiongroups .= "<option>" . $lang['LW_SELECT_A_GROUP'] . "</option>";for($i = 0; $i </option> 0) {         if($grp_sub_recur == 1) //mean auto-billing     {         $flag = 0;         $payinstruction .= $lang['L_IPN_Subscribe_term_title'];         //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_first_trial_period_basis) > 0 && strcasecmp($group_first_trial_period_basis, '0') != 0)         {             $payinstruction .= "<br>" . ($group_first_trial_fee <= 0 ? $lang['L_IPN_Subscribe_free'] : ($group_first_trial_fee . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_first'] . $group_first_trial_period . " " . lw_convert_period_basis($group_first_trial_period_basis);             $flag = 1;         }         //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_second_trial_period_basis) > 0 && strcasecmp($group_second_trial_period_basis, '0') != 0)         {             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_then'] . " " . ($group_second_trial_fee <= 0 ? $lang['L_IPN_Subscribe_free'] : ($group_second_trial_fee . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_next'] . $group_second_trial_period . " " . lw_convert_period_basis($group_second_trial_period_basis);             $flag = 1;         }         if($flag == 1)         {             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_then'] . " " . ($amount_to_pay <= 0 ? $lang['L_IPN_Subscribe_free'] : ($amount_to_pay . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_following'] . $group_period . " " . lw_convert_period_basis($group_period_basis);             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_auto_renew'];         }         else         {             $payinstruction .= "<br>" . ($amount_to_pay <= 0 ? $lang['L_IPN_Subscribe_free'] : ($amount_to_pay . " " . $board_config['paypal_currency_code'])) . $lang['L_IPN_Subscribe_for_every'] . $group_period . " " . lw_convert_period_basis($group_period_basis);             $payinstruction .= "<br>" . $lang['L_IPN_Subscribe_auto_renew'];         }                     }     else     {         $payinstruction .= $lang['L_IPN_Subscribe_term_manual'];                 $payinstruction .= "<br>" . ($amount_to_pay <0> 0 ) ? (strlen($board_config['script_path']) - 2) : 0;$pos = true;if(strlen($board_config['script_path']) >= 2){    $pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));}if($pos === false){     $server_url .= '/';}$notifyurl = $server_url . 'lwtopupresult.' . $phpEx;$returnurl = $server_url . 'lwtopupshowresult.' . $phpEx;    //$formaction = append_sid('lwtopupconfirm.'.$phpEx);//$lw_submit = '<input>';//$lw_submit_hidden_fields = '<input><input><input><input><input>';$formaction = '';$lw_submit = '';$lw_submit_hidden_fields = '';  $user_in_grp_flag = 0;for($j = 0; $j <count> 0)//{//   $l_group_to_pay = $lang['L_LW_GROUP_VIEW_DETAIL'];//   $formaction = '';//   if($user_grp_sub_recur == 1)//   {//       $lw_submit = 'If you want to subscribe to this group, you will have to <A>' . //               '<IMG></A> from your current group first. <br>Note: Your unsubscription will take effect when your current expiration date is reached.';//   }//   else//   {//       $lw_submit = "If you want to subscribe to this group, you have to wait untill the subscription of your current group expires. <br>You can also contact our administrator for help.";   //   }//}  //else if($group_id > 0)if($user_in_grp_flag == 0 && $group_id > 0){     if($grp_sub_recur == 1)     {         $formaction = $lang['L_IPN_Subscribe_paypal_sub_url'];         $lw_submit_hidden_fields = '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';           $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         //if there is trial period #1         //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_first_trial_period_basis) > 0 && strcasecmp($group_first_trial_period_basis, '0') != 0)         {             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';         }         //if there is trial period #2             //only allow trial period for new members (whose $userdata['user_expire_date'] <= 0 )         if($userdata['user_expire_date'] <0> 0 && strlen($group_second_trial_period_basis) > 0 && strcasecmp($group_second_trial_period_basis, '0') != 0)         {             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';             $lw_submit_hidden_fields .= '<input>';         }         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';                 $lw_submit = '<input>';         }     else     {         $formaction = $lang['L_IPN_Subscribe_paypal_sub_url'];           $lw_submit = '<input>';         $lw_submit_hidden_fields = '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';         $lw_submit_hidden_fields .= '<input>';           $lw_submit_hidden_fields .= '<input>';           $lw_submit_hidden_fields .= '<input>';                     }     }      $template->assign_vars(array(         'U_INDEX'         => append_sid('index.'.$phpEx),         'L_INDEX'         => sprintf($lang['Forum_Index'], $board_config['sitename']),         'S_LW_TOPUP'         => append_sid('lwtopup.'.$phpEx),         'L_LW_TOPUP'         => $lang['LW_ACCT_DEPOSIT_INTO'],         'LW_PAYPAL_ACTION'   => $formaction,           'L_LW_TOPUP_TITLE'   => $lang['LW_TOPUP_TITLE'],             'L_LW_GROUP_TO_PAY'  => $l_group_to_pay,             'LW_GROUP_TO_PAY' => $optiongroups,         'L_LW_GROUP_EXPLAIN'     => $groupexplain,         'L_LW_GROUP_DESCRIPTION' => $lang['L_LW_GROUP_DESCRIPTION'],         'LW_UPGRADE_REMIND' => $payinstruction,         'L_LW_UPGRADE_REMIND' => $lang['L_LW_UPGRADE_REMIND'],         'LW_SUBMIT_HIDDEN_FIELDS' => $lw_submit_hidden_fields,         'LW_SUBMIT_ACTION' => $lw_submit,         )     );     // page$template->pparse('body');  include($phpbb_root_path . 'includes/page_tail.'.$phpEx);  ?>  

Re: This Donation error

PostPosted: Sat Jul 22, 2006 3:58 pm
Author: lordtopcat
Open
Code: Select all
lwdonateconfirm.php


Find
Code: Select all
$pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));


Replace With
Code: Select all
$$pos = true;if(strlen($board_config['script_path']) >= 2){    $pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));}


Save and Close all Files

Code: Select all
EoM