Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Error ?
- if($data && passEqual($_POST['configuration_pass'], $data['user_pass'])) {
- // Thanks http://stackoverflow.com/questions/4914750/how-to-zip-a-whole-folder-using-php
- if($_POST['configuration_os'] == "android") {
- $conf_dir = 'android';
- } if($_POST['configuration_os'] == "gnu_linux") {
- $conf_dir = 'gnu-linux';
- } elseif($_POST['configuration_os'] == "osx_viscosity") {
- $conf_dir = 'osx-viscosity';
- } else {
- $conf_dir = 'windows';
- }
- $rootPath = realpath("./client-conf/$conf_dir");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement