I am a beginner in programming and I have a problem
The code for the above error is shown below:
I'm getting the following fatal error in PHP:
Fatal error: Uncaught Error: Call to undefined method cserver24h::MakeGladiator() in /www/wwwroot/*******..........org/*******/includes/*******.php:21 Stack trace: #0 /www/wwwroot/*******..........org/*******/*******.php(54): cserver24h->init() #1 /www/wwwroot/*******..........org/*******/*******.php(93): include_once('/www/wwwroot/mu...') #2 /www/wwwroot/.........org/wp-content/plugins/css-javascript-toolbox/framework/php/evaluator/evaluator.inc.php(51) : eval()'d code(4): include_once('/www/wwwroot/mu...') #3 /www/wwwroot/*******.org/wp-content/plugins/css-javascript-toolbox/framework/php/evaluator/evaluator.inc.php(51): eval() #4 /www/wwwroot/.........org/wp-content/plugins/css-javascript-toolbox/controllers/coupling/shortcode/block/block.php(94): CJTPHPCodeEvaluator->exec() #5 /www/wwwroot/.........org/wp-content/plugins/css-javascript-toolbox/controllers/coupling/shortcode/shortcode.php(70): CJT_Controllers_Coupling_Shortcode_Block->__toString() #6 /www/wwwroot/.........org/wp-content/plugins/css-javascript-toolbox/con in /www/wwwroot/*******......../*******/includes/cserver24h.php on line 21
and error 2
Notice: Undefined property: cserver24h::$fp in /www/wwwroot/*******....../*******/includes/cserver24h.php on line 88
Please help me to correct this script is a generation "cccam" Please...
. . . .
this page main24h.php
<?php
ob_start();
session_start();
include_once ('/...../*******/includes/cserver24h.php'); # Path OR Choice..
$UserIp = $_SERVER['REMOTE_ADDR'];
$ExpireDate = date('Y-m-d', strtotime("+1 day"));
?>
<!DOCTYPE html>
<html lang="ar-en" class="no-js">
<head>
<!-- Javascript Server js -->
<script type="text/javascript">
$(function() {
$('#Username').click(function() {
var username = "";
var possible = "abcdefghijklmnopqrstuvwxyz";
for (var i = 0; i < 8; i++)
username += possible.charAt(Math.floor(Math.random() * possible.length));
$('input[name="Username"]').val(username);
});
});
</script>
</head>
<body>
<!---------------------- card profile start -------------------------->
<section>
<div class="page-container">
<form class='addf' action='' method='post'>
<div class="wrapper fadeInDown" style="display: flex; align-items: center; flex-direction: column; justify-content: center; //width: 100%; min-height: 100%; //padding: ;">
<div id="formContent" style="-webkit-border-radius: 10px 10px 10px 10px; border-radius: 10px 10px 10px 10px; background: #fff; padding: ; width: 100%; max-width: 100%; position: relative; padding: 1px; -webkit-box-shadow: 0 10px 30px 0 rgb(0 0 0 / 20%); box-shadow: 1px 10px 30px 1px rgb(0 0 0 / 20%); text-align: center;">
<!------------------ note bio start ------------------>
<section>
<div class="wrapper">
<div id="Content">
<!-- subtext start -->
<div class="subtext1">
<?php echo do_shortcode('[photo_box image="//*******.*******.org/*******/assets/img/demo.png" title="" link="" target="_blank" greyscale="0" animate=""]<h1 class="big">Line<span class="themecolor"> CCcam </span>Generate</h1>[/photo_box]'); ?>
</div>
<div class="subtext2">
<?php echo do_shortcode('[fancy_heading image="" title="" h1="0" icon="" slogan="" style="icon" animate=""]
<p class=""> 1 days </p>[/fancy_heading]'); ?>
</div>
<div class="subtext3">
<?php echo do_shortcode('[divider height="30" style="default" line="narrow" themecolor="1"]'); ?>
</div>
<!-- subtext end -->
</div>
</div>
</p>
</section>
<!------------------ note bio end ------------------>
<?php
include_once ('/...../*******/access24h.php'); # Path OR Choice..
?>
<section>
<!---- button input start ---->
<br>
<div>
<form method='post' action=''>
<input type='hidden' name='formid' value='<?php echo $_SESSION['formid']; ?>' />
<center><div class="g-recaptcha" data-sitekey="6LdP-*******"></div><br></center>
<input type="submit" name="Username" id="Username" value="Generate Now" title="click here" color="theme">
<!---- button input end ---->
<!---- back home start ---->
<div id="backbtn">
<?php echo do_shortcode('[fancy_link title="Back Home" link="https://*******.org/" target="" style="1" class="" download=""]'); ?>
</div>
<!--<div id="formFooter"><a class="underlineHover" href="#">Back Home</a></div> Off -->
<!---- back home end ---->
</form>
</div>
</section>
</div>
</div>
</form>
</div>
</section>
<!---------------------- card profile end -------------------------->
<!--================================
Javascript JS GOES HERE
=================================-->
<!-- google captcha js -->
<script type="text/javascript">
// Resize reCAPTCHA to fit width of container
// Since it has a fixed width, we're scaling
// using CSS3 transforms
// ------------------------------------------
// captchaScale = containerWidth / elementWidth
function scaleCaptcha(elementWidth) {
// Width of the reCAPTCHA element, in pixels
var reCaptchaWidth = 304;
// Get the containing element's width
var containerWidth = $('.container').width();
// Only scale the reCAPTCHA if it won't fit
// inside the container
if(reCaptchaWidth > containerWidth) {
// Calculate the scale
var captchaScale = containerWidth / reCaptchaWidth;
// Apply the transformation
$('.g-recaptcha').css({
'transform':'scale('+captchaScale+')'
});
}
}
$(function() {
// Initialize scaling
scaleCaptcha();
// Update scaling on window resize
// Uses jQuery throttle plugin to limit strain on the browser
$(window).resize( $.throttle( 100, scaleCaptcha ) );
});
</script>
</body>
</html>
. . .
this page access24h.php
<?php
if(isset($_SESSION['Ip']) == ($_SERVER['REMOTE_ADDR'])){
echo do_shortcode('[alert style="warning"] Warning message... [/alert]');
echo do_shortcode('[fancy_heading title="" h1="0" slogan="" style="" animate=""]
<p class="big">Do not reuse, where our system will susp end your line automatically or block your own address IP.</p>[/fancy_heading]');
echo do_shortcode('[fancy_heading image="" title="" h1="0" slogan="" style="line" animate=""]
<p class="big"></p>[/fancy_heading]');
echo do_shortcode('[icon type="icon-user"][fancy_heading image="" title="" h1="0" slogan="" style="" animate=""]
<p>We offer one CCcam line every <strong><a href="#">24</a> hours per user.</strong></p>[/fancy_heading]');
echo do_shortcode('[fancy_link title="Back Home" link="https://...../" target="" style="1" class="" download=""]');
echo do_shortcode('[the_ad id="268"]<p>'); ## <==== shortcode ads .. ad[468x60]
exit();
}
else
{
if(isset($_POST['g-recaptcha-response'])){
$secret = "6LdP-*******";
$captcha = $_POST['g-recaptcha-response'];
$json = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secret&response=$captcha");
$result = json_decode($json,true);
if($result['success']){
echo do_shortcode('[alert style="success"] message. Create a successful line [/alert]');
if (isset($_POST['Username'])){
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR'];
if ($_POST["formid"] == $_SESSION["formid"])
{
$_SESSION["formid"] = '';
$Username = trim( filter_var($_POST['Username'], FILTER_SANITIZE_STRING));
if((empty($Username)) or (strlen($Username) < 8 ) ){
echo do_shortcode('[alert style="error"] Error message. Please choose a username [/alert]');
}
else{
$cserver24h = new cserver24h($Username,$ExpireDate,$UserIp);
echo $cserver24h->Download();
echo $cserver24h->init();
$_SESSION["AddUsername"] = $cserver24h->Download();
exit();
}
}
else
header("Location:https://...../");
exit;
}
}
else
{echo do_shortcode('[alert style="error"] Error message. Please tick the captcha code [/alert]');}
}
}
$_SESSION["formid"] = md5(rand(0,10000000));
. . . .
this page cserver24h.php
<?php
class cserver24h{
private $Host = ".. .. .. ..";
private $Port = "18000";
private $Password = "...........";
private $ConfigFile = "/var/etc/*******/*******.cfg";
public $Username;
public $ExpireDate;
public $DownloadName ;
public $UserIp;
public $Errors;
public function __construct($user,$expi,$ip){
$this->Username = $user ;
$this->ExpireDate = $expi ;
$this->UserIp = $ip ;
}
public function init(){
if($this->AddUsername()){
if($this->MakeGladiator()){
$this->MakeZip();
return $this->Download();
}
else{
//cant make gladiator
return FALSE;
}
}
else{
//cant add user name
return FALSE;
}
}
private function AddUsername(){
$fp = fopen($this->ConfigFile, 'a');
$addF = "\nF: ".$this->Username. " " .$this->Password. " " . "{ enddate=" .$this->ExpireDate. " }";
$insertmcs = fwrite($fp,$addF);
fclose($fp);
return $insertmcs ;
}
public function Download(){
$Output = "";
echo do_shortcode('[the_ad id="265"]<p>'); ## <==== shortcode ads .. ad[300x250]
echo ('<p>');
echo do_shortcode('[icon_box title="Your line is" icon="icon-monitor" image="" icon_position="top" border="1" link="#" target="0" animate="" class=""]<div class="text-center"><h6>Statut : <span><font class="on" color="green"><b>Online</b></font></span></h6></div>[/icon_box]');
echo do_shortcode('[opening_hours title="" image="" animate=""]<p></p>
[divider height="60" style="dots" line="narrow" themecolor="1"]
<p>
<ul><li><label><font color="green">C: '.$this->Host.' '.$this->Port.' '.$this->Username.' '.$this->Password.'</font></label><span></span></li></ul>
<p>
[button title="Download Cline" link="#" align="center" target="0" icon="icon-download" icon_position="left" color="" font_color="" size="0" full_width="" class="" download="'.$this->fp.'" onclick=""]
[/opening_hours]
');
echo do_shortcode('[idea]Warning message.<strong><br><font size="2" color="red"> expiry date: ' .$this->ExpireDate.'</font></br></strong>[/idea]');
echo do_shortcode('[fancy_link title="Back Home" link="https://..../" target="" style="1" class="" download=""]');
return $Output ;
}
}
?>