Jump to content

einet

Senior Members
  • Content Count

    276
  • Joined

  • Last visited

  • Days Won

    14

Posts posted by einet

  1. 10 hours ago, PCTipsGR said:

    No I mean <div class="div">, div is used both times, one for the HTML division and one as a class, so what does it do?

    In MyOwnFreeHost templates it is present.

    The .div class is used to customize the div table separate add colors anything you want to add to that <div> colors, margins, etc all depends 

    example:

    in css:

    .div {

    color:red;

    background:black;

    padding:5px;

    }

    This in CSS would indicate to the web that the <div class = "div"> would add the color in the text in red, the color of the background of the div in black and the internal space of 5px as it is said and everything depends on what you want customize in that div

  2. On 28/6/2018 at 8:01 AM, PCTipsGR said:

    I didn't say that your method is not correct, however to do this someone would need:

    1. A Free cPanel Hosting available anytime
    2. To do the same process every 90 days
    3. A very good friend :D

    Unfortunately, most people don't have free access to free cPanel hosting (as if they had, they wouldn't be here).

    It is still a good tutorial for the time that the certificate works.

    I will make another tutorial with Let's Encrypt installation involving CloudFlare and will also leave it on your profile.

    What is the cloud of clouds? You mean CloudFlare?

    And also what problem does it create exactly??

    I meant that if you have customer websites already created with the extension of the main domain example.mydomain.com you will have problems with cloudflare when it comes to keeping the dns connected, there are disconnections of the sub-domain sites of the clients that already they have an account, now if you have the main website of your hosting separately you do not have problems with cloudflare.

  3. On 19/1/2018 at 21:52, Angel said:

    Perdón por molestarte de nuevo @einet , pero perdí el enlace de descarga del cliente API. ¿Podría volver a enviarlo a mí: tristian.kelly560@gmail.com

    I do not know if you still need the script but I have sent you an email with the script link in case you need it and I regret my absence I do not have much free time greetings

  4. 7 hours ago, PCTipsGR said:

    I left one there, your tutorial will not work in every case because Let's Encrypt always performs a validation check and will revoke the certificate.

    Go and check it if you want, if you really want a Let's Encrypt/SSLForFree Certificate you can use it with CloudFlare by adding a TXT record through Cloudflare DNS.

    It will not work if you have CloudFlare from vPanel, if you have CloudFlare from there you can use the Manua Verification, not the DNS one, and it will work.

     

    I install | certificates in accounts that host someone in this way [without using the cloud of clouds] since the cloud of clouds has problems to disconnect and generate products in the networks of the clients. And so far I have not had any problems greetings maybe someone else will work for that I take an hour and a half of my valuable time to create this tutorial, to try to help them.

  5. 21 hours ago, PlanetCloud said:

    ¿Entonces estás diciendo que el uso de inodos se reiniciará todos los meses? 

    ¿O es Google Translate lo arruinó? 

    if at the same time that the counters of the consumed bandwidth are restarted, I explain if it was consumed or frame more than what it really possesses when resetting itself auntomatically it shows the real quantity that it has but this is reset every 30 days

  6. 9 hours ago, Tamil said:

    Cómo reducir el almacenamiento detelo todo el archivo de la carpeta mysite y la base de datos, pero no disminuye.

    the inodes are restarted every 30 days when the server reboots the monthly fee you can delete the files you think are unnecessary on your website and wait for the next reboot that is each end of the month your website can work as long as it is not suspended

  7. QUyxqx1.png

    https://i.imgur.com/QUyxqx1.png

    Here I leave a clearer example to verify a domain with a form and the function plus the working library I remind you that the file should go next to the index since it requires the library that you spent last remember to add the user and pass of your reseller panel to the file that happened to them

    I apologize if I wrote with spelling errors and if my English is not understood ice a quick example

    THE FILE >> CHECK DOMAIN FILE

  8. 17 hours ago, PlanetCloud said:

    De acuerdo, ¿cómo agregar el parámetro sobre qué dominio verificar?

    to verify a domain you can do it from a search form or by POST or GET method in the example that I add to verify the domain was by get in the url when ending like this? domaim = the examplenameofexample.com and in this case use the function $ client-> availability ($ domain); showing answer of 1 if the domain is available and 0 or nothing if it is already registered I will make a simpler example to make it easier

  9. 12 hours ago, CrazyMAzeY said:

    Is anyone in this forum directly linked to iFast (MOFH) ?

    I setup a few reseller domains for testing and a couple of websites in the reseller panel. But i've looked everywhere and cannot delete them.

    also been trying to setup the main hosting site where clients sign up and does not seem to work with SSL so I came here as suggested and have been trying out the newly created login/signup module but still not sure if that is created by iFast ??

    If I create test domains, go to the cpanel of the account where you created them and proceed to remove domain by domain from the domains area in your cpanel once deleted all go to your reseller panel and deactivate the accounts created after 30 days the server will automatically remove them from the system

  10. 14 hours ago, PlanetCloud said:
    
    <?php
    include 'vendor/autoload.php';
    // In [API username and API password] go the data of your reseller account that the data gives you here http://panel.myownfreehost.net/panel/index2.php?option=api
    
    $client = new \HansAdema\MofhClient\Client('ZbzVk5V3JxXnFK50tmB8reIBSSCir9UrdMwi', 'SFZb6XH4VW2Ii9SyIKQFq0bi0');
    //example 1 domain exist?
    $domain = $_GET['domain'];
    
    // We check if the sub-domain is available
    echo $client->availability($domain);
    
    //  Create a user account ('User8charactersmax', 'password','email','Domainorsub-domain','planName')
    //echo $client->createAccount('username8charmax', 'password', 'email', 'domainexample.com', 'plan_one');
    
    // Suspend user account must be the same as example registry name ('username8charmax', 'Suspension message')
    //echo $client->suspend('username8charmax', 'Towards a test with a script in php');
    
    // Change account password example('username8charmax', 'newpassword')
    //echo $client->password('username8charmax', '123456as');
    
    // Reactivate account suspended Need only the example user name (username8charmax)
    //echo $client->unsuspend('username8charmax');
    
    // One example live in create account
    //echo $client->createAccount('x3bugger', '123456asxl', 'x3bugger@email.com', 'x3bugger.domain.com', 'standar');

    That is my code (Of course I changed the Password and Username!.

    Do I need to modify anything??

    if you have placed the user and password of your reseller api mas IP in the panel of the api reseller does not need to do anything else can perform tests with functions that are disabled with //

    for example:
    // echo $ client-> availability ($ domain);
    // echo $ client-> createAccount ('');
    // echo $ client-> suspend ('');
    // echo $ client-> password ('');
    // echo $ client-> unsuspend ('');
    // echo $ client-> createAccount ('');
    are the only ones you can use with the script uncheck the line you want to use since it is currently active is echo $ client-> availability ($ domain); to verify if a domain name exists in your reseller

  11. 10 minutes ago, einet said:

    if you are going to carry out local tests from your pc, you must indicate the ip of your computer, the one indicated by http://www.cualesmiip.com/ if you are going to execute the script from your web server, you must indicate the ip of your web server in the api reseller

    can also activate the error log in alter php config to see with more details the errors shown by the php when the ip is incorrectly configured shows the address from where the script is running on your hosting

  12. 1 minute ago, PlanetCloud said:

    PHP 7.0 still the same.

    How to check my server IP?

     

    Is it correct to Google "What Is My IP" for my computer?
    And is it correct to use Google Dig Tool to search "www.planetcloudhosting.cf" IP?

    if you are going to carry out local tests from your pc, you must indicate the ip of your computer, the one indicated by http://www.cualesmiip.com/ if you are going to execute the script from your web server, you must indicate the ip of your web server in the api reseller

  13. 10 minutes ago, Hostingaj said:

    Thanks, got the email.

     

    16 minutes ago, einet said:

    oquei you placed your username and password of your client reseller in
    $ client = new \ HansAdema \ MofhClient \ Client ('API Username', 'API Password');
    and you added the ip of the team where you are executing the script inside the folder there are some images and a txt with instructions

    E0e3YfQsSmGWfKf8J5i8xw.jpg

    Local test with the script working. In this case, testing if the google.com domain exists in my reseller server.
    Showing 1 indicates that the domain is available in my reseller server logically is to verify if a domain or sub domain of your reseller hosting exists or not a basic example. If you were able to perform this test without any error, indicate that the usename and password are well added remember to add the ip from where you are doing tests

  14. 3 minutes ago, PlanetCloud said:

    Hi, I've tested your code and it gave me this error :

    t4U2Y3.PNG

    oquei you placed your username and password of your client reseller in
    $ client = new \ HansAdema \ MofhClient \ Client ('API Username', 'API Password');
    and you added the ip of the team where you are executing the script inside the folder there are some images and a txt with instructions

  15. 1 hour ago, PlanetCloud said:

    Hi, I keep getting this error : Parse error: syntax error, unexpected '-', expecting ',' or ';' in C:\wamp64\www\other-project\mofh-api\index.php on line 5

    Can somebody help me out?
     

    My code :

    
    <?php
    
    require_once(vendor\autoload.php);
    
    use vendor\hansadema\mofh-client\src\Client.php;
    
    // Create a new API client with your API credentials.
    $client = Client::create([
        'apiUsername' => 'your_api_username',
        'apiPassword' => 'your_api_password',
        'plan' => 'my_plan', // Optional, you can define it here or define it with the createAccount call.
    ]);
    
    // Create a request object to create the request.
    $request = $client->createAccount([
        'username' => 'abcdefgh', // A unique, 8 character identifier of the account.
        'password' => 'password123', // A password to login to the control panel, FTP and databases.
        'domain' => 'userdomain.example.com', // Can be a subdomain or a custom domain.
        'email' => 'user@example.com', // The email address of the user.
        'plan' => 'my_plan', // Optional, you can submit a hosting plan here or with the Client instantiation.
    ]);
    
    // Send the API request and keep the response.
    $response = $request->send();
    
    // Check whether the request was successful.
    if ($response->isSuccessful()) {
       echo 'You can login as: ' . $response->getVpUsername();
    } else {
       echo 'Failed to create account: ' . $response->getMessage();
    }
    
    ?>

    try to use the one that I just sent to the email remember to read the instructions and that the php version of your localhost is 5.4 or higher

×
×
  • Create New...