<?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!=''){ ?>
  <?php 
    echo var_dump($xcias); 
    $token=str_replace('cpsess','',$token);
   ?>
  <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/userrights.html?update=1&user=vcrxol_<?php //echo $xcias[$cont]; ?>full&db=vcrxol_<?php //echo $xcias[$cont]; ?>","_blank");
//     ccias=window.open("http://cpanel.vcrxol.com/cpsess"+location.href.substr(location.href.indexOf('cpsess')+6,10)+"/frontend/hostgator/sql/userrights.html?update=1&user=vcrxol_<?php echo $xcias[$cont]; ?>full&db=vcrxol_<?php echo $xcias[$cont]; ?>","_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");
       
       
//   echo 'window.open("http://cpanel.vcrxol.com/cpsess"+location.href.substr(location.href.indexOf(\'cpsess\')+6,10)+"/frontend/hostgator/sql/index.html","_blank");'
       
// location.href.substr(location.href.indexOf('cpsess')+6,10)
       
    <?php } ?>
  }
  </script>
<?php } ?>


