#1194 - The power of Commandr

Identifier #1194
Issue type Feature request or suggestion
Title The power of Commandr
Status Completed
Handling member Chris Graham
Addon General / Uncategorised
Description Quick site opening/closing...

1) Run:
edit /etc/closed
2) (Use the editor to change the message) and save
3) Run:
echo 1 > /etc/site_closed

------

Quick DB querying...

1) Run:
@SELECT id FROM cms_f_members WHERE m_username='admin';

------

Opening up page links...

… (look through commands)

------

Some other cool commands...

clear_caches
directory_sizes
mysql_table_sizes

------

Running PHP code...
1) Run:
:echo file_get_contents('/proc/cpuinfo');

(This shows info about the server's CPU)
(The ":" at the start is needed to identify PHP code)
(will only work on Linux servers; won't even work on all Linux servers)

2) Run:
:echo shell_exec('uptime');

(This shows the server CPU load, and works on most Linux and Mac servers)
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated