It is currently Sun Aug 01, 2010 6:54 am

All times are UTC + 1 hour [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 
  Print view Previous topic | Next topic 
Author Message
 Post subject: HLStats 1.36 release
PostPosted: Wed Apr 30, 2008 3:54 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
Hello everyone I'm proud to present the new HLStats 1.36 release as of today.

It has be done with the help of the hlstats community and myself as the only developer.

ChangeLog
Code:
1.36 (released 2008-04-29)
*) New: Adding and removing a game via Web-Interface
*) New: New weapon pics and new game Icons and more
*) New: Admin has now a logout function
*) New: Team Fortress 2 support
*) New: Web installer
*) Changed: Fixed layout bugs
*) Changed: Login settings, should be saver now
*) Changed: Constant PLATFORM was never used
*) Alot of stuff I can't even remember..


Release Notes
This release has been build with the help of the hlstats community.
The main features of this release are fixing all the bugs from the bug tracker.
and inlcude new features.
Also update the php and HTML code and make it more safe for any XSS attack.
(I hope I found everything...)
Another new feature is the support for Team Fortress 2 for free !!
Adding game support can now be done via the admin interface, so there is no need for any import of sql files.

Install
This release includes the new web installer.
Everyone should use the new installer, but you can still do the install the old way.
But then make sure you protect your install folder (there is a htaccess.php file in it which can just renamed to .htaccess)


Download
HLStats-community.org
Sourceforge


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Thu May 01, 2008 9:29 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
well well I see ppl downloading, but no reply yet ??
is this good or bad ?


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Thu May 01, 2008 11:39 pm 
Former HLStats team
User avatar

Joined: Tue Dec 11, 2007 1:05 am
Posts: 166
Location: Germany
They are testing :) .

In my installation "STEP 4 " just shows nothing, but i try to find out why...

Badi


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Fri May 02, 2008 2:29 am 
Former HLStats team
User avatar

Joined: Tue Dec 11, 2007 1:05 am
Posts: 166
Location: Germany
Ok, aaalso:

Fehler wurden nicht angezeigt, weil in meiner Installation von php die Fehlermeldungen ausgeschaltet waren ;/ . Nach dem Einschalten kommen bereits bei Step 1 diverse Berechtigungs-Fehler wegen der Session-Variablen, welche sich nicht schreiben lies. Was sehr wahrscheinlich daher kommt, weil ich mir den Luxus einer automatischen php-Installation gegönnt habe, die als Session-Verzeichnis das Temp-verz. des Admins benutzt, worauf der Webuser natürlich keine Schreibrechte hat. Ausmarkieren dieser Zeile hat geholfen:

;session.save_path="C:\DOKUME~1\ADMINI~1\LOKALE~1\Temp\php\session"

Wenn ich nun die Fehlermeldungen eingeschaltet lasse, medlet er

"Notice: Undefined index: step in C:\Inetpub\wwwroot\hlstats\web\install\index.php on line 352"

was man aber glaube ich ignorieren kann und eh verschwindet wenn man die Fehler wieder ausschaltet.

Wenn es dann zum schreiben der configs kommt, meldet er beide Dateine als nicht beschreibbar. Was auch stimmt, da der Webuser keine Rechte drauf hat. Das klappt auch nicht obwohl im Status am Anfang alles grün angezeigt wird! ich vermute ein

Code:
$fh = fopen("../../daemon/hlstats.conf","rw");


als Schreibtest genügt nicht. Zumindest bei Windows ;D . Nachdem ich die Rechte erteilt hatte klappte es dann. Beim starten von hlstats.php gabs dann einen:

Code:
Fatal error: Call to undefined function error() in C:\Inetpub\wwwroot\hlstats\web\hlstats.php on line 74


Naja, die entsprechende Variable in der php.ini war faslch gesetzt, aber ein fatal error sollte php ja nicht melden, oder? Nach dem setzen der Varibalen startet dann auch das Hauptmenü. Und morgen werd ich weiter testen :D .

mfg
Badi


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Fri May 02, 2008 9:24 am 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
aha dankeschön !!!

Quote:
Notice: Undefined index: step in C:\Inetpub\wwwroot\hlstats\web\install\index.php on line 352

nun ja notice sind eigentlich per default ausgeblendet.
Denn man schaft es kaum diese zu umgehen.

der fatal error sollte eigentlich melden, dass magic_quotes_gpc angeschaltet werden sollen.
Was für eine php,webserver version hast du ?
denn das alles sieht mir nach windows problemen aus.


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Fri May 02, 2008 10:49 am 
Former HLStats team
User avatar

Joined: Tue Dec 11, 2007 1:05 am
Posts: 166
Location: Germany
php 5.2.5 und IIS6.

Das Prob mit den configs und die php-Variablenabfrage werd ich nochmal untersuchen. Glaub nicht dass es an Windows liegt :eek: :) .

mfg
Badi


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Fri May 02, 2008 3:29 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
oder vielleich am IIS....


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Thu May 08, 2008 2:15 am 
Former HLStats team
User avatar

Joined: Tue Dec 11, 2007 1:05 am
Posts: 166
Location: Germany
Hallo!

Also das Problem mit dem Status stellt sich für mich inzwischen so dar: Der Parameter "rw" für fopen ist in php (zumindest 4/5) so nicht möglich, bzw. verhält sich anders als erwartet (nämlich wird die Datei nur lesend geöffnet). Auch in der php-doku steht das eigentlich so:

http://de3.php.net/manual/de/function.fopen.php

Will man eine Datei lesend und schreibend öffnen muss man "r+" verwenden. Beliebiges mischen der Parameter geht nicht. Das hier liefert zwar für open/ok, man kann aber trotzdem nicht schreiben:

Code:
<?php
//Mit Schreibberechtigung:
// ergebnis: open hat geklappt/fwrite kann nicht schreiben

$fh = fopen("test.txt","rw");

if ($fh == true ) {
echo "open hat wohl geklappt...(?) <br>";
} else {
echo "open nicht möglich.<br>";
}

if (!fwrite($fh, "XXX")) {
   print "fwrite kann in die Datei nicht schreiben <br>";
}else{
   print "fwrite hat geklappt.<br>";
}

fclose($fh);

?>


Mit "r+" kann man dann auch schreiben.

Als nächstes müsste man klären was passiert wenn die Datei nicht beschreibbar ist wegen Fileberechtigungen. Also wenn ich das rw auf r+ ändere sollte der status ja rot werden...wird er aber nicht. Er wird grau bzw. gleiche Farbe wie die Zeile in der er steht(?).

Hmm..komisch...wenn ich bei der Abfrage im negativen fall die Variable explizit auf "false" setze klappts...obwohl unten ja nur auf true abgefragt wird. Naja, also so klappts mit den Farben:

Code:
$fh = fopen("../hlstatsinc/hlstats.conf.inc.php","r+");
if($fh) $fhConfWeb = true; else $fhConfWeb = false;
fclose($fh);

$fh = fopen("../../daemon/hlstats.conf","r+");
if($fh) $fhConfDaemon = true; else $fhConfDaemon = false;
fclose($fh);


mfg
Badi

PS: W2k3/IIS6/PHP5
PPS: Nein, ich glaub nicht, dass das nur ein Windows Problem ist!-)


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Thu May 08, 2008 9:30 am 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
ok das war anscheinend ein fehler von mir.

ist im svn/trunk gefixed und wird dann im neuen release dabei sein.

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Sat May 10, 2008 1:51 am 
Former HLStats team
User avatar

Joined: Tue Dec 11, 2007 1:05 am
Posts: 166
Location: Germany
Hab den zweiten fehler mit der php.ini-varibalen auch gefunden: Die Funktion "error" wird benutzt, obwohl sie noch nicht definiert ist. Einfach die Includes etwas höher setzen und fertig (siehe Anhang) :D .

Image

mfg
Badi

PS: Wie ist denn hier die "attachement-quota" eingestellt? Einen 30kb Anhang kann man nicht hochladen??


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Sat May 10, 2008 9:10 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
oh danke ;-)

das dies nicht aufgefallen ist, liegt einfach daran, dass anscheinend segr selten die abfragen zutreffen.

Mach mal hier einen Bug dazu auf:
https://sourceforge.net/tracker/?group_ ... tid=120371
(man muss nicht angemeldet sein dafür.)

hmm das attachment limit...keine Ahnung.
aber vielleicht lag es einfach an der datei bzw. Endung der Datei

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Fri May 16, 2008 9:50 pm 
Newbie
Newbie
User avatar

Joined: Mon Feb 18, 2008 6:01 pm
Posts: 34
Location: Sweden
Is this release only for germans? If not, why is all the posts in german?

Here is some english feedback that more than germany can understand:

When running the installer I get the following:
Code:
Start

Step 1

Step 2

Step 3

Step 4

Notice: Undefined index: step in /usr/local/pem/vhosts/126968/webspace/httpdocs/hlstats/install/index.php on line 352 Warning: fopen(../../daemon/hlstats.conf): failed to open stream: No such file or directory in /usr/local/pem/vhosts/126968/webspace/httpdocs/hlstats/install/index.php on line 730 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/pem/vhosts/126968/webspace/httpdocs/hlstats/install/index.php on line 732
Probably because deamon is not part of what you upload to the webhost, only the "web" folder. Another reason is that you can have 2 different ways of connecting to the DB, internally (localhost) and externally (IP). You should consider having one config-file for the web and one for the machine running the actual deamon.


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Sat May 17, 2008 2:05 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
thx for positing this in english.
the "official" language is english ;-)

Quote:
Notice: Undefined index: step in

the notice comes from the error setting in PHP.
in most cases all notices will be not shown.

the installer is not the best, I know.
you can suggest any Ideas to improve the installer by posting your thoughts here:
viewtopic.php?f=16&t=1009

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: HLStats 1.36 release
PostPosted: Sat May 17, 2008 3:26 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1258
Location: Germany
Badi wrote:
Hab den zweiten fehler mit der php.ini-varibalen auch gefunden: Die Funktion "error" wird benutzt, obwohl sie noch nicht definiert ist. Einfach die Includes etwas höher setzen und fertig (siehe Anhang) :D .

Image

mfg
Badi

PS: Wie ist denn hier die "attachement-quota" eingestellt? Einen 30kb Anhang kann man nicht hochladen??

fixed....

_________________
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
skymiles v1.1 designed by CodeMiles Team -TemplatesDragon-.