Jump to content

Recommended Posts

Posted
Nope, shouldn't need that mcrypt for printmaster. Even though those permissions are on wwwroot; please check that the IIS user has write permissions (specifically, to be able to create files) on the session folder itself. That's the only issue that the error messages relate to, so is all I can think it is.
Posted

Ok it seems iis user is the wrong user to set

 

I tried Authenticated user, was just gussing and that seems to work

 

 

Ok next question how to we get a security logon for this?

Want to try and get the new web server a bit more secure, last time our iss root folder had full rights for everyone

Posted
PrintMaster doesn't come with any security built-in. Use the functionality included with your web server (IP restrictions, Directory security - IIS: Authentication settings, Apache: htaccess/htpasswd etc) - but this is beyond the scope of what I can help with :)
Posted
Still no joy webman. I'm pretty sure I have followed instructions as stated. I get the index of still when i navigate to local host. then the webpage cannot be found when i navigate to localhost/printmaster.
Posted
The zip file I extracted to c:\program files\apache group\apache2\htdocs, created an empty folder in htdocs with the name session. Imported printmaster.sql into heidisql, changed init.php to match database name and username password etc.
Posted
p-dave: Ensure the session folder is created and writeable by the webserver.

 

Others: Re: costs. At the moment, I'm not looking at developing the costs feature due to higher priorities (private work, Classroombookings). I agree it would be a good feature to have, and probably one day I'll do it; just not right now :)

 

Thanks for the reply ;)

 

I'll wait.

Posted
nope. getting a file download window :s sorry to be a pain!

 

Best way to see if php is working mate

 

open notepad and type this in...... phpinfo()

 

and save the file has phpinfo.php

 

copy or save that in you webserver folder route

 

and go to Internet Explorer and type in localhost/phpinfo.php

 

If thats does not display a page of information php is not working correctlly

 

Best bet is to install php via the Microsoft Web Platform if your using a Windows Server, always seems to work doing it that way

Posted

Replace printmasteruser and printmasterdb with your own details, and obviously the path to the file as well.

 

mysql -u printmasteruser -p printmasterdb < /path/to/printmaster.sql

 

Enter printmasteruser's password when prompted :)

  • Thanks 1
Posted

Thanks.. I thikn I might have messed up something else coz im getting

ERROR 1044 (42000): Access denied for user 'printers'@'localhost' to database 'printers'

 

After I created the user and the database i did this:

 

GRANT ALL PRIVILEGES ON printers TO 'printers'@'localhost' WITH GRANT OPTION;

 

Is there something else I need to do?

Posted

To create a DB and user, just do:

 

CREATE DATABASE printers;
GRANT ALL PRIVILEGES ON printers to 'printers'@'localhost' IDENTIFIED BY 'password';

  • Thanks 1
Posted (edited)

mysql> SHOW GRANTS FOR 'printers'@'localhost';
+-----------------------------------------------------------------------------------------------------------------+
| Grants for printers@localhost                                                                                          |
+-----------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'printers'@'localhost' IDENTIFIED BY PASSWORD '*D8DECEC305209EEFEC43008E1D420E1AA06B19E0' |
| GRANT ALL PRIVILEGES ON `mysql`.`printers` TO 'printers'@'localhost'                           |
+-----------------------------------------------------------------------------------------------------------------+

 

does that look right?

 

edit: I found my mistake.. I had to change it to

GRANT ALL PRIVILEGES ON `printers`.* TO 'printers'@'localhost'

 

Thanks for the quick way of adding too :)

Edited by RabbieBurns
found my mistake
Posted (edited)

And also, im not sure what to change on this line in the init.php file

 

$db = new fDatabase('mysql', 'printmaster', 'root', '', 'localhost');

 

sorry for all the dumb questions

 

edit: figured it out...

 

Its database type, database name, username, password, host...

 

Sorted now cheers!

Edited by RabbieBurns
Posted
Depending on what you pay on delivery of toner cartridges (none for us since our printers are all on a contract), our printers (HP) are set to email helpdesk when toner is low and then we order a new one straight away. we have some stock in case they doesn't come in time. We don't need to track what we have as the system is self-replenishing.
  • 1 month later...
Posted

Hello Everyone;

 

Please find attached my 'patched' printer master whith a facility to monitor costs.

 

Known Bug: When quiering the costs table if the same row is returned multipule times the cost will only to be summed once.

Here is the offeding code

"SELECT SUM(`cost`)
			FROM `costs`
			WHERE `id` in (
				SELECT `cost_id`
				FROM `events`
				WHERE `printer_id` = $printer_id AND DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= `date` 
			)"

Any Ideas?

 

printmastertest.zip

 

Your have to create your database using the printmastertest.sql in the zip file.

Posted

Could an export data option be added to this project?

 

this project is ideal for use in our school one thing missing for us is the ability to export data to CSV or some form to edit in Excel

 

would this be hard to impliment

 

 

big thank you goes out to the creator and all the people who have added little extras.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...