Skip to content

Commit fafe6f1

Browse files
committed
adding 2 scripts
1 parent e10b300 commit fafe6f1

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

scripts/activate_litespeed.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/php
2+
<?php
3+
4+
require_once(__DIR__ . '/../../../include/functions.inc.php');
5+
$GLOBALS['tf']->session->create(160308, 'services');
6+
$GLOBALS['tf']->session->verify();
7+
8+
$response = activate_litespeed('1.2.3.4', 'LSWS', 1);
9+
echo "Response: ";
10+
var_export($response);
11+
echo "\n";
12+
//deactivate_cpanel('66.45.228.100');
13+
14+
$GLOBALS['tf']->session->destroy();
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/php -q
2+
<?php
3+
4+
require_once(__DIR__ . '/../../../include/functions.inc.php');
5+
include_once(__DIR__ . '/../../../include/licenses/LiteSpeed.php');
6+
$webpage = false;
7+
define('VERBOSE_MODE', false);
8+
global $console;
9+
10+
$ls = new LiteSpeed(LITESPEED_USERNAME, LITESPEED_PASSWORD);
11+
print_r($ls->ping());

0 commit comments

Comments
 (0)