Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 40417

WHMCS Stock Editor Script

$
0
0

I got tired of editing stock by hand so I made my own, here it is!

With Web Interface http://pastebin.com/raw.php?i=DfxTmsup
CLI Only http://pastebin.com/raw.php?i=KNDdNcAC

What do I have to do to use it??!?!
- Upload the file to your webserver name it whateveryouwant.php
- Edit the file and change the following variables to fit your situation

$host="127.0.0.0"; //MySQL Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="whmcs"; // Database name

-Visit the URL and in the text box labeled "Start Product ID" put the start product ID, and on the text box labeled "End Product ID" put the end product ID. In the Stock Amount put the stock amount that you want in. Then click submit. If it worked without any errors it will tell you.

DONT BE AN IDIOT, PASSWORD PROTECT THIS FILE OR DISABLE IT WHEN NOT IN USE

Too use the CLI only version
-Download it and name it whateveryouwant.php
-type

/usr/bin/php whateveryouwant.php startproductid endproductid stocklevel

Then you are good to go!


Viewing all articles
Browse latest Browse all 40417

Trending Articles