Advertisement
trupsalms

Untitled

Oct 8th, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // Error ?
  2. if($data && passEqual($_POST['configuration_pass'], $data['user_pass'])) {
  3. // Thanks http://stackoverflow.com/questions/4914750/how-to-zip-a-whole-folder-using-php
  4. if($_POST['configuration_os'] == "android") {
  5. $conf_dir = 'android';
  6. } if($_POST['configuration_os'] == "gnu_linux") {
  7. $conf_dir = 'gnu-linux';
  8. } elseif($_POST['configuration_os'] == "osx_viscosity") {
  9. $conf_dir = 'osx-viscosity';
  10. } else {
  11. $conf_dir = 'windows';
  12. }
  13. $rootPath = realpath("./client-conf/$conf_dir");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement