<?php foreach($_GET as $campo => $valor){${$campo}=$valor;} ?>

<?php include('reset0.php'); ?>
<?php $xcias=explode('.',$cias); ?>
<?php if($token==''){ ?>
<!--   <input type="text" id="token"/></input> -->
<!--   <input type="button" value="TOKEN" onclick="{location.href='?token='+document.getElementById('token').value;}"/></input> -->
<?php } ?>


<?php 
if($token!='' or true) { 
  //echo var_dump($xcias); 
     echo '{';     
 for($cont=0; $cont<count($xcias); $cont++){ 

     echo '<br>';
     echo '<br>';
     
     echo 'xuser="'.$xcias[$cont].'";';
     echo 'document.getElementById("user").value=xuser+"full";';
     echo 'document.getElementById("password").value="vicore1976";';
     echo 'document.getElementById("password2").value="vicore1976";';
      
//      echo 'document.getElementById("submit_new_user").click();';
     echo 'document.getElementById("submit_new_user").dispatchEvent(new MouseEvent("click", {ctrlKey: true}));';
      
      
//      echo 'newwin=window.open("http://cpanel.vcrxol.com/cpsess"+location.href.substr(location.href.indexOf(\'cpsess\')+6,10)+"/frontend/hostgator/sql/index.html","_blank");';

//      echo 'setTimeout(function(){';
//      echo 'newwin.close();';
//      echo 'window.history.back();';
//      echo '}, 5000);';
     
      
       
// location.href.substr(location.href.indexOf('cpsess')+6,10)
// xuser="apri";document.getElementById("user").value=xuser+"full";document.getElementById("password").value="vicore1976";document.getElementById("password2").value="vicore1976";document.getElementById("submit_new_user").click();window.open("http://cpanel.vcrxol.com/cpsess"+location.href.substr(location.href.indexOf('cpsess')+6,10)+"/frontend/hostgator/sql/index.html","_blank");
       
       
    } 
     echo '<br>';
     echo '}';     
     
?>

  <script type="text/javascript">
  window.onload = function ()
  {
    <?php for($cont=0; $cont<count($xcias); $cont++){ ?>
//     ccias=window.open("http://cpanel.vcrxol.com/cpsess<?php echo $token; ?>/frontend/hostgator/sql/deluser.html?user=vcrxol_<?php echo $xcias[$cont]; ?>full","_blank");
//     ccias=window.open("http://cpanel.vcrxol.com/cpsess<?php echo $token; ?>/frontend/hostgator/sql/userrights.html?update=1&user=vcrxol_<?php echo $xcias[$cont]; ?>full&db=vcrxol_<?php echo $xcias[$cont]; ?>","_blank");
//     http://cpanel.vcrxol.com/cpsess8149132293/frontend/hostgator/sql/adduser.html    
//     ccias=window.open("http://cpanel.vcrxol.com/cpsess<?php echo $token; ?>/frontend/hostgator/sql/adduser.html?update=1&user=vcrxol_<?php echo $xcias[$cont]; ?>full&db=vcrxol_<?php echo $xcias[$cont]; ?>","_blank");
    <?php } ?>
  }
  </script>
 
<?php } ?>

<?php  echo '<br>'; ?>

