Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I make a new Version 1.2 , my last #16

Open
GoogleCodeExporter opened this issue Aug 15, 2015 · 4 comments
Open

I make a new Version 1.2 , my last #16

GoogleCodeExporter opened this issue Aug 15, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I tray as beginner by coding to put some more options.

New Futurs:
===========
Phonenumber, IP saving by create(shown only in mysql) or reservation ip(shown 
by amdin),captcha protection,Loginname show and function of, not show private 
user data to other user (enabled/disable), fix for mobiles, 3times false login 
start a captcha login. Reservation Table with the Date by Weekday. Smaller 
Table Letter, Accounts Limit in AdminControlPanel .

Maybe somthing more...

On the remainders.php i don't make any changes. I think it shout work. Because 
i never heard issues ther in the wiki. I not testet.


Small Faults:
==============
Some of my Variable gives a small errore in apache log.  Not defined. But 
works, if someone like to fix.


Info:
=====
I stop supporting phpmyreservation. Maybee the owner of the porject make small 
stuff inside.


Idees to put in the porject:
=============================
Download Reservation for Admin as File:
----------------------------------------
A download.php for all Reservation to a comma seperated file, in the Admin 
Control Panel a Button for that.
Somthing like this:
 <a href="download.php?mode=userlist" target="_new">
 header("Content-Type: text/csv");
 attachment;filename=userlist.csv");
 echo $die_daten;




http://code.stephenmorley.org/php/creating-downloadable-csv-files/
 fputcsv() is the magic :)
 $output = fopen('php://output', 'w');
 fputcsv($output, array('Name', 'Datum', 'Fahrzeug'));
 // SELECT irgendwas in $daten_array
: while(mehr daten..) fputcsv($output, $daten_array);


Year increment:
---------------
At the moment it is not on any place in the code.  It is a little bit work.

notify.php for the Admin
---------------------------
enable/disable in config for that, or in control panel for each Admin

Admin can make Reservation for other users.
-----------------------------------------------


Admin/ControlPanel Table Letter Size
-------------------------------------
I make it smaller in CSS/style.css
Padding is the linefeed size.

New:
table#users_table th, table#users_table td
{
    padding: 1px;
    font-size: 12px;
}

Old:
table#users_table th, table#users_table td
{
    padding: 5px;
}
You can also do, or size you like:
{
    padding: 5px;
    font-size: 14px;
}

If someone like big letter, he can change bak.

Installation:
=============
MySQL:
-Create with phpmyadmin a Database, or by hand.
-Import to that Database the phpmyreservation_v12.sql

/var/www: (Apache Server http)
-Extract the www contens to your webserver
-Maybe correct the owner of the files in the webserver (Permissions)
(Debian somethimes need www-data.www-data, i think my new Debian Jessie have  
root.root new. From the file rights comes the most Problems in use and database 
contact. If you have mysql faults, go check the file permissions.)

And Good Luck!
The first Login User gets Admin rights.

Original issue reported on code.google.com by donit...@gmail.com on 5 Feb 2015 at 1:24

Attachments:

@GoogleCodeExporter
Copy link
Author

In linux permissions to set:

chown -R www-data.www-data  phpmyreservation  (For Folder and SubDirs)

Original comment by donit...@gmail.com on 5 Feb 2015 at 2:22

@GoogleCodeExporter
Copy link
Author

I have about 5 Variables they make apache error.log entrys.  Not definied Error.

But if i define in the main.php , i lose the function of these variables.

Like,  login_trays counter will not count, or user_captchacode will not work 
proper.

So a roboter can make by the login so long he want. Or a other way like many 
new user creater roboter by just browser cache clean will do without  a correct 
working captcha control. It just takes a emtpy captcha input a ok.

So like now how it is, it works all. All hacks are handled well.  So the small 
error.log in apache is the smaller problem. 

My Problem is, allways a wrong login starts a ne $_Session() ID, because it 
reloads the site.  So i don't know how to define only onetime. Only ones. 

So, i let it , for a freak , he also check all the robotor bots tricks. Like 
clean cache and stuff in bad virtual browser code.


I just can say, like now it works correct.

Original comment by donit...@gmail.com on 5 Feb 2015 at 10:18

@GoogleCodeExporter
Copy link
Author

The reminder.php i test by a debian install with real postfix server. It works 
like describben from the project owner. No problems. 

Original comment by donit...@gmail.com on 5 Feb 2015 at 10:33

@GoogleCodeExporter
Copy link
Author

I tray in main.php for these Variables Define Problem, but don't work.

// Variables to set ones
if(!isset($_SESSION['exists'])){
    //handle completely new session here
$_SESSION['login_trays']='';
}

...or  
// Variables to set ones
if(empty($_SESSION['exists'])){
    //handle completely new session here
$_SESSION['login_trays']='';
}


This only one of the 5 Variables or so.. Just i check. But i don't have a 
answer.

Original comment by donit...@gmail.com on 5 Feb 2015 at 10:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant