File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 9090 'BackwardYears ' => 60 , // (Visual) The number of years to display behind the current year in date inputs.
9191 'ColumnSortAscending ' => ' ▲ ' , // (Visual) Text displayed for ascending sorted column names.
9292 'ColumnSortDescending ' => ' ▼ ' , // (Visual) Text displayed for descending sorted column names.
93+ 'DisplayCashPoints ' => false , // Whether or not to display "Cash Points" instead of the player's "Credits" in the control panel.
9394 'CreditExchangeRate ' => 1.0 , // The rate at which credits are exchanged for dollars.
9495 'MinDonationAmount ' => 2.0 , // Minimum donation amount. (NOTE: Actual donations made that are less than this account won't be exchanged)
9596 'DonationCurrency ' => 'USD ' , // Preferred donation currency. Only donations made in this currency will be processed for credit deposits.
Original file line number Diff line number Diff line change 240240
241241 $ itemAttributes = Flux::config ('Attributes ' )->toArray ();
242242 $ type_list = Flux::config ('ItemTypes ' )->toArray ();
243+
244+ if (Flux::config ('DisplayCashPoints ' )) {
245+ $ regTable = 'acc_reg_num ' ;
246+ $ sql = "SELECT * FROM {$ server ->loginDatabase }. {$ regTable } WHERE `key` = '#CASHPOINTS' AND account_id = ? " ;
247+ $ sth = $ server ->connection ->getStatement ($ sql );
248+ $ sth ->execute (array ($ accountID ));
249+ $ account ->balance = $ sth ->fetch ()->value ;
250+ }
251+
243252}
244253?>
You can’t perform that action at this time.
0 commit comments