X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=beg.php;h=5114836eb16db9ff3e76d491993af5bb349fa250;hb=afa8c0723fc669807ac9e2b675db5b49a6761f5b;hp=226e198a44191dc884702c4184b93b45adec057a;hpb=96e99262a97d399f98bb92bc11a5fc9c140ca388;p=mailer.git diff --git a/beg.php b/beg.php index 226e198a44..5114836eb1 100644 --- a/beg.php +++ b/beg.php @@ -11,7 +11,7 @@ * Kurzbeschreibung : Bettel-Link fuer Mitglieder * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -41,8 +41,8 @@ $GLOBALS['__module'] = 'beg'; $GLOBALS['__output_mode'] = '0'; $errorCode = NULL; -// Load the required file(s) -require('inc/config-global.php'); +// Initialize application +require('inc/init.php'); // Set content type setContentType('text/html'); @@ -104,7 +104,7 @@ if (isGetRequestElementSet('userid')) { // Entry not found, points set and not logged in? //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'SQL_HASZERONUMS()=' . intval(SQL_HASZERONUMS($result)) . ',isAdmin()=' . intval(isAdmin()) . ',points=' . $points . ',isMember()=' . intval(isMember()) . ',getBegPayMode()=' . getBegPayMode()); - if ((ifSqlHasZeroNums($result)) && ($points > 0) && (getBegPayMode() == 'NONE') && ((!isMember()) || (isAdmin()))) { + if ((ifSqlHasZeroNumRows($result)) && ($points > 0) && (getBegPayMode() == 'NONE') && ((!isMember()) || (isAdmin()))) { // Default is result from isAdmin(), mostly false $isPayed = isAdmin();