Beiträge von stegmuellerm

Ich habe einen Blog Artikel verfasst - Wie benutze ich die Suche richtig - Bitte diesen beachten und auch umsetzen bevor Ihr ein Neues Thema eröffnet!

    wo genau fügt Ihr denn:

    PHP
    1. echo 'Bei den restlichen ' . $restGames . ' Spielen kannst du noch maximal ' . $restPoints . ' Punkte erreichen.';
    2. echo '<br />';
    3. echo 'Du hast noch ' . $restBonus . ' offene Bonustipps, wo du maximal ' . $restBonusPoints . ' Punkte erreichen kannst.';

    ein ?


    Weil bei mir klappt das nicht dass es angezeigt wird

    bei php 5.6 kann es zu Problemen kommen


    und wenn du in der inc.config.php diese Zeile
    $CONFIG['OPTIN']['MAIL'] = ($row["optin"] == 'TRUE' ? true : false);


    nicht hast hast du noch eine alte Version des scripts

    hierzu kann ich nur sagen dass das Finale update Paket nicht die gleiche veränderungen drin hat wie das komplette Finale Paket.
    Auch fehlt ein Hinweis der veränderungen.


    ich hatte das update einfach wie beschrieben drübergespielt und die alten dateien überschrieben.



    Des weiteren ist mir aufgefallen, dass die Datei content/statistik.spiel.php in der aktuellen Version etwas sehr buggy ist.
    Mit der gleichen Datei die ein paar veränderungen hat aus der wm2014, funktioniert bei mir reibungslos die Anzeige der Spiele.

    Jungs ich habe das Problem etwas feiner gelöst:


    index.php im root Zeile 14 muss es so aussehen:


    Code
    1. if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {


    index.php im Verzeichnis m/ Zeile 17:

    Code
    1. $CONFIG['PATH'] = $CONFIG['PATH'] . $CONFIG['PATHM'];

    inc.config.php Zeile 75 & 76 muß so aussehen:



    Code
    1. $CONFIG['PATHM'] = "m/";
    2. $CONFIG['PAGE']['URLM'] = $CONFIG['PAGE']['URLBASE'] . $CONFIG['PATH']. $CONFIG['PATHM'];

    also diese config Zeile habe ich nicht.


    Und ja ich bekomme ne fatal error meldung, siehe:


    [Thu May 19 22:21:48.098392 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/em2016/include/inc.functions.php on line 3560, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.099456 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Notice: Undefined index: function in /var/www/em2016/content/shout.php on line 4, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101280 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Notice: Undefined variable: lPostID in /var/www/em2016/content/intern.content.php on line 47, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101307 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: implode(): Invalid arguments passed in /var/www/em2016/content/intern.content.php on line 47, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101382 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/em2016/content/intern.content.php on line 52, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101761 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: include_once(): open_basedir restriction in effect. File(../mynews/config.inc.php) is not within the allowed path(s): (/var/www/em2016/:/tmp/) in /var/www/em2016/mynews/mynews.inc.php on line 26, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101794 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: include_once(../mynews/config.inc.php): failed to open stream: Operation not permitted in /var/www/em2016/mynews/mynews.inc.php on line 26, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101818 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: include_once(): Failed opening '../mynews/config.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/em2016/mynews/mynews.inc.php on line 26, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101911 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: include_once(): open_basedir restriction in effect. File(../mynews/FCKeditor/fckeditor.php) is not within the allowed path(s): (/var/www/em2016/:/tmp/) in /var/www/em2016/mynews/mynews.inc.php on line 27, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101932 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: include_once(../mynews/FCKeditor/fckeditor.php): failed to open stream: Operation not permitted in /var/www/em2016/mynews/mynews.inc.php on line 27, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101952 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: include_once(): Failed opening '../mynews/FCKeditor/fckeditor.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/em2016/mynews/mynews.inc.php on line 27, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101966 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Notice: Undefined variable: pathtoscript in /var/www/em2016/mynews/mynews.inc.php on line 39, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.101979 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Notice: Undefined variable: datelang in /var/www/em2016/mynews/mynews.inc.php on line 41, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.102084 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: file(): open_basedir restriction in effect. File(../mynews/data.dat) is not within the allowed path(s): (/var/www/em2016/:/tmp/) in /var/www/em2016/mynews/mynews.inc.php on line 413, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.102102 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Warning: file(../mynews/data.dat): failed to open stream: Operation not permitted in /var/www/em2016/mynews/mynews.inc.php on line 413, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.102122 2016] [:error] [pid 13187] [client xx.xx.xx.xxx:54035] PHP Fatal error: Class 'mdasort' not found in /var/www/em2016/mynews/mynews.inc.php on line 414, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.202282 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.202350 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.203156 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.203475 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/em2016/include/inc.functions.php on line 168, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.204645 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined offset: 3 in /var/www/em2016/index.php on line 148, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.204684 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined offset: 3 in /var/www/em2016/index.php on line 158, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.206388 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined offset: 1 in /var/www/em2016/content/default.menu.php on line 52, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.206428 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined offset: 1 in /var/www/em2016/content/default.menu.php on line 53, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.207077 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined offset: 1 in /var/www/em2016/include/inc.content.php on line 197, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.207111 2016] [:error] [pid 13130] [client xx.xx.xx.xxx:54038] PHP Notice: Undefined offset: 1 in /var/www/em2016/include/inc.content.php on line 199, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.309613 2016] [:error] [pid 13294] [client xx.xx.xx.xxx:54039] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.309676 2016] [:error] [pid 13294] [client xx.xx.xx.xxx:54039] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.310663 2016] [:error] [pid 13294] [client xx.xx.xx.xxx:54039] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.310988 2016] [:error] [pid 13294] [client xx.xx.xx.xxx:54039] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/em2016/include/inc.functions.php on line 168, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.311954 2016] [:error] [pid 13294] [client xx.xx.xx.xxx:54039] PHP Notice: Undefined offset: 3 in /var/www/em2016/index.php on line 148, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/
    [Thu May 19 22:21:48.311984 2016] [:error] [pid 13294] [client xx.xx.xx.xxx:54039] PHP Notice: Undefined offset: 3 in /var/www/em2016/index.php on line 158, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/


    index.php on line 14 ist:
    if (preg_match('(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {


    index.php on line 38 ist:
    if (strpos(strtolower($_SERVER['ALL_HTTP']),'OperaMini') > 0) {

    ja


    hier der Auszug:



    [Thu May 19 22:06:52.670508 2016] [:error] [pid 13183] [client xx.xx.xx.xx:53684] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14
    [Thu May 19 22:06:52.670596 2016] [:error] [pid 13183] [client xx.xx.xx.xx:53684] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38
    [Thu May 19 22:06:52.672899 2016] [:error] [pid 13183] [client xx.xx.xx.xx:53684] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37
    [Thu May 19 22:06:52.876845 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14
    [Thu May 19 22:06:52.876951 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38
    [Thu May 19 22:06:52.877927 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37
    [Thu May 19 22:06:52.966211 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14
    [Thu May 19 22:06:52.966300 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38
    [Thu May 19 22:06:52.967307 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37
    [Thu May 19 22:06:57.899198 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:06:57.899293 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:06:57.900057 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53686] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:00.660406 2016] [:error] [pid 13183] [client xx.xx.xx.xx:53690] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:00.660518 2016] [:error] [pid 13183] [client xx.xx.xx.xx:53690] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:00.661805 2016] [:error] [pid 13183] [client xx.xx.xx.xx:53690] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:00.899108 2016] [:error] [pid 13187] [client xx.xx.xx.xx:53693] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:00.899246 2016] [:error] [pid 13187] [client xx.xx.xx.xx:53693] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:00.900434 2016] [:error] [pid 13187] [client xx.xx.xx.xx:53693] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:01.253631 2016] [:error] [pid 13187] [client xx.xx.xx.xx:53693] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:04.046296 2016] [:error] [pid 13187] [client xx.xx.xx.xx:53693] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:04.046411 2016] [:error] [pid 13187] [client xx.xx.xx.xx:53693] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:04.047556 2016] [:error] [pid 13187] [client xx.xx.xx.xx:53693] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:04.266267 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53694] PHP Warning: preg_match(): Unknown modifier '/' in /var/www/em2016/index.php on line 14, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:04.266364 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53694] PHP Notice: Undefined index: ALL_HTTP in /var/www/em2016/index.php on line 38, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:04.267373 2016] [:error] [pid 13130] [client xx.xx.xx.xx:53694] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: EM TIPPSPIEL 2016
    [Thu May 19 22:07:04.629243 2016] [:error] [pid 13183] [client xx.xx.xx.xx:53695] PHP Notice: Undefined index: otin in /var/www/em2016/include/inc.config.php on line 37, referer: https://em2016.vip-it-service.…tatistik/spiel/01/alle/1/


    inc.config.php on line 37 ist :
    $CONFIG['OPTIN']['MAIL'] = $row["otin"];

    also es war 1 User angelegt
    und in der hash-Tabelle waren 3 unterschiedliche hashwerte mit der selben userid


    es hat sich noch niemand weiteres angemeldet so dass ich es nicht sagen kann ob es noch mal vorkommen wird.


    Du kannst es ja versuchen und dann sag ich Dir das ergebnis hierzu

    {
    require_once "../include/inc.config.php";
    $CONFIG['PATH'] = $CONFIG['PATH'] . "/m/";
    }
    hier stimmt was nicht in der mobilen version


    Wer kann helfen, da auf meinem Tablet und auch auf meinem Handy (Galaxy S7) immer nur die richtige standard seite aufgeht und nicht die mobile !

    werden 3 Datensäte in der Datenbank unter User_hash angelegt, und somit taucht ein User bei der Registrierung dreimal auf.
    Dieser Fehler muß noch dringend behoben werden.


    Dieses Phänomen trat eben auf als sich ein User via Tablet (Samsung Galaxy S2 9.4) registrierte.

    Andere in der index.php dieses zeile 14 das / weg nehmen habe es aber nicht getestet
    if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {
    $mobile_browser++;

    funktioniert einwandfrei damit !
    Die andere Lösung die es hier im Forum gibt funktioniert nicht sauber