HEX
Server: Apache
System: Linux hz.vslconceptsdomains.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: dkfounda (3233)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/src/installd-accountdnscheck/web/generatereport.php
<?php
$nav = 'generatereport';

$reportoptions = array();
$reportoptions[] = '--verbose';
if(isset($_REQUEST['accountdomains']) && $_REQUEST['accountdomains'] == "yes") $reportoptions[] = '--accountdomains';
if(isset($_REQUEST['parkeddomains']) && $_REQUEST['parkeddomains'] == "yes") $reportoptions[] = '--parkeddomains';
if(isset($_REQUEST['addondomains']) && $_REQUEST['addondomains'] == "yes") $reportoptions[] = '--addondomains';
if(isset($_REQUEST['subdomains']) && $_REQUEST['subdomains'] == "yes") $reportoptions[] = '--subdomains';
if(isset($_REQUEST['csv']) && $_REQUEST['csv'] == "yes") $reportoptions[] = '--format csv';
if(isset($_REQUEST['html']) && $_REQUEST['html'] == "yes") $reportoptions[] = '--format html';

include_once('header.php');
?>

			<div class="page-header">
				<h1>Generating new Report</h1>
			</div>

			<?php if($accountdnscheck->showLicenseNag() === true) { ?>
			<div class="alert alert-warning alert-dismissable">
				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
				<div class="media">
					<div class="pull-left" style="font-size:48px;padding:0px 15px;">
						<span class="glyphicon glyphicon-warning-sign"></span>
					</div>
					<div class="media-body">
						<h3 class="media-heading">License Nag!</h3>
						<p>We noticed that your license was not purchased through <a href="http://www.ndchost.com/" target="_new" class="alert-link">NDCHost</a>.  Although this plugin will continue to work properly we would like to ask for your support by using <a href="http://www.ndchost.com/" target="_new" class="alert-link">NDCHost</a> for your cPanel licensing needs.  We will price and bill date match your existing license provider.  There will also be no downtime during the transfer process.  If you are interesting in supporting the company that brought you this plugin please visit <a href="http://www.ndchost.com/" target="_new" class="alert-link">www.NDCHost.com</a>.  Thanks!</p>
					</div>
				</div>
			</div>
			<?php } ?>

			<pre><?php
			echo "Executing command /var/cpanel/addons/accountdnscheck/bin/generate_report " . implode(" ", $reportoptions) . "\n";
			$process = proc_open(
				'/var/cpanel/addons/accountdnscheck/bin/generate_report ' . implode(" ", $reportoptions),
				array(
					0 => array('pipe', 'r'),
					1 => array('pipe', 'w'),
					2 => array('pipe', 'w')
				),
				$pipes,
				getcwd(),
				array()
			);
			if($process === false) {
				echo "generate_report failed.\n";
			} else {
				fclose($pipes[0]);
				fpassthru($pipes[1]);
				fpassthru($pipes[2]);
				fclose($pipes[1]);
				fclose($pipes[2]);
				$retval = proc_close($process);
			}
			?></pre>


<?php include_once('footer.php'); ?>