Posts by FISA4

    Hi,


    if i run

    Code
    1. perl /var/www/imscp/engine/setup/imscp-setup -d


    the setup stops without an errormessage.


    the imscp-setup.log shows


    if running /usr/local/src/stable/imscp/imscp-autoinstall -d it works.
    now i am a little bit confused. 8|


    i already removed all hooks and plugins and tried to run the setup with -dr

    @David
    Not every user has knowledge of dns stuff. And i know at least 10 of my customers who would play around with it. 9 of them are DAU's.
    And now think what would happen if they have this feature.


    My phone would ring all day and i have to restore the dns entrys. ;-)

    In effect it would be nice to have a fully customizable DNS as in plesk or cpanel...
    How much difficult would be to implement something like that ?


    of course it would be nice to have, but this should be a feature, only for admin or reseller.
    Or a 'reset to default' function is a !! must have !! if this is on user level(maybe a button)

    I´ve extended the RemoteBridge with the update user/domain function.


    This is NOT an official release.
    Feel free to test it and give feedback only here in this threat.


    action = 'update'


    you can use all settings from 'create'


    exception:
    if admin_pass is empty, the password for this user will not be changed.
    if you want to change the password, you have to set the new password in admin_pass


    here is the sample:


    PHP
    1. function dataEncryption($dataToEncrypt, $ResellerUsername) { return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($ResellerUsername), serialize($dataToEncrypt), MCRYPT_MODE_CBC, md5(md5($ResellerUsername)))), '+/=', '-_,');}$bridgeKey = 'mYbRiDgEkEy';$ResellerUsername = 'res1';$dataToEncrypt = array( 'action' => 'update', 'reseller_username' => $ResellerUsername, 'reseller_password' => 'yxcvb123', 'bridge_key' => $bridgeKey, 'hosting_plan' => 'myhostingplan', 'email' => 'info@mydomain.com', 'fname' => 'Micky', 'lname' => 'Mouse', 'firm' => 'Disney Inc.', 'zip' => '23456', 'domain' => 'mydomain.de', 'admin_pass' => 'abc123');$ch = curl_init('http://admin.server.example.com/remotebridge.php');curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, 'key='.$bridgeKey.'&data='.dataEncryption($dataToEncrypt, $ResellerUsername));curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$httpResponse = curl_exec($ch);echo $httpResponse;curl_close($ch);


    If you want to test it with Git stable, please change version in imscp.conf to something > 1.1.2 (as soon as you are finished testing, change it back to Git stable)
    and use http://admin.server.example.com:8080/remotebridge.php as curl_init URL


    UPDATE:
    - add: get list of all users from a reseller

    Code
    1. $dataToEncrypt = array( 'action' => 'get_user', 'reseller_username' => $ResellerUsername, 'reseller_password' => 'mypass123', 'bridge_key' => $bridgeKey);


    result looks like this:

    Code
    1. {"level":"Success","message":"User list for reseller fisa4 successfully generated.","data":[{"admin_name":"green.xsws.de"},{"admin_name":"fisa5.de"},{"admin_name":"fisa6.de"}]}


    new action: get_user


    I´ve updated the file to latest version.

    ich hab das Problem ständig.
    sobald eine bestimmte anzahl an codezeilen überschritten ist, hängt es sich auf.


    naja, in 3 wochen kommt das neue handy, mal schauen wie es damit ist.