rathena / FluxCP

Undefined constants must not be used PHP-W1038
Bug risk
Critical
5 occurrences in this check
Constant FLUX_DATA_DIR not found
1390            include FLUX_DATA_DIR.'/paypal/button.php';
1391        }
1392        if (in_array("stripe", Flux::config('PaymentGateway')->toArray())) {
1393            include FLUX_DATA_DIR.'/stripe/button.php';1394        }
1395
1396		$button = ob_get_clean();
Constant FLUX_DATA_DIR not found
1387	{
1388		ob_start();
1389        if (in_array("paypal", Flux::config('PaymentGateway')->toArray())) {
1390            include FLUX_DATA_DIR.'/paypal/button.php';1391        }
1392        if (in_array("stripe", Flux::config('PaymentGateway')->toArray())) {
1393            include FLUX_DATA_DIR.'/stripe/button.php';
Constant FLUX_DATA_DIR not found
 94	public function __construct(Flux_Athena $server)
 95	{
 96        $this->server          = $server;
 97		$this->logStripe       = new Flux_LogFile(FLUX_DATA_DIR.'/logs/stripe.log'); 98		$this->creditsTable    = Flux::config('FluxTables.CreditsTable');
 99        $this->txnTable        = Flux::config('FluxTables.StripeTransactions');
100        $this->txnLogTable     = Flux::config('FluxTables.StripeTransactionLogTable');
Constant FLUX_DATA_DIR not found
481	private function saveDetailsToFile()
482	{
483		if ($this->txnIsValid) {
484			$logDir1 = realpath(FLUX_DATA_DIR.'/logs/transactions');485			$logDir2 = $logDir1.'/'.$this->ipnVariables->get('txn_type');
486			$logDir3 = $logDir2.'/'.$this->ipnVariables->get('payment_status');
487			$logFile = $logDir3.'/'.$this->ipnVariables->get('txn_id').'.log.php';
Constant FLUX_DATA_DIR not found
 79	 */
 80	public function __construct(array $ipnPostVars)
 81	{
 82		$this->ppLogFile       = new Flux_LogFile(FLUX_DATA_DIR.'/logs/paypal.log'); 83		$this->ppServer        = Flux::config('PayPalIpnUrl');
 84		$this->myBusinessEmail = Flux::config('PayPalBusinessEmail');
 85		$this->myCurrencyCode  = strtoupper(Flux::config('DonationCurrency'));