403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/software/Services/EmailPenpalAfrica/php/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/software/Services/EmailPenpalAfrica/php/DATA_Offer_Driven_Rating_UC_UT_later.php
<?PHP

$filename = "PWC_PA25.xml";    
$fp = fopen($filename, "r");//open file in read mode   
$contents = fread($fp, filesize($filename));//read file
$contents ='uiwiq uiie  iweuweiu uiwe e <Node>CVM 50MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210000</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210000</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210000</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210000"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210000</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210000"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210000</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210000</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210000</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node><Node>CVM 100MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210001</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210001</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210001</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210001"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210001</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210001"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210001</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210001</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210001</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node><Node>CVM 200MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210002</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210002</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210002</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210002"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210002</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210002"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210002</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210002</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210002</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node><Node>CVM 500MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210003</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210003</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210003</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210003"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210003</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210003"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210003</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210003</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210003</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node>';
//$contents = '';
$cnt=1;
$cnt1=0;
$tdf_id_start =1;
while ($cnt ==1){
    $tdf_id_first = strpos($contents,'<Node OfferId="',$tdf_id_start);
    $tdf_id_second = strpos($contents,'"',$tdf_id_first+15);
     $cnt1++;
     //echo $tdf_id_first."\n";
     //echo $tdf_id_second."\n";
     //if($cnt1==2)
     //exit();     
    
    if($tdf_id_first>0){        
    $offer = substr($contents,$tdf_id_first+15,$tdf_id_second-($tdf_id_first+15));
    //echo $offer;    
   
    //$replac_str1= 'BooleanOperator<Operation>AND</Operation><Condition>ActiveOffer<ActiveOffer>'.$offer.'</ActiveOffer></Condition><Condition>FieldSelection<Field Context="ALL fields" condition="String" field="3GPP-SGSN-MCC-MNC"/><Text>63510</Text><Comparation>3</Comparation><MatchCase>false</MatchCase></Condition><Condition>';
    $replac_str1= 'BooleanOperator<Operation>AND</Operation><Condition>ActiveOffer<ActiveOffer>'.$offer.'</ActiveOffer></Condition><Condition>FieldSelection<Field Context="ALL fields" condition="String" field="3GPP-SGSN-MCC-MNC"/><Text>63510</Text><Comparation>3</Comparation><MatchCase>false</MatchCase></Condition><Condition>';
    $replac_str2= 'false</Termination></Condition>';
    //$replac_str3= 'UT<Condition>BooleanOperator<Operation>AND</Operation><Condition>FieldSelection<Field Context="ALL fields" condition="UsageCounter" field="UsageThreshold">';
    }

    //first insert

    if($tdf_id_first>0 && $offer !=""){
        
        if($offer !='1070' && $offer !='204000' && $offer !='204001' && $offer !='204002' ){
        //echo $offer."\n";
        $tdf_id_third = strpos($contents,'FieldSelection<Field Context="ALL fields" condition="UsageCounter" field="UsageThreshold">',$tdf_id_second); 
        $contents =substr_replace($contents, $replac_str1, $tdf_id_third, 0);
        $tdf_id_fourth = strpos($contents,$replac_str2,$tdf_id_third); 
        $contents =substr_replace($contents, "</Condition>", $tdf_id_fourth+31, 0);
        }
       else{
           $tdf_id_third= $tdf_id_second+10;
       }
           
     
    }
    $tdf_id_start= $tdf_id_third;
    $offer="";
    //$tdf_id_second=0;

    //echo $tdf_id_first."\n";
    //echo $tdf_id_second."\n";
    //echo $tdf_id_third."\n";
    //echo $tdf_id_fourth."\n";
    //$cnt= $tdf_id_start;
    if($tdf_id_first>0)
        $cnt=1;
    else
        $cnt=0;

    //echo $cnt1++;
   // echo "first".$tdf_id_first."offer".$offer;
   // if($cnt1 >0)
   //   $cnt=0;
}


//echo $contents;
$fp = fopen('PWC PA25.txt', 'a');
fwrite($fp,$contents);

echo "Done";
exit();

?>

Youez - 2016 - github.com/yon3zu
LinuXploit