Skip to content

Commit

Permalink
Version 0.895
Browse files Browse the repository at this point in the history
Fehler beim erfassen eines MA

In der Datei ./Data/users.txt
darf am Schluss keine leere Zeile sein.
  • Loading branch information
it-m-h committed Sep 23, 2014
1 parent 7da9203 commit 65e6dda
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
24 changes: 23 additions & 1 deletion .gitignore
@@ -1 +1,23 @@
.idea
#PHP - Storm
.idea

#Codelobster - IDE
*.clpprj

# Can also ignore all directories and files in a directory.
Data/*

This comment has been minimized.

Copy link
@simonschaufi

simonschaufi Sep 23, 2014

Contributor

ups, das war leider ein Schnellschuss. Data/vorlage sollte weiterhin getrackt werden.

This comment has been minimized.

Copy link
@it-m-h

it-m-h Sep 23, 2014

Author Owner

Jein..... denn ich hab mehrere Mitarbeiter dann kann ich das gleich Testen und immer diese dann deaktivieren ist mühsam. Und neuer Code bin ich der Meinung, dass der alles selber erstellen sollte also die Vorlage anpassen oder so schreiben, dass es keine mehr braucht. (wollte eh die Vorlage ganz weg bringen, damit die gar nicht mehr gebraucht wird)

This comment has been minimized.

Copy link
@simonschaufi

simonschaufi Sep 23, 2014

Contributor

(wollte eh die Vorlage ganz weg bringen, damit die gar nicht mehr gebraucht wird)

ok, umso besser! Kleiner Tipp: mit Ausrufezeichen kann man auch Ordner/Dateien wieder negieren.

Data/administrator/*
debug/*

# Windows Installer files

This comment has been minimized.

Copy link
@simonschaufi

simonschaufi Sep 23, 2014

Contributor

these are not really necessary.

This comment has been minimized.

Copy link
@it-m-h

it-m-h Sep 23, 2014

Author Owner

naja.... ich hatte ein thumbs.db das mit meinem nicht übereinstimmt...... Recycle und Windows lass ich das nächste mal drin, das andere lösche ich dann

*.cab
*.msi
*.msm
*.msp

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows image file caches
Thumbs.db
ehthumbs.db
2 changes: 1 addition & 1 deletion admin.php
Expand Up @@ -2,7 +2,7 @@
/********************************************************************************
* Small Time
/*******************************************************************************
* Version 0.894
* Version 0.895
* Author: IT-Master GmbH
* www.it-master.ch / info@it-master.ch
* Copyright (c) , IT-Master GmbH, All rights reserved
Expand Down
2 changes: 1 addition & 1 deletion include/Settings/smalltime.txt
@@ -1,2 +1,2 @@
0.894
0.895
http://www.small.li/update
6 changes: 5 additions & 1 deletion include/class_user.php
Expand Up @@ -2,7 +2,7 @@
/*******************************************************************************
* User - Daten
/*******************************************************************************
* Version 0.872
* Version 0.895
* Author: IT-Master GmbH
* www.it-master.ch / info@it-master.ch
* Copyright (c) , IT-Master GmbH, All rights reserved
Expand Down Expand Up @@ -105,6 +105,10 @@ function set_user_data($_id,$pfad,$loginname,$passwort,$rfid){
$_users= file("./Data/users.txt");
if($_POST['absenden'] == "OK"){
Global $_id;
if (count($_users) == ($_id+1)){
$_zeilenvorschub = "";
}
//echo count($_users);

This comment has been minimized.

Copy link
@simonschaufi

simonschaufi Sep 23, 2014

Contributor

please don't add more debugging lines. better remove them totally before committing. keep code clean.

This comment has been minimized.

Copy link
@it-m-h

it-m-h Sep 23, 2014

Author Owner

ja ........ kann auch alle auf Knopfdruck entfernen wenn gewünscht.

This comment has been minimized.

Copy link
@simonschaufi

simonschaufi Sep 23, 2014

Contributor

Ich würde dir eine IDE empfehlen, wo debugging schon mit integriert ist wie z.b. PhpStorm ;)

This comment has been minimized.

Copy link
@it-m-h

it-m-h Sep 24, 2014

Author Owner

ich hab seit einer Weile Codelobster (hat auch wie PhpStorm alles drin, ist aber preiswerter) vorher hab ich immer mit einem Editor gearbeitet und hab halt immer noch alte Gewohnheiten in mir :)

Ach ja und ich brauch alles Portable auf einer USB - HD weil ich an sehr vielen unterschiedlichen Rechnern bin und mit PhpStorm geht das glaub nicht.

//echo $_users[$_id];
//$_user = $_users[$_id];
//echo $_user;
Expand Down

0 comments on commit 65e6dda

Please sign in to comment.