View Full Version : Domain Listing
kazuya
November 11th, 2006, 16:50
Is there a script which can display all domains hosted on cPanel in a marquee or other, On a selected page.
webadpro
November 12th, 2006, 09:17
If you're the owner of the server or a reseller account, yes there is a way with your Remote Access code.
kazuya
November 12th, 2006, 19:53
how can this be done?
krakjoe
November 13th, 2006, 04:12
<?php
$hostname = "localhost";
$username = "krakjoe";
$accesshash = "91015b65f44d3969b4e2e57e05e56acf
48ddcb1139b19e2fe6709e73029eb322
55457161ea2c8ec6ed5453eb71994aa5
61eb16c5409bfe45e2661f01e7019a07
8b0b1c69518568cce74ea1922f921da7
ef61877c22a1003eeec5d3479df1895a
191f4e24d47e3e3e8749e3355a18b370
930cd1ed50a4e6ac84757e8674305f6b
261501fe764cd02cf181924573bb091a
48ddcb1139b19e2fe6709e73029eb322
55457161ea2c8ec6ed5453eb71994aa5
61eb16c5409bfe45e2661f01e7019a07
8b0b1c69518568cce74ea1922f921da7
ef61877c22a1003eeec5d3479df1895a
191f4e24d47e3e3e8749e3355a18b370
930cd1ed50a4e6ac84757e8674305f6b
261501fe764cd02cf181924573bb091a
48ddcb1139b19e2fe6709e73029eb322
55457161ea2c8ec6ed5453eb71994aa5
61eb16c5409bfe45e2661f01e7019a07
8b0b1c69518568cce74ea1922f921da7
ef61877c22a1003eeec5d3479df1895a
191f4e24d47e3e3e8749e3355a18b370
930cd1ed50a4e6ac84757e8674305f6b
261501fe764cd02cf181924573bb091a
020c52a1cff5620f1b1b0ab7e922a863";
$usessl = 1;
include '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$accs = listaccts ($hostname,$username,$accesshash,$usessl);
$table .= "<table border=\"1\">\n<tr>\n<th>USERNAME</th>\n<th>DOMAIN</th>\n<th>PLAN</th>\n<th>RESELLER</th>\n</tr>\n";
foreach ($accs as $user => $info)
{
$table .= "<tr>\n<td>" . $user . "</td>\n<td>" . $info[0] . "</td>\n<td>" . $info[1] . "</td>\n<td>" . $info[2] . "</td>\n</tr>\n";
}
$table .= "</table>\n";
echo $table;
?>
webadpro
November 13th, 2006, 09:24
Hehe,
Joe thx for writting this for me.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.