</head> <body> <div class="container"> <!-- process notifications --> <div style="height: 60px; margin: -15px 0 -45px;"> <?php if (function_exists('showNotifications')) { echo showNotifications(); } ?> </div> <?php /* grant access to the groups 'Admins' only */ if (!is_admin()) { echo "<br>" . plugin_error_message('Access denied.<br>Please, <a href=\'../../index.php?signIn=1\' >Log in</a> as administrator to access this page.', false); exit; } /* Ensure that the projects folder has write permission */ if (!file_exists("../projects")) { if (!mkdir("../projects", 0775)) { echo "<br>" . plugin_error_message('Could not create projects directory.<br>Please,create \'projects\' directory inside the SPM root directory', false); exit; } } if (!is_writable("../projects")) { echo "<br>" . plugin_error_message('Please, change the permission of the \'projects\' folder to be writeable.', false); exit; }
<?php include dirname(__FILE__) . "/header.php"; // validate project name if (!isset($_GET['axp'])) { echo "<br>" . plugin_error_message('Project file not found.'); exit; } $projectFile = ''; $xmlFile = get_XML_file($_GET['axp'], $projectFile); //----------------------------------------------------------------------------------------- ?> <link rel="stylesheet" href="../plugins-resources/css/animate-bootstrap-icons.css"> <style> .transparent{ background-color: Transparent; background-repeat:no-repeat; border: none; cursor:default; overflow: hidden; } .popover{ background-color: rgba(191, 70, 70, 0.33); } .popover.right .arrow:after { border-right-color: rgba(191, 70, 70, 0.33); } </style>
} $path = $_POST['path']; if (!is_dir($path)) { throw new RuntimeException('Invalid path'); } if (!(file_exists("{$path}\\lib.php") && file_exists("{$path}\\db.php") && file_exists("{$path}\\index.php"))) { throw new RuntimeException('The given path is not a valid AppGini project path'); } if (!is_writable($path . "/hooks")) { throw new RuntimeException('The hooks folder of the given path is not writable'); } if (!is_writable($path . "/resources")) { throw new RuntimeException('The resources folder of the given path is not writable'); } } catch (RuntimeException $e) { echo "<br>" . plugin_error_message($e->getMessage()); exit; } //------------------------------------------------------------------------------------- ?> <style> #progress{ background-color: black; color: white; overflow-Y: scroll; border: solid blue 2px; font-family: Gill Sans Extrabold, sans-serif; font-size: 16px; line-height: 2; padding:25px;