Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php include("functions.php"); ///$template_id = "f4707b5b-3892-4215-8fdf-bd3e8cde7a0..
Decoded Output download
<?php
include("functions.php");
///$template_id = "f4707b5b-3892-4215-8fdf-bd3e8cde7a0d";
///2d57a4d3-f0bd-4b26-b328-43fa297afdc0
if(!empty($_REQUEST['rsigid'])){
$selecttem = $db->prepare("select * from ".DB_EZEECHECK.".".TBL_REUSABLE_TEMPLATE." where merchant_id='".$_SESSION['mr_id']."' and status='1' order by id asc limit 1");
$selecttem->execute();
$tempData=$selecttem->fetch(PDO::FETCH_ASSOC);
$template_id = $tempData['template_id'];
if(!empty($_REQUEST['rsigid'])){
$select2 = $db->prepare("select check_id,check_no,customer_fname1,merchant_id,tc.customer_id,customer_lname1,business_name ,customer_type,check_memo,check_amount,check_status,returm_check_status,check_created_date,cust_email,cust_contact_no from ".DB_EZEECHECK.".".TBL_CHECK." tc, ".DB_EZEECHECK.".".TBL_CUSTOMER_MASTER." cm where cm.merchant_id='".$_SESSION['mr_id']."' and cm.customer_id = tc.customer_id and tc.check_status!='Draft' and check_id in(".$_REQUEST['rsigid'].")");
$select2->execute();
while($row = $select2->fetch()){
$cust_email= $row['cust_email'];
if($row['customer_type']=='Individual')
$name = $row['customer_fname1'];
else
$name = $row['business_name'];
$url = "https://api.rightsignature.com/public/v1/reusable_templates/$template_id/send_document";
$roles = array(
array(
"name"=> "Customer",
"signer_email"=> $cust_email,
"signer_name"=> $name
)
);
//print_r($roles);
//"2019-03-16"
$merge_field_values = array();
/*$merge_field_values = array(
array("id"=>"e2026ea9-bcc1-4c2b-b31d-62e1b78469e8" ,"value"=> date("Y-m-d") ),
array("id"=>"d5c6c2b9-d93a-4b72-b932-382be577642f" ,"value"=> $name ),
array("id"=>"9fe7f5ba-6a5b-4b4c-a6b5-94977619342b" ,"value"=>"true" ),
);*/
$boday = array(
"access_token" => TOKEN,
"message" => "Please sign this",
"expires_in" => 30,
"roles"=> $roles,
"name" => "This is the name of a document",
"merge_field_values" => $merge_field_values,
"reusable_template" => array("roles"=>$roles),
);
$json = json_encode($boday);
$response = rightsignature_post_request($url,$json);
///print_r($response); die;
foreach($response as $key=>$value)
{
echo "<b>You have successfully send document to customer invoice sign please note your document id : </b>".($value->id);
$docid = ($value->id);
$filename = ($value->filename);
$sent_at = ($value->sent_at);
$current_signer_id = ($value->current_signer_id);
$recipients_name = ($value->name);
$recipients_id = ($value->id);
$recipients_email = ($value->email);
$recipients_sign_url = ($value->sign_url);
$recipients_status = ($value->state);
$updatedate = date("Y-m-d H:i:s");
//$insert_panel = $db->prepare("INSERT INTO ".DB_EZEECHECK.".".TBL_RSIGNATURE_SEND_DOCUMENT_ID." set send_template_id=?, check_id=?, customer_id=?, mer_id=?, file_name=?, status=?, created_date=?");
//$insert_q = $insert_panel->execute(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'], $filename, $recipients_status, $sent_at));
$insert_panel = $db->prepare("INSERT INTO ".DB_EZEECHECK.".".TBL_RSIGNATURE_SEND_DOCUMENT_ID." set send_template_id=?, check_id=?, customer_id=?, mer_id=?, file_name=?, status=?, created_date=?");
$insert_q = $insert_panel->execute(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'], $filename, $recipients_status, $updatedate));
//print_r($insert_q);die;
//var_dump(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'],$filename,$recipients_status,$sent_at)); die;
}
}
}
//header('Refresh: 10; URL=http://1staging.org/ezeedev/admin/dashboard.php');
?>
<script type="text/javascript">
(function(){
setTimeout(function(){
window.location="http://1staging.org/ezeedev/admin/dashboard.php";
},10000); /* 1000 = 1 second*/
})();
</script>
<?php } else if(empty($_REQUEST['rsigid']) && !empty($_REQUEST['name']) && !empty($_REQUEST['email'])) {
$selecttem = $db->prepare("select * from ".DB_EZEECHECK.".".TBL_REUSABLE_TEMPLATE." where merchant_id='".$_SESSION['mr_id']."' and status='1' order by id asc limit 1");
$selecttem->execute();
$tempData=$selecttem->fetch(PDO::FETCH_ASSOC);
$template_id = $tempData['template_id'];
$cust_email= $_REQUEST['email'];
$name = $_REQUEST['name'];
$url = "https://api.rightsignature.com/public/v1/reusable_templates/$template_id/send_document";
$roles = array(
array(
"name"=> "Customer",
"signer_email"=> $cust_email,
"signer_name"=> $name
)
);
//"2019-03-16"
$merge_field_values = array();
/*$merge_field_values = array(
array("id"=>"e2026ea9-bcc1-4c2b-b31d-62e1b78469e8" ,"value"=> date("Y-m-d") ),
array("id"=>"d5c6c2b9-d93a-4b72-b932-382be577642f" ,"value"=> $name ),
array("id"=>"9fe7f5ba-6a5b-4b4c-a6b5-94977619342b" ,"value"=>"true" ),
);*/
$boday = array(
"access_token" => TOKEN,
"message" => "Please sign this",
"expires_in" => 30,
"roles"=> $roles,
"name" => "This is the name of a document",
"merge_field_values" => $merge_field_values,
"reusable_template" => array("roles"=>$roles),
);
$json = json_encode($boday);
$response = rightsignature_post_request($url,$json);
///print_r($response); die;
foreach($response as $key=>$value)
{
echo "<b>You have successfully send document to customer invoice sign please note your document id : </b>".($value->id);
/* $docid = ($value->id);
$filename = ($value->filename);
$sent_at = ($value->sent_at);
$current_signer_id = ($value->current_signer_id);
$recipients_name = ($value->name);
$recipients_id = ($value->id);
$recipients_email = ($value->email);
$recipients_sign_url = ($value->sign_url);
$recipients_status = ($value->state);
$updatedate = date("Y-m-d H:i:s");
$insert_panel = $db->prepare("INSERT INTO ".DB_EZEECHECK.".".TBL_RSIGNATURE_SEND_DOCUMENT_ID." set send_template_id=?, check_id=?, customer_id=?, mer_id=?, file_name=?, status=?, created_date=?");
$insert_q = $insert_panel->execute(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'], $filename, $recipients_status, $updatedate));
*/
$message = "<b>You have successfully send invoice to customer for sign please note your reference id : </b>".($value->id);
}
//header('Refresh: 10; URL=http://1staging.org/ezeedev/admin/dashboard.php');
?>
<script type="text/javascript">
(function(){
setTimeout(function(){
window.location="http://1staging.org/ezeedev/admin/view-customers.php?add=done";
},5000); /* 1000 = 1 second*/
})();
</script>
<?php } ?>
Did this file decode correctly?
Original Code
<?php
include("functions.php");
///$template_id = "f4707b5b-3892-4215-8fdf-bd3e8cde7a0d";
///2d57a4d3-f0bd-4b26-b328-43fa297afdc0
if(!empty($_REQUEST['rsigid'])){
$selecttem = $db->prepare("select * from ".DB_EZEECHECK.".".TBL_REUSABLE_TEMPLATE." where merchant_id='".$_SESSION['mr_id']."' and status='1' order by id asc limit 1");
$selecttem->execute();
$tempData=$selecttem->fetch(PDO::FETCH_ASSOC);
$template_id = $tempData['template_id'];
if(!empty($_REQUEST['rsigid'])){
$select2 = $db->prepare("select check_id,check_no,customer_fname1,merchant_id,tc.customer_id,customer_lname1,business_name ,customer_type,check_memo,check_amount,check_status,returm_check_status,check_created_date,cust_email,cust_contact_no from ".DB_EZEECHECK.".".TBL_CHECK." tc, ".DB_EZEECHECK.".".TBL_CUSTOMER_MASTER." cm where cm.merchant_id='".$_SESSION['mr_id']."' and cm.customer_id = tc.customer_id and tc.check_status!='Draft' and check_id in(".$_REQUEST['rsigid'].")");
$select2->execute();
while($row = $select2->fetch()){
$cust_email= $row['cust_email'];
if($row['customer_type']=='Individual')
$name = $row['customer_fname1'];
else
$name = $row['business_name'];
$url = "https://api.rightsignature.com/public/v1/reusable_templates/$template_id/send_document";
$roles = array(
array(
"name"=> "Customer",
"signer_email"=> $cust_email,
"signer_name"=> $name
)
);
//print_r($roles);
//"2019-03-16"
$merge_field_values = array();
/*$merge_field_values = array(
array("id"=>"e2026ea9-bcc1-4c2b-b31d-62e1b78469e8" ,"value"=> date("Y-m-d") ),
array("id"=>"d5c6c2b9-d93a-4b72-b932-382be577642f" ,"value"=> $name ),
array("id"=>"9fe7f5ba-6a5b-4b4c-a6b5-94977619342b" ,"value"=>"true" ),
);*/
$boday = array(
"access_token" => TOKEN,
"message" => "Please sign this",
"expires_in" => 30,
"roles"=> $roles,
"name" => "This is the name of a document",
"merge_field_values" => $merge_field_values,
"reusable_template" => array("roles"=>$roles),
);
$json = json_encode($boday);
$response = rightsignature_post_request($url,$json);
///print_r($response); die;
foreach($response as $key=>$value)
{
echo "<b>You have successfully send document to customer invoice sign please note your document id : </b>".($value->id);
$docid = ($value->id);
$filename = ($value->filename);
$sent_at = ($value->sent_at);
$current_signer_id = ($value->current_signer_id);
$recipients_name = ($value->name);
$recipients_id = ($value->id);
$recipients_email = ($value->email);
$recipients_sign_url = ($value->sign_url);
$recipients_status = ($value->state);
$updatedate = date("Y-m-d H:i:s");
//$insert_panel = $db->prepare("INSERT INTO ".DB_EZEECHECK.".".TBL_RSIGNATURE_SEND_DOCUMENT_ID." set send_template_id=?, check_id=?, customer_id=?, mer_id=?, file_name=?, status=?, created_date=?");
//$insert_q = $insert_panel->execute(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'], $filename, $recipients_status, $sent_at));
$insert_panel = $db->prepare("INSERT INTO ".DB_EZEECHECK.".".TBL_RSIGNATURE_SEND_DOCUMENT_ID." set send_template_id=?, check_id=?, customer_id=?, mer_id=?, file_name=?, status=?, created_date=?");
$insert_q = $insert_panel->execute(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'], $filename, $recipients_status, $updatedate));
//print_r($insert_q);die;
//var_dump(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'],$filename,$recipients_status,$sent_at)); die;
}
}
}
//header('Refresh: 10; URL=http://1staging.org/ezeedev/admin/dashboard.php');
?>
<script type="text/javascript">
(function(){
setTimeout(function(){
window.location="http://1staging.org/ezeedev/admin/dashboard.php";
},10000); /* 1000 = 1 second*/
})();
</script>
<?php } else if(empty($_REQUEST['rsigid']) && !empty($_REQUEST['name']) && !empty($_REQUEST['email'])) {
$selecttem = $db->prepare("select * from ".DB_EZEECHECK.".".TBL_REUSABLE_TEMPLATE." where merchant_id='".$_SESSION['mr_id']."' and status='1' order by id asc limit 1");
$selecttem->execute();
$tempData=$selecttem->fetch(PDO::FETCH_ASSOC);
$template_id = $tempData['template_id'];
$cust_email= $_REQUEST['email'];
$name = $_REQUEST['name'];
$url = "https://api.rightsignature.com/public/v1/reusable_templates/$template_id/send_document";
$roles = array(
array(
"name"=> "Customer",
"signer_email"=> $cust_email,
"signer_name"=> $name
)
);
//"2019-03-16"
$merge_field_values = array();
/*$merge_field_values = array(
array("id"=>"e2026ea9-bcc1-4c2b-b31d-62e1b78469e8" ,"value"=> date("Y-m-d") ),
array("id"=>"d5c6c2b9-d93a-4b72-b932-382be577642f" ,"value"=> $name ),
array("id"=>"9fe7f5ba-6a5b-4b4c-a6b5-94977619342b" ,"value"=>"true" ),
);*/
$boday = array(
"access_token" => TOKEN,
"message" => "Please sign this",
"expires_in" => 30,
"roles"=> $roles,
"name" => "This is the name of a document",
"merge_field_values" => $merge_field_values,
"reusable_template" => array("roles"=>$roles),
);
$json = json_encode($boday);
$response = rightsignature_post_request($url,$json);
///print_r($response); die;
foreach($response as $key=>$value)
{
echo "<b>You have successfully send document to customer invoice sign please note your document id : </b>".($value->id);
/* $docid = ($value->id);
$filename = ($value->filename);
$sent_at = ($value->sent_at);
$current_signer_id = ($value->current_signer_id);
$recipients_name = ($value->name);
$recipients_id = ($value->id);
$recipients_email = ($value->email);
$recipients_sign_url = ($value->sign_url);
$recipients_status = ($value->state);
$updatedate = date("Y-m-d H:i:s");
$insert_panel = $db->prepare("INSERT INTO ".DB_EZEECHECK.".".TBL_RSIGNATURE_SEND_DOCUMENT_ID." set send_template_id=?, check_id=?, customer_id=?, mer_id=?, file_name=?, status=?, created_date=?");
$insert_q = $insert_panel->execute(array($docid, $row['check_id'], $row['customer_id'], $row['merchant_id'], $filename, $recipients_status, $updatedate));
*/
$message = "<b>You have successfully send invoice to customer for sign please note your reference id : </b>".($value->id);
}
//header('Refresh: 10; URL=http://1staging.org/ezeedev/admin/dashboard.php');
?>
<script type="text/javascript">
(function(){
setTimeout(function(){
window.location="http://1staging.org/ezeedev/admin/view-customers.php?add=done";
},5000); /* 1000 = 1 second*/
})();
</script>
<?php } ?>
Function Calls
None |
Stats
MD5 | 9798a9c4e22970db8127fe671b218ec0 |
Eval Count | 0 |
Decode Time | 89 ms |