The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script - if Client doesn't pay the bill.. I can delete the code..

Discussion in 'General Discussion' started by tm2004, Nov 14, 2006.

  1. tm2004

    tm2004 Member

    Joined:
    Mar 1, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hey All..

    Looking for some kind of sciopt that can be uploaded via FTP that would delete a directory...

    We do work where Client pays us after we do it - usually it's on our Serevers.. so we never worry..

    But now on a Client server.. Tried this, but did not work.. I'm guessing it's permissions..

    PHP:
    <?
    $sites = array("m40",
    "m45",
    "m50");
    foreach(
    $sites as $key => $value)
    {
    exec("rm -rf /home/user100/public_html/".$value);
    echo 
    $value." completed.<br>";
    }
    ?> 
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Actually I would take it in the other direction and have the script you wrote for them
    make a call out from their server to a web server you have hosted somewhere to
    get a command from you which might be to continue the program, disable, or delete.

    Cpanel itself basically works this way with outbound connections to check
    the license validity when you try to login to WHM, Cpanel, Etc.
     
Loading...

Share This Page