Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - justcurious

Pages: 1 2 [3]
31
New Modules / Re: How to read $_POST data in a module
« on: April 14, 2017, 05:58:32 AM »
Thanks for the replies.

I was working on a (client) module that lists all .zip and .tgz files in the users folders. The user selects the file they want to decompress (using radio buttons) and the script decompresses the file (I had read that individuals were having problems with the permissions of decompressed files). However when the form was submitted, and I tested the $_POST variable, it was coming up with an empty array.

I guess I'd been doing something wrong with the form variables.

I got around the problem by switching to $_GET as I only wanted to pass a single filepath back to the script. It's a bit 'cluncky', but it does the job . . .

. . . except because I'm using the shell to extract the files, the permissions are all messed up  >:(

Thank goodness for the 'Fix Permission' button in the admin Panel.

Thanks for taking the time to reply, though - at least I know that I can use $_POSTed data.

32
New Modules / How to read $_POST data in a module
« on: April 12, 2017, 03:05:50 PM »
I am trying to create a module that takes input from the user by way of a form. The form is submitted to the same module (ie index.php?module=mymodule) which then processes the input data.

However, when I try to read the $_POST data, all I get is an empty array - how do I access the $_POSTed data, please ?

Thanks

33
CentOS-WebPanel GUI / Re: How to fix Encryption error on login
« on: March 31, 2017, 07:56:03 PM »
I'm getting this error when trying to log in as both root and user when I use the domain url (www.mydomain.com:2030), but when using the IP address (123.123.123.123:2030), I can login with both.

If I browse to www.mydomain.com, I'm getting the HTTP Test Page powered by CWP, so that appears to be working as it should.

I'm using CentOS Linux release 7.3.1611 (Core) with CWP version: 0.9.8.296.

I have another server setup exactly the same (apart from the other is using CWPpro), but I can log in using domain url and ip address.

The hashing on both servers is SHA-512.

Any suggestions, please ?




Pages: 1 2 [3]