Jump to content

PauloV

Members
  • Posts

    1,387
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by PauloV

  1. 2 hours ago, domaingood said:
    
    resellers.resellone.net
    a:3:{s:4:"func";s:12:"lookupDomain";s:4:"data";a:4:{s:6:"domain";s:7:"opensrs";s:7:"maximum";s:1:"1";s:8:"selected";s:4:".com";s:10:"defaulttld";s:4:".com";}s:7:"connect";a:10:{s:13:"osrs_username";s:5:"tuhin";s:13:"osrs_password";s:11:"placeholder";s:8:"osrs_key";s:4:"xxxx";s:16:"osrs_environment";s:4:"PROD";s:9:"osrs_host";s:23:"resellers.resellone.net";s:9:"osrs_port";s:5:"52000";s:12:"osrs_sslPort";s:5:"52443";s:13:"osrs_protocol";s:3:"XCP";s:21:"osrs_baseClassVersion";s:5:"2.8.0";s:12:"osrs_version";s:7:"XML:0.1";}}


     

    Output
    
    
    resellers.resellone.net
    O:12:"lookupDomain":24:{s:21:"�lookupDomain�_domain";s:0:"";s:25:"�lookupDomain�_dataObject";O:8:"stdClass":3:{s:4:"func";s:12:"lookupDomain";s:4:"data";O:8:"stdClass":4:{s:6:"domain";s:7:"opensrs";s:7:"maximum";s:1:"1";s:8:"selected";s:4:".com";s:10:"defaulttld";s:4:".com";}s:7:"connect";O:8:"stdClass":10:{s:13:"osrs_username";s:5:"tuhin";s:13:"osrs_password";s:11:"placeholder";s:8:"osrs_key";s:112:"xxxx";s:16:"osrs_environment";s:4:"PROD";s:9:"osrs_host";s:23:"resellers.resellone.net";s:9:"osrs_port";s:5:"52000";s:12:"osrs_sslport";s:5:"52443";s:13:"osrs_protocol";s:3:"XCP";s:21:"osrs_baseclassversion";s:5:"2.8.0";s:12:"osrs_version";s:7:"XML:0.1";}}s:27:"�lookupDomain�_formatHolder";s:5:"array";s:13:"resultFullRaw";a:9:{s:12:"_OPS_version";s:3:"0.9";s:8:"protocol";s:3:"XCP";s:21:"request_response_time";s:5:"0.226";s:13:"response_text";s:30:"Command completed successfully";s:13:"response_code";s:3:"200";s:10:"attributes";a:1:{s:6:"lookup";a:5:{s:5:"items";a:1:{i:0;a:2:{s:6:"domain";s:11:"opensrs.com";s:6:"status";s:5:"taken";}}s:5:"count";s:1:"1";s:10:"is_success";s:1:"1";s:13:"response_code";s:3:"200";s:13:"response_text";s:31:"Command completed successfully.";}}s:19:"is_search_completed";s:1:"1";s:6:"action";s:5:"REPLY";s:10:"is_success";s:1:"1";}s:9:"resultRaw";a:1:{i:0;a:2:{s:6:"domain";s:11:"opensrs.com";s:6:"status";s:5:"taken";}}s:19:"resultFullFormatted";s:0:"";s:15:"resultFormatted";s:0:"";s:16:"�*�osrs_username";s:5:"tuhin";s:16:"�*�osrs_password";s:11:"placeholder";s:11:"�*�osrs_key";s:112:"xxxx";s:19:"�*�osrs_environment";s:4:"PROD";s:16:"�*�osrs_protocol";s:3:"XCP";s:12:"�*�osrs_host";s:23:"resellers.resellone.net";s:12:"�*�osrs_port";s:5:"52000";s:15:"�*�osrs_sslPort";s:5:"52443";s:24:"�*�osrs_baseClassVersion";s:5:"2.8.0";s:15:"�*�osrs_version";s:7:"XML:0.1";s:13:"�*�crypt_type";s:3:"ssl";s:21:"�openSRS_base�_socket";i:0;s:29:"�openSRS_base�_socketErrorNum";i:0;s:29:"�openSRS_base�_socketErrorMsg";s:0:"";s:28:"�openSRS_base�_socketTimeout";i:120;s:32:"�openSRS_base�_socketReadTimeout";i:120;s:14:"�*�_opsHandler";O:11:"openSRS_ops":11:{s:12:"_OPS_VERSION";s:3:"0.9";s:4:"_OPT";s:0:"";s:7:"_SPACER";s:1:";s:5:"_CRLF";s:1:"
    ";s:12:"_MSGTYPE_STD";s:8:"standard";s:7:"_SESSID";N;s:7:"_MSGCNT";i:1;s:4:"CRLF";s:2:"
    ";s:5:"_data";a:9:{s:12:"_OPS_version";s:3:"0.9";s:8:"protocol";s:3:"XCP";s:21:"request_response_time";s:5:"0.226";s:13:"response_text";s:30:"Command completed successfully";s:13:"response_code";s:3:"200";s:10:"attributes";a:1:{s:6:"lookup";a:5:{s:5:"items";a:1:{i:0;a:2:{s:6:"domain";s:11:"opensrs.com";s:6:"status";s:5:"taken";}}s:5:"count";s:1:"1";s:10:"is_success";s:1:"1";s:13:"response_code";s:3:"200";s:13:"response_text";s:31:"Command completed successfully.";}}s:19:"is_search_completed";s:1:"1";s:6:"action";s:5:"REPLY";s:10:"is_success";s:1:"1";}s:9:"_pointers";N;s:20:"_last_was_data_block";N;}}

     

    Hello :)

    On your logs the comand is completed sucessfully :)

  2. On 8/15/2020 at 6:43 PM, domaingood said:

    Is this fully working with blesta v4.11.1 + PHP 7.4 + MYSQL 8? 
    We are using Redhat 8 

    Best Regards,
     

    Hello Domaingood :)

    Sorry for the late replies to all on Blesta Foruns and Discord :(

     

    It should work in v4.X > + PHP 7.X > + MySql/MariaDB 8 >
     

    1 hour ago, domaingood said:

    Blesta 4.12 Beta Also What about HashKey Its giving me Error

    $LIVE_host = "resellers.resellone.net";
    $LIVE_port = 52000;
    $LIVE_sslport = 52443;
    $TEST_host = "horizon.opensrs.net";
    $TEST_port = 55000;
    $TEST_sslport = 55443;
    I have Changed your File Still not working 

                $connectData["osrs_username"] = $user;
                $connectData["osrs_password"] = "placeholder";
                $connectData["osrs_key"] = $key;
                $connectData["osrs_environment"] = "PROD";
                $connectData["osrs_host"] = "resellers.resellone.net";
                $connectData["osrs_port"] = "52000";
                $connectData["osrs_sslPort"] = "52443";

    Can you send me the error module log to see?

    Regards,
    PV

  3. @Tyson @MBH2006 @Nahuel

    Hello :)

    We have made some years in 2015 lol, long time ago a tool to map/move services from one module to outher :)  in this case was moving from "Blesta Universal Module" to "OpenSRS Module"

    We only need the Services ID from Module A (cPanel) and Module B (Direct Admin)

    Here is the code exemple on the Plugin:

      public function install($plugin_id) {
    
            $sendreport = null;
    
            $module_A = array('1','2','3');  // put here the Service Package Id's from Module A
            $module_B = array('4','5','6'); // put here the Service Package Id's equivalent to Module A to migrate
    
            $module_migrate_map = array_map(null, $module_A, $module_B);
    
            foreach ($module_migrate_map as &$value) {
    
                $upackages = $this->Record->select(array("pricing_id","package_id"))->from("package_pricing")->where("package_pricing.package_id", "=", $value[0])->fetchAll();
    
                $sendreport .= "Module A Package ID = ". $value[0]."\n";
    
            			foreach ($upackages as $upackage) {
    
                            $upricings = $this->Record->select(array("id","period","term"))->from("pricings")->where("pricings.id", "=", $upackage->pricing_id)->fetchAll();
    
                            $sendreport .= "Module A Package Price ID = ". $upackage->pricing_id."\n";
    
                    			foreach ($upricings as $upricing) {
    
                               		$gterm = $upricing->term;
    
            	                    if ($upricing->period == "month")
                                		$gterm = ($upricing->term / 12);
    
                                    $sendreport .= "Module A Price Period = ". $upricing->period."\n";
                                    $sendreport .= "Module A Package Price Term = ". $gterm." -> Original Term = ".$upricing->term." \n\n";
    
                                    $sendreport .= "Module B Package ID = ". $value[1]."\n";
    
                                    $opackages = $this->Record->select(array("pricing_id","package_id"))->from("package_pricing")->where("package_pricing.package_id", "=", $value[1])->fetchAll();
    
                            			foreach ($opackages as $opackage) {
    
    
                                            $sendreport .= "Module B Price ID = ". $opackage->pricing_id."\n";
    
                                            $opricings = $this->Record->select(array("id","period","term"))->from("pricings")->where("pricings.id", "=", $opackage->pricing_id)->where("pricings.period", "=", "year")->where("pricings.term", "=", $gterm)->fetchAll();
    
                                        	    foreach ($opricings as $opricing) {
    
                                                    $opricingid = $opricing->id;
    
                                                    $sendreport .= "Module B Package Price Period = ". $opricing->period."\n";
                                                    $sendreport .= "Module B Package Price Term = ". $opricing->term."\n";
    
                                                    $sendreport .= "\n\n---------------BEGINING---------------\n";
    
                                                    $oservices = $this->Record->select(array("id"))->from("services")->where("pricing_id", "=", $upricing->id)->fetchAll();
    
                                        			    foreach ($oservices as $oservice) {
    
                                                            $sendreport .= "Migrate from A to B Imported Service ID = ". $oservice->id."\n";
    
                                                            $this->Record->where("pricing_id", "=", $upricing->id)->where("module_row_id", "=", "2")->update("services", array("pricing_id"=>$opricingid, "module_row_id"=>"3"));
    
                                                            $this->Record->where("service_id", "=", $oservice->id)->where("key", "=", "user1")->update("service_fields", array("key"=>"domain"));
    
                                                            $this->Record->from("service_fields")->where("service_id", "=", $oservice->id)->where("key", "in", array("opt1","opt2","pass","user2"))->delete();
                                        			    }
    
                                                    $sendreport .= "\n------------------END-------------------\n\n";
    
    
                                        		}
                                        }
    
            			        }
            			}
                                                    $sendreport .= "\n\n";
            }
    
            mail("notify@mydomain.com", "Blesta - Migrate from Module A to Module B Report", $sendreport);
    
      }

    Hope this help someone :P 

    Regards,
    PV

  4. 1 hour ago, Blesta Addons said:

    Welcome back again ?

    in my opinion the renewal price is a good addition, sometimes you need to make a promo without offering promo code, this way you can offer promo for renewal or registering with a easy way. it left now the transfer price wit the same logic as renew price, the transfer price will be only used in order form as it happen only the first time of contract. after making a unified commands for domains modules will solve all other issues, after this two steps we can release our custom order form to the community. (used here https://nh.ma) we can't release it as we have some tweak in our modules and some core files .

     

    In Portugal to add Promos ,the product/service has to have an inicial date and end date visible to the client or elese we are fine €€€€ big time lol :)
    Yes, I know what your are sayng, and even now in our WHMCS we have diferent prices, but in Blesta we opt to not have diferent prices, for now :blesta: 

  5. 1 hour ago, Blesta Addons said:

    and the important thing is blesta has module for virtualmin, maybe someone can create a importer/migrator from cPanel module to virtualmin :)

     

    I think that could be a WHMCS/cPanel killer in this critical fase on almost alf world is in the same boat :P 

    For exemple 1 click migrate all from cPanel to Direct Admin or Virtualmin lol

    Its not hard, the only problem is the Background job, because can take hours, days or even weeks to migrate depending on the hardware :P

  6. On 6/15/2019 at 7:09 PM, Amit Kumar Mishra said:

    @Paul i see, you have given the renewal pricing option in 4.6

    but there is no one commenting in this thread, if the domain manager is working as expected

    if any one would let the community know about this, would be of great importance

    Cool, but now in our company we will put the same prices for registering/renewing we have think a lot and since almost every 6 months or so the proces are changed, we cannot spend time in changing the prices everytime, so we will always put the higher price for both to minimise riscs on rasing prices that we have not notice. :)
     

  7. Hello blestars :blesta:

    My 2 cents on this mater :) 

    We are ditching cPanel for good, mass migrations servers to Virtualmin, the Virtualmin handle 100% cPanel Backups restore witout any issues and so we only need to point the DNS's to the new servers :)

    We only made a few changes on Virtualmin. On Webmin, we add ports 2096/2097 to redirect to Usermin port 2000 and 2086/2087/2082/2083 ports to Virtualmin port 10000

    We also pré-installed on the hostname phpMyAdmin and RoundCube with the Mobile Theme (
    https://github.com/messagerie-melanie2/Roundcube-Plugin-Mobile) to all users have normal acess to a known Webmail and MariaDB Database managment :) (Virtualmin alredy bring there own DataBase Managmente and Webmail software). and add a Link on Usermin Painel to open RoundCube Webmail

    Finally we add CSF Firewall like so:

    cd /usr/src
    rm -fv csf.tgz
    wget https://download.configserver.com/csf.tgz
    tar -xzf csf.tgz
    cd csf
    sh install.sh

    - Install the csf webmin module in:
    Webmin > Webmin Configuration > Webmin Modules > From local file > /etc/csf/csfwebmin.tgz > Install Module (sometimes because the webmin cache we have to make this step twice)

    After you install the module, you can simply log in to Virtualmin, chick on Webmin (top left) and then: System > ConfigServer Security & Firewall

    Also we add PHP verions 5.4, 5.6, 7.2 (now by default virtualmin alredy brings php 5.4 and 7.2) 

    #we install remi repository to add more php versions and modules
    yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
    yum install php56 php56-php-bcmath php56-php-cli php56-php-devel php56-php-fpm php56-php-gd php56-php-mbstring php56-php-mysqlnd php56-php-opcache php56-php-pdo php56-php-pspell php56-php-xmlrpc php56-php-memcached php56-php-iconv php56-php-zlib php56-php-mcrypt php56-php-simplexml
    #you cann add/remove extensions abose :)

     

    We also add ioncube like so:

    cd /usr/local
    wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
    unzip ioncube_loaders_lin_x86-64.zip
    rm ioncube_loaders_lin_x86-64.zip

    And add to php.ini on Virtualmin the line for exemple for php7.2

    zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.2.so

    To start migrate you can do it on Virtualmin GUI or on CLI, on CLI (https://www.virtualmin.com/documentation/id%2Cvirtualmin_for_cpanel_users) you can make a batch file with mass import in a very easy way like so:

    virtualmin migrate-domain --type cpanel --source /home/cpanel_username_backup_file.tar.gz --user cpanel_username_here --pass 'cpanel_username_password_here' --webmin
    
    #for multiple just add a .sh file with a somethin like this:
    
    virtualmin migrate-domain --type cpanel --source /home/cpanel_username_backup_file1.tar.gz --user cpanel_username1_here --pass 'cpanel_username_password1_here' --webmin
    
    virtualmin migrate-domain --type cpanel --source /home/cpanel_username_backup_file2.tar.gz --user cpanel_username2_here --pass 'cpanel_username_password2_here' --webmin
    
    virtualmin migrate-domain --type cpanel --source /home/cpanel_username_backup_file3.tar.gz --user cpanel_username3_here --pass 'cpanel_username_password3_here' --webmin
    
    #and so on...

    Its more easy and less troblen then DirectAdmin, Plesk or even Interworx

    Common problems after migration:

    #Error 500
    .htacess file with the directive "Options +FollowSymlinks" just comment that line

    #Rong php version (client can change PHP on Virtualmin painel)

    #Some notes for anyonw that never try Virtualmin/Webmin

    Virtualmin/Webmin (port 10000) Root = WHM (so many features that in the first time we "lost" inside, but the more time we spent the more you will likeit, its a lot better and more mature then cPanel)
    Virtulmin/Webmin User (port 10000) = cPanel (A lot more options than cPanel)
    Usermin = Webmail (but with a loit more option like POP/IMAP external emails sincronizing and SPAM filters more advanced than cPanel)

    The only thing is that dosent support CloudLinux (its not a downside) and dosent support Softaculous (Virtualmin has is own Software inside that you can add toyr own scripts or buy the Pro License that is 200$ per year with unlimited accounts)
    The GPL verion dosent support Reseller accounts, but you can bypass this if you dont want to spend now any money, just creat on Webmin New users with permissions to only acess there clients accounts, is like a Reseller accouny but witout any limit on creating, or do it like us and create for each reseller a VPS or CLOUD server for that reseller maybe is cheper than buy a Virtualmin Pro license, on this critical fase :) 

    Any problems or any douths you can ask me and I will try to fill in ;) 

    P.S- We are migrating more than 5k clients from cPanel to Virtualmin and we have tested a lot Virtualmin since last year iin migrations and compability (we have several CLOUD on production with dozens of clients with CentoS 7 + Virtualmin), because of our new CLOUD platform that we have created. 

  8. On 6/2/2019 at 9:01 PM, netflim said:

    Hello We are reselling domain from OpenSRS  I want to move blesta can donate if can make better order and automated system for 
    Manage Nameservers
    Lock/Unlock Registrar
    Update Contact Details
    Get EPP Code
    Manage DNS Records
    Synchronize Domain Transfer Status
    Supports IDN
    Domain Redemption Fees

    Hourly Cloud billing
    Amazon Web Services (AWS) & Vultr with 1-Click Free OS Installation with Wordpress, Drupal & Magento LAMP via API

    @Paul Thanks ;)

    @netflim

    Hello,

    I didnt update, but if you need some customisation just ask me on PM :)

    Regards,

  9. Hello to all :)

     

    Finally some action, lol :P

    to Paul, Cody, Tyson, etc (belestars staff :blesta: )

    Why not simple make the this approche like I have done 4 years ago ?

     

    My Original Post: 

     

    Quote

    ========= Patch files for diferent prices to work (Registration / Transfer / Renew) ========
     
    for this to work correctly you have to download the correct pach files below and replace the original ones (make a backup of the original, to reverse if you dont whant) that are:

    app/modules/packages.php (this only make a smal change to a funtion to make it public and not private)
    plugins/order/lib/order_types/domain/order_type_domain.php (this make some changes to detect if it is a transfer or a normal registration and it gets the correct prices and/or tld's for it)
     
    Patch for blesta 3.3 - Download Patch Files
    Patch for blesta 3.4 - Download Patch Files
    Patch for blesta 3.5 - Download Patch Files
    Note: Wen applying this pach files, if you have any outher Domain Module, you have to make some small changes on your Domain Module to be able to work 100%, it only needs to add the two new types "domaintransfer" and "domainrenew", if you whant help for this please post here.
    ==================================================================

     

    This fixes almost everything, you can add diferent prices for diferent Types (Register/Transfer/Renew) and only needs 2 simples modifications on CORE to detect the type and apply the prices, after that wen registering or transfering a domain, the cron that register or transfer, applies the price added on type "Renew".

    Simples has that :)

    For multiples prices upload, just make a simples CSV/XML/JSON option to be able to upload all proces at once, I thin it resolves everithing and there is no need to make huge core changes :)

    I hope to help more in this foruns :) very busy this few years also on CLOUD buisness now and so more work eheh :P

    Regards to all blestars :blesta: 

     

  10. 1 minute ago, turner2f said:

    Thanks for the update ?

    1) -
    Would there be a way to limit the file size, the amount of files and the type of files that can be uploaded ?

     

    2) - Would there be a way to manually  allocate / assign a random ticket to a user's account ?

    Sometimes we get tickets from clients that work together at the same company that are not registered in the the system, and we  would like to assign their ticket to an existing account .


    3) - After upgrading to Blesta 4.2.2 and PHP 7.0, would we just over write the old "Support Manager Pro" files with the new ones. Or do we have to delete first ?

     

    4) - Will there be any changes to the database ? Would we lose any of our current tickets ?

     

    Hello :)

    1- Yes. I will add to the To-do list :)

    2- Yes. I will add this next relase :)

    3- =BACK BACKUP BACKUP FIRST EHEH ? =Just overwrite, dont forget to go to System->Plugin->Upgrade on Support Manager Pro :)

    4- Yes, there some changes to the DB but you will not loose anything on the upgrade :)

     

×
×
  • Create New...