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

sysedit.php usage results in errors. #22

Open
Nexis81 opened this issue Jan 14, 2016 · 6 comments
Open

sysedit.php usage results in errors. #22

Nexis81 opened this issue Jan 14, 2016 · 6 comments

Comments

@Nexis81
Copy link
Contributor

Nexis81 commented Jan 14, 2016

using sysedit.php does work. however, using it results in config lines being removed because of the method used for gathering the values from the config.inc.php file.

sysedit.php is not aware of the following:

/* Display weather in US or metric measurements. Options are "f" or "c". Default is "c" */
$weather_units = "f";

Using sysedit.php will cause the following error to occur due to the problem described above.
Undefined variable: weather_units in /path/to/phptimeclock/leftmain.php on line 85

@andrew867
Copy link
Owner

I can see exactly what you mean, sysedit.php should be modified with the current config.inc.php and its new configuration variables.

Did you want to volunteer to fix this? :)

@Nexis81
Copy link
Contributor Author

Nexis81 commented Jan 14, 2016

I just started using this software today. I don't have a grasp on how most of the files work yet. The way that file reads lines and how a lot of other files work are odd to me.

@benscanfiles
Copy link
Collaborator

It's worth noting that this script is extremely old, so it's not that odd to see some age old methods being employed.

The way that the settings panel works needs to be rewritten, but would require more time than most people would be willing to put into it. I might if I get bored with no work to do one day :-)

@Nexis81
Copy link
Contributor Author

Nexis81 commented Jan 15, 2016

I started noticing that when I was going through some of the code to resolve echo string problems and regex issues. There's no MVC type of framework being utilized or functions to handle all the endless amounts of reused code. If I can just get the timestamps and tz stuff to work right, I could assist with the rewriting.

@Nexis81
Copy link
Contributor Author

Nexis81 commented Jan 16, 2016

We'll It looks like I'm going to be using this software. I rewrote 1600+ lines last night but I have it my own git server. It's going to end up being a huge rewrite so I probably won't be able to create a pull request to merge it back.

@andrew867
Copy link
Owner

@Nexis81 We could branch off this version and start a new branch with your MVC version.

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

No branches or pull requests

3 participants