Advertisement
Guest User

Untitled

a guest
Jan 25th, 2018
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.67 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5. if (file_exists( 'includes/config.php' )) { require( 'includes/config.php'); } else { header( 'Location: install' );};
  6. require 'includes/carray.php';
  7.  
  8. if(base64_decode($_SESSION['loggedin']) == 'true') {}
  9. else { header('Location: login.php'); }
  10.  
  11. $postvars = array(array('user' => $vst_username,'password' => $vst_password,'cmd' => 'v-list-user','arg1' => $username,'arg2' => 'json'));
  12.  
  13. $curl0 = curl_init();
  14. $curlstart = 0;
  15.  
  16. while($curlstart <= 0) {
  17.  
  18. curl_setopt(${'curl' . $curlstart}, CURLOPT_URL, $vst_url);
  19. curl_setopt(${'curl' . $curlstart}, CURLOPT_RETURNTRANSFER,true);
  20. curl_setopt(${'curl' . $curlstart}, CURLOPT_SSL_VERIFYPEER, false);
  21. curl_setopt(${'curl' . $curlstart}, CURLOPT_SSL_VERIFYHOST, false);
  22. curl_setopt(${'curl' . $curlstart}, CURLOPT_POST, true);
  23. curl_setopt(${'curl' . $curlstart}, CURLOPT_POSTFIELDS, http_build_query($postvars[$curlstart]));
  24.  
  25. $curlstart++;
  26. }
  27.  
  28. $admindata = json_decode(curl_exec($curl0), true)[$username];
  29. if(isset($admindata['LANGUAGE'])){ $locale = $ulang[$admindata['LANGUAGE']]; }
  30. setlocale(LC_CTYPE, $locale);
  31. setlocale(LC_MESSAGES, $locale);
  32. bindtextdomain('messages', 'locale');
  33. textdomain('messages');
  34.  
  35. ?>
  36. <!DOCTYPE html>
  37. <html lang="en">
  38.  
  39. <head>
  40. <meta charset="utf-8">
  41. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  42. <meta name="viewport" content="width=device-width, initial-scale=1">
  43. <meta name="description" content="">
  44. <meta name="author" content="">
  45. <link rel="icon" type="image/ico" href="plugins/images/favicon.ico">
  46. <title><?php echo $sitetitle; ?> - <?php echo _("Account"); ?></title>
  47. <link href="bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  48. <link href="plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css" rel="stylesheet">
  49. <link href="bootstrap/dist/css/bootstrap-select.min.css" rel="stylesheet">
  50. <link href="plugins/bower_components/custom-select/custom-select.css" rel="stylesheet">
  51. <link href="css/animate.css" rel="stylesheet">
  52. <link href="css/style.css" rel="stylesheet">
  53. <link href="plugins/bower_components/toast-master/css/jquery.toast.css" rel="stylesheet">
  54. <link href="css/colors/<?php if(isset($_COOKIE['theme'])) { echo base64_decode($_COOKIE['theme']); } else {echo $themecolor; } ?>" id="theme" rel="stylesheet">
  55. <link href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.11.5/sweetalert2.css" rel="stylesheet" />
  56. <?php if(GOOGLE_ANALYTICS_ID != ''){ echo "<script async src='https://www.googletagmanager.com/gtag/js?id=" . GOOGLE_ANALYTICS_ID . "'></script>
  57. <script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '" . GOOGLE_ANALYTICS_ID . "');</script>"; } ?>
  58. <style>
  59. .select2-results{
  60. max-height: 200px;
  61. padding: 0 0 0 4px;
  62. margin: 4px 4px 4px 0;
  63. position: relative;
  64. overflow-x: hidden;
  65. overflow-y: auto;
  66. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  67. }
  68. </style>
  69. <!--[if lt IE 9]>
  70. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  71. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  72. <![endif]-->
  73. </head>
  74. <body class="fix-header">
  75. <?php if(INTERAKT_APP_ID != ''){ echo '<script>
  76. window.mySettings = {
  77. first_name: "' . $admindata['FNAME'] . '",
  78. last_name: "' . $admindata['LNAME'] . '",
  79. suspended: "' . $admindata['SUSPENDED'] . '",
  80. package: "' . $admindata['PACKAGE'] . '",
  81. language: "' . $admindata['LANGUAGE'] . '",
  82. uname: "' . $username . '",
  83. email: "' . $admindata['CONTACT'] . '",
  84. created_at: ' . strtotime($admindata['DATE'] . ' ' . $admindata['TIME']) . ',
  85. joined_at: "' . $admindata['DATE'] . ' ' . $admindata['TIME'] . '",
  86. app_id: "' . INTERAKT_APP_ID . '"
  87. };
  88. </script>'; } ?>
  89. <script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.11.5/sweetalert2.js"></script>
  90. <?php
  91.  
  92. if(isset($_GET['password'])) { $pwcode = $_GET['password']; }
  93. if(isset($_GET['email'])) { $emailcode = $_GET['email']; }
  94. if(isset($_GET['lang'])) { $langcode = $_GET['lang']; }
  95. if(isset($_GET['ns'])) { $nscode = $_GET['ns']; }
  96. if(isset($_GET['name'])) { $namecode = $_GET['name']; }
  97. if(isset($_GET['password']) && isset($_GET['email']) && isset($_GET['lang']) && isset($_GET['ns']) && isset($_GET['name'])) { $answer1 = $pwcode + $emailcode + $langcode + $nscode + $namecode; }
  98. if(isset($answer1)) { $answer = (int)$answer1; }
  99. if(isset($pwcode) || isset($emailcode) || isset($langcode) || isset($nscode) || isset($namecode)){
  100. if($answer == "0") {
  101. echo "<script> swal({title:'" . _("Successfully Updated!") . "', type:'success'})</script>";
  102. }
  103. if(isset($answer) && $answer == "1" || isset($answer) && $answer == "2") { echo "<script> swal('" . _("Invalid data entered in form.") . "<br>" . _("Please try again.") . "', '<br>";
  104. if(isset($pwcode) && $pwcode != "0"){ echo " P: " . $pwcode;}
  105. if(isset($emailcode) && $emailcode != "0"){ echo " E: " . $emailcode;}
  106. if(isset($langcode) && $langcode != "0"){ echo " L: " . $langcode;}
  107. if(isset($nscode) && $nscode != "0"){ echo " NS: " . $nscode;}
  108. if(isset($namecode) && $namecode != "0"){ echo " N: " . $namecode;}
  109. echo "', 'error')</script>";}
  110. if(isset($answer) && $answer > "2") { echo "<script> swal('" . _("Please try again or contact support.") . "', '<br>";
  111. if(isset($pwcode) && $pwcode != "0"){ echo " P: " . $pwcode;}
  112. if(isset($emailcode) && $emailcode != "0"){ echo " E: " . $emailcode;}
  113. if(isset($langcode) && $langcode != "0"){ echo " L: " . $langcode;}
  114. if(isset($nscode) && $nscode != "0"){ echo " NS: " . $nscode;}
  115. if(isset($namecode) && $namecode != "0"){ echo " N: " . $namecode;}
  116. echo "', 'error')</script>";}
  117. }
  118. ?>
  119.  
  120. <div id="wrapper">
  121. <nav class="navbar navbar-default navbar-static-top m-b-0">
  122. <div class="navbar-header">
  123. <div class="top-left-part">
  124. <a class="logo" href="index.php">
  125. <b>
  126. <img src="plugins/images/admin-logo.png" alt="home" class="logo-1 dark-logo" />
  127. <img src="plugins/images/admin-logo-dark.png" alt="home" class="logo-1 light-logo" />
  128. </b>
  129. <span class="hidden-xs">
  130. <img src="plugins/images/admin-text.png" alt="home" class="hidden-xs dark-logo" />
  131. <img src="plugins/images/admin-text-dark.png" alt="home" class="hidden-xs light-logo" />
  132. </span>
  133. </a>
  134. </div>
  135. <ul class="nav navbar-top-links navbar-left">
  136. <li><a href="javascript:void(0)" class="open-close waves-effect waves-light visible-xs"><i class="ti-close ti-menu"></i></a></li>
  137. </ul>
  138. <ul class="nav navbar-top-links navbar-right pull-right">
  139.  
  140. <li class="dropdown">
  141. <a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#"><b class="hidden-xs"><?php print_r($uname); ?></b><span class="caret"></span> </a>
  142. <ul class="dropdown-menu dropdown-user animated flipInY">
  143. <li>
  144. <div class="dw-user-box">
  145. <div class="u-text">
  146. <h4>
  147. <?php print_r($uname); ?>
  148. </h4>
  149. <p class="text-muted">
  150. <?php print_r($admindata['CONTACT']); ?>
  151. </p>
  152. </div>
  153. </div>
  154. </li>
  155. <li role="separator" class="divider"></li>
  156. <li><a href="profile.php"><i class="ti-home"></i> <?php echo _("My Account"); ?></a></li>
  157. <li><a href="profile.php?settings=open"><i class="ti-settings"></i> <?php echo _("Account Settings"); ?></a></li>
  158. <li role="separator" class="divider"></li>
  159. <li><a href="process/logout.php"><i class="fa fa-power-off"></i> <?php echo _("Logout"); ?></a></li>
  160. </ul>
  161. </li>
  162.  
  163. </ul>
  164. </div>
  165. </nav>
  166. <div class="navbar-default sidebar" role="navigation">
  167. <div class="sidebar-nav slimscrollsidebar">
  168. <div class="sidebar-head">
  169. <h3>
  170. <span class="fa-fw open-close">
  171. <i class="ti-menu hidden-xs"></i>
  172. <i class="ti-close visible-xs"></i>
  173. </span>
  174. <span class="hide-menu"><?php echo _("Navigation"); ?></span>
  175. </h3>
  176. </div>
  177. <ul class="nav" id="side-menu">
  178. <li>
  179. <a href="index.php" class="waves-effect">
  180. <i class="mdi mdi-home fa-fw"></i> <span class="hide-menu"><?php echo _("Dashboard"); ?></span>
  181. </a>
  182. </li>
  183.  
  184. <li class="devider"></li>
  185. <li>
  186. <a href="#" class="waves-effect"><i class="ti-user fa-fw"></i><span class="hide-menu"> <?php print_r($uname); ?><span class="fa arrow"></span></span>
  187. </a>
  188. <ul class="nav nav-second-level collapse" >
  189. <li> <a href="profile.php" id="profileactive"><i class="ti-home fa-fw <?php if(isset($_GET['settings']) && $_GET['settings'] == "open") { echo 'text-inverse';} ?>"></i> <span style="<?php if(isset($_GET['settings']) && $_GET['settings'] == "open") { echo 'color:#54667a;font-weight:300;';} ?>" class="hide-menu"> <?php echo _("My Account"); ?></span></a></li>
  190. <li> <a href="profile.php?settings=open" id="settingsactive"><i class="ti-settings fa-fw "></i> <span class="hide-menu"> <?php echo _("Account Settings"); ?></span></a></li>
  191. </ul>
  192. </li>
  193. <?php if ($webenabled == 'true' || $dnsenabled == 'true' || $mailenabled == 'true' || $dbenabled == 'true') { echo '<li class="devider"></li>
  194. <li> <a href="#" class="waves-effect"><i class="mdi mdi-av-timer fa-fw" data-icon="v"></i> <span class="hide-menu">' . _("Management") . '<span class="fa arrow"></span> </span></a>
  195. <ul class="nav nav-second-level">'; } ?>
  196. <?php if ($webenabled == 'true') { echo '<li> <a href="list/web.php"><i class="ti-world fa-fw"></i><span class="hide-menu">' . _("Web") . '</span></a> </li>'; } ?>
  197. <?php if ($dnsenabled == 'true') { echo '<li> <a href="list/dns.php"><i class="fa fa-sitemap fa-fw"></i><span class="hide-menu">' . _("DNS") . '</span></a> </li>'; } ?>
  198. <?php if ($mailenabled == 'true') { echo '<li> <a href="list/mail.php"><i class="fa fa-envelope fa-fw"></i><span class="hide-menu">' . _("Mail") . '</span></a> </li>'; } ?>
  199. <?php if ($dbenabled == 'true') { echo '<li> <a href="list/db.php"><i class="fa fa-database fa-fw"></i><span class="hide-menu">' . _("Database") . '</span></a> </li>'; } ?>
  200. <?php if ($webenabled == 'true' || $dnsenabled == 'true' || $mailenabled == 'true' || $dbenabled == 'true') { echo '</ul>
  201. </li>'; } ?>
  202. <li> <a href="list/cron.php" class="waves-effect"><i class="mdi mdi-settings fa-fw"></i> <span class="hide-menu"><?php echo _("Cron Jobs"); ?></span></a> </li>
  203. <li> <a href="list/backups.php" class="waves-effect"><i class="fa fa-cloud-upload fa-fw"></i> <span class="hide-menu"><?php echo _("Backups"); ?></span></a> </li>
  204. <?php if ($ftpurl == '' && $webmailurl == '' && $phpmyadmin == '' && $phppgadmin == '') {} else { echo '<li class="devider"></li>
  205. <li><a href="#" class="waves-effect"><i class="mdi mdi-apps fa-fw"></i> <span class="hide-menu">' . _("Apps") . '<span class="fa arrow"></span></span></a>
  206. <ul class="nav nav-second-level">'; } ?>
  207. <?php if ($ftpurl != '') { echo '<li><a href="' . $ftpurl . '" target="_blank"><i class="fa fa-file-code-o fa-fw"></i><span class="hide-menu">' . _("FTP") . '</span></a></li>';} ?>
  208. <?php if ($webmailurl != '') { echo '<li><a href="' . $webmailurl . '" target="_blank"><i class="fa fa-envelope-o fa-fw"></i><span class="hide-menu">' . _("Webmail") . '</span></a></li>';} ?>
  209. <?php if ($phpmyadmin != '') { echo '<li><a href="' . $phpmyadmin . '" target="_blank"><i class="fa fa-edit fa-fw"></i><span class="hide-menu">' . _("phpMyAdmin") . '</span></a></li>';} ?>
  210. <?php if ($phppgadmin != '') { echo '<li><a href="' . $phppgadmin . '" target="_blank"><i class="fa fa-edit fa-fw"></i><span class="hide-menu">' . _("phpPgAdmin") . '</span></a></li>';} ?>
  211. <?php if ($ftpurl == '' && $webmailurl == '' && $phpmyadmin == '' && $phppgadmin == '') {} else { echo '</ul></li>';} ?>
  212. <li class="devider"></li>
  213. <li><a href="process/logout.php" class="waves-effect"><i class="mdi mdi-logout fa-fw"></i> <span class="hide-menu"><?php echo _("Log out"); ?></span></a></li>
  214. <?php if ($oldcpurl == '' || $supporturl == '') {} else { echo '<li class="devider"></li>'; } ?>
  215. <?php if ($oldcpurl != '') { echo '<li><a href="' . $oldcpurl . '" class="waves-effect"> <i class="fa fa-tachometer fa-fw"></i> <span class="hide-menu"> ' . _("Control Panel v1") . '</span></a></li>'; } ?>
  216. <?php if ($supporturl != '') { echo '<li><a href="' . $supporturl . '" class="waves-effect" target="_blank"> <i class="fa fa-life-ring fa-fw"></i> <span class="hide-menu">' . _("Support") . '</span></a></li>'; } ?>
  217. </ul>
  218. </div>
  219. </div>
  220. <div id="page-wrapper">
  221. <div class="container-fluid">
  222. <div class="row bg-title">
  223. <div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
  224. <h4 class="page-title"><?php echo _("My Account"); ?></h4> </div>
  225.  
  226. </div>
  227. <div class="row">
  228. <div class="col-md-4 col-xs-12">
  229. <div class="white-box">
  230. <div class="user-bg bg-theme">
  231. <div class="overlay-box bg-theme">
  232. <div class="user-content"><br><br>
  233. <h4 class="text-white"><?php print_r($username); ?></h4>
  234. <h5 class="text-white"><?php print_r($admindata['CONTACT']); ?></h5> </div>
  235. </div>
  236. </div>
  237.  
  238. </div>
  239. </div>
  240. <div class="col-md-8 col-xs-12">
  241. <div class="white-box">
  242. <ul class="nav nav-tabs tabs customtab">
  243. <li class="<?php if(!isset($_GET['settings']) || isset($_GET['settings']) && $_GET['settings'] != "open") { echo "active tab"; } else { echo "tab"; } ?>" >
  244. <a href="profile.php"> <span class="visible-xs"><i class="fa fa-user"></i></span> <span class="hidden-xs"><?php echo _("Account & Password"); ?></span> </a>
  245. </li>
  246. <li class="<?php if(isset($_GET['settings']) && $_GET['settings'] == "open") { echo "active tab"; } else { echo "tab"; } ?>">
  247. <a href="profile.php?settings=open"> <span class="visible-xs"><i class="fa fa-cog"></i></span> <span class="hidden-xs"><?php echo _("Information & Settings"); ?></span> </a>
  248. </li>
  249. </ul>
  250. <div class="tab-content ">
  251. <div class="tab-pane <?php if(!isset($_GET['settings']) || isset($_GET['settings']) && $_GET['settings'] != "open") { echo "active"; } ?>" id="profile">
  252. <div class="row">
  253. <div class="col-md-3 col-xs-6 b-r"> <strong><?php echo _("Name"); ?></strong>
  254. <br>
  255. <p class="text-muted"><?php print_r($admindata['FNAME'] . ' ' . $admindata['LNAME']); ?></p>
  256. </div>
  257. <div class="col-md-3 col-xs-6 b-r"> <strong><?php echo _("Joined"); ?></strong>
  258. <br>
  259. <p class="text-muted"><?php $date=date_create($admindata['DATE'] . ' ' . $admindata['TIME']);
  260. echo date_format($date,"F j, Y - g:i A"); ?></p>
  261. </div>
  262. <div class="col-md-3 col-xs-6 b-r"> <strong><?php echo _("Plan"); ?></strong>
  263. <br>
  264. <p class="text-muted"><?php print_r(ucfirst($admindata['PACKAGE'])); ?></p>
  265. </div>
  266. <div class="col-md-3 col-xs-6"> <strong><?php echo _("Language"); ?></strong>
  267. <br>
  268. <p class="text-muted"><?php if($admindata['LANGUAGE'] == ""){echo "Not Set";} else{ print_r($countries[$admindata['LANGUAGE']]);} ?></p>
  269. </div>
  270. </div>
  271. <hr>
  272.  
  273. <strong><?php echo _("Nameservers"); ?>:</strong><p class="m-t-30">
  274. <ul class="dashed">
  275. <?php
  276. $nsArray = explode(',', ($admindata['NS']));
  277.  
  278. foreach ($nsArray as &$value) {
  279. $value = "<li>" . $value . "</li>";
  280. }
  281. foreach($nsArray as $val) {
  282. echo $val;
  283. }
  284. ?>
  285. </ul>
  286. <hr>
  287.  
  288. <form class="form-horizontal form-material" autocomplete="off" action="process/passchange.php" method="post">
  289. <div class="form-group">
  290. <label for="password" class="col-md-12"><?php echo _("Change Password"); ?> / <a style="cursor:pointer" onclick="generatePassword(10)"> <?php echo _("Generate"); ?></a></label>
  291. <div class="col-md-12 input-group" style="padding-left: 15px;">
  292. <input type="password" class="form-control form-control-line" autocomplete="new-password" name="password" id="password"> <span class="input-group-btn">
  293. <button class="btn btn-info" style="margin-right: 15px;" name="Show" onclick="toggler(this)" id="tg" type="button"><i class="ti-eye"></i></button>
  294. </span></div>
  295. </div>
  296. <div class="col-sm-12">
  297. <button class="btn btn-success"><?php echo _("Change Password"); ?></button> &nbsp;
  298. <a href="profile.php" style="color: inherit;text-decoration: inherit;"><button class="btn btn-muted" type="button"><?php echo _("Back"); ?></button></a>
  299. </div></form>
  300. <br>
  301.  
  302. </p>
  303.  
  304. </div>
  305. <div class="tab-pane <?php if(isset($_GET['settings']) && $_GET['settings'] == "open") { echo "active"; } ?>" id="settings">
  306. <form class="form-horizontal form-material" autocomplete="off" action="process/updatesettings.php" method="post">
  307. <input type="hidden" name="fname-x" value="<?php print_r($admindata['FNAME']); ?>"/>
  308. <input type="hidden" name="lname-x" value="<?php print_r($admindata['LNAME']); ?>"/>
  309. <input type="hidden" name="email-x" value="<?php print_r($admindata['CONTACT']); ?>"/>
  310. <input type="hidden" name="language-x" value="<?php print_r($admindata['LANGUAGE']); ?>"/>
  311. <input type="hidden" name="ns1-x" value="<?php print_r(explode(',', ($admindata['NS']))[0]); ?>"/>
  312. <input type="hidden" name="ns2-x" value="<?php print_r(explode(',', ($admindata['NS']))[1]); ?>"/>
  313. <input type="hidden" name="ns3-x" value="<?php print_r(explode(',', ($admindata['NS']))[2]); ?>"/>
  314. <input type="hidden" name="ns4-x" value="<?php print_r(explode(',', ($admindata['NS']))[3]); ?>"/>
  315. <input type="hidden" name="ns5-x" value="<?php print_r(explode(',', ($admindata['NS']))[4]); ?>"/>
  316. <input type="hidden" name="ns6-x" value="<?php print_r(explode(',', ($admindata['NS']))[5]); ?>"/>
  317. <input type="hidden" name="ns7-x" value="<?php print_r(explode(',', ($admindata['NS']))[6]); ?>"/>
  318. <input type="hidden" name="ns8-x" value="<?php print_r(explode(',', ($admindata['NS']))[7]); ?>"/>
  319.  
  320. <div class="form-group">
  321. <label for="username" class="col-md-12"><?php echo _("Username"); ?></label>
  322. <div class="col-md-12">
  323. <input type="text" disabled value="<?php print_r($username); ?>" class="form-control form-control-line" name="username" id="username"> </div>
  324. </div>
  325.  
  326. <div class="form-group">
  327. <label class="col-sm-6 pull-left"><?php echo _("First Name"); ?></label><label class="col-sm-6 pull-right"><?php echo _("Last Name"); ?></label>
  328. <div class="col-sm-6 pull-left">
  329. <input type="text" name="fname" value="<?php print_r($admindata['FNAME']); ?>" class="form-control form-control-line"> </div>
  330. <div class="col-sm-6 pull-right">
  331. <input type="text" name="lname" value="<?php print_r($admindata['LNAME']); ?>" class="form-control form-control-line"> </div>
  332. </div>
  333.  
  334. <div class="form-group">
  335. <label for="email" class="col-md-12"><?php echo _("Email"); ?></label>
  336. <div class="col-md-12">
  337. <input type="email" value="<?php print_r($admindata['CONTACT']); ?>" class="form-control form-control-line" name="email" id="email"> </div>
  338. </div>
  339. <div class="form-group" style="overflow: visible;">
  340. <label class="col-md-12"><?php echo _("Language"); ?></label>
  341. <div class="col-md-12">
  342. <select class="form-control select2" name="language" id="select2">
  343.  
  344. <option value="ar"><?php print_r($countries['ar']); ?></option>
  345. <option value="bs"><?php print_r($countries['bs']); ?></option>
  346. <option value="cn"><?php print_r($countries['cn']); ?></option>
  347. <option value="cz"><?php print_r($countries['cz']); ?></option>
  348. <option value="da"><?php print_r($countries['da']); ?></option>
  349. <option value="de"><?php print_r($countries['de']); ?></option>
  350. <option value="el"><?php print_r($countries['el']); ?></option>
  351. <option value="en"><?php print_r($countries['en']); ?></option>
  352. <option value="es"><?php print_r($countries['es']); ?></option>
  353. <option value="fa"><?php print_r($countries['fa']); ?></option>
  354. <option value="fi"><?php print_r($countries['fi']); ?></option>
  355. <option value="fr"><?php print_r($countries['fr']); ?></option>
  356. <option value="hu"><?php print_r($countries['hu']); ?></option>
  357. <option value="id"><?php print_r($countries['id']); ?></option>
  358. <option value="it"><?php print_r($countries['it']); ?></option>
  359. <option value="ja"><?php print_r($countries['ja']); ?></option>
  360. <option value="ka"><?php print_r($countries['ka']); ?></option>
  361. <option value="nl"><?php print_r($countries['nl']); ?></option>
  362. <option value="no"><?php print_r($countries['no']); ?></option>
  363. <option value="pl"><?php print_r($countries['pl']); ?></option>
  364. <option value="pt-BR"><?php print_r($countries['pt-BR']); ?></option>
  365. <option value="pt"><?php print_r($countries['pt']); ?></option>
  366. <option value="ro"><?php print_r($countries['ro']); ?></option>
  367. <option value="ru"><?php print_r($countries['ru']); ?></option>
  368. <option value="se"><?php print_r($countries['se']); ?></option>
  369. <option value="tr"><?php print_r($countries['tr']); ?></option>
  370. <option value="tw"><?php print_r($countries['tw']); ?></option>
  371. <option value="ua"><?php print_r($countries['ua']); ?></option>
  372. <option value="vi"><?php print_r($countries['vi']); ?></option>
  373. </select>
  374. </div>
  375. </div>
  376. <div class="form-group">
  377. <label class="col-md-12"><?php echo _("Default Nameservers"); ?></label>
  378. <div class="col-md-12">
  379.  
  380. <div><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[0]); ?>" class="form-control form-control-line" name="ns1" id="ns1x"><br></div>
  381.  
  382. <div><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[1]); ?>" class="form-control form-control-line" name="ns2" id="ns2x"><br><div id="ns2wrapper"><a style="cursor:pointer;" id="addmore" onclick="add1();"><?php echo _("Add One"); ?></a></div></div>
  383.  
  384. <div id="ns3" style="display:<?php if(explode(',', ($admindata['NS']))[2] == ''){ echo "none"; } else { echo "block"; } ?>"><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[2]); ?>" class="form-control form-control-line" name="ns3" id="ns3x"><br><div id="ns3wrapper"><a style="cursor:pointer;" id="addmore1" onclick="add2();"><?php echo _("Add One"); ?></a> / <a style="cursor:pointer;" id="remove1" onclick="rem2();"><?php echo _("Remove One"); ?></a></div></div>
  385.  
  386. <div id="ns4" style="display:<?php if(explode(',', ($admindata['NS']))[3] == ''){ echo "none"; } else { echo "block"; } ?>"><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[3]); ?>" class="form-control form-control-line" name="ns4" id="ns4x"><br><div id="ns4wrapper"><a style="cursor:pointer;" id="addmore2" onclick="add3();"><?php echo _("Add One"); ?></a> / <a style="cursor:pointer;" id="remove2" onclick="rem3();"><?php echo _("Remove One"); ?></a></div></div>
  387.  
  388. <div id="ns5" style="display:<?php if(explode(',', ($admindata['NS']))[4] == ''){ echo "none"; } else { echo "block"; } ?>"><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[4]); ?>" class="form-control form-control-line" name="ns5" id="ns5x"><br><div id="ns5wrapper"><a style="cursor:pointer;" id="addmore3" onclick="add4();"><?php echo _("Add One"); ?></a> / <a style="cursor:pointer;" id="remove3" onclick="rem4();"><?php echo _("Remove One"); ?></a></div></div>
  389.  
  390. <div id="ns6" style="display:<?php if(explode(',', ($admindata['NS']))[5] == ''){ echo "none"; } else { echo "block"; } ?>"><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[5]); ?>" class="form-control form-control-line" name="ns6" id="ns6x"><br><div id="ns6wrapper"><a style="cursor:pointer;" id="addmore4" onclick="add5();"><?php echo _("Add One"); ?></a> / <a style="cursor:pointer;" id="remove4" onclick="rem5();"><?php echo _("Remove One"); ?></a></div></div>
  391.  
  392. <div id="ns7" style="display:<?php if(explode(',', ($admindata['NS']))[6] == ''){ echo "none"; } else { echo "block"; } ?>"><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[6]); ?>" class="form-control form-control-line" name="ns7" id="ns7x"><br><div id="ns7wrapper"><a style="cursor:pointer;" id="addmore5" onclick="add6();"><?php echo _("Add One"); ?></a> / <a style="cursor:pointer;" id="remove5" onclick="rem6();"><?php echo _("Remove One"); ?></a></div></div>
  393.  
  394. <div id="ns8" style="display:<?php if(explode(',', ($admindata['NS']))[7] == ''){ echo "none"; } else { echo "block"; } ?>"><input type="text" value="<?php print_r(explode(',', ($admindata['NS']))[7]); ?>" class="form-control form-control-line" name="ns8" id="ns8x"><br><div id="ns8wrapper"><a style="cursor:pointer;" id="remove6" onclick="rem7();"><?php echo _("Remove One"); ?></a></div></div>
  395. </div>
  396. </div>
  397. <div class="form-group" style="overflow: visible;">
  398. <label class="col-md-12"><?php echo _("Theme"); ?></label>
  399. <div class="col-md-12">
  400. <select class="form-control" name="cookie">
  401. <option value="default" <?php if(base64_decode($_COOKIE["theme"]) == "default.css") { echo "selected"; } ?>><?php echo _("Default"); ?></option>
  402. <option value="blue" <?php if(base64_decode($_COOKIE["theme"]) == "blue.css") { echo "selected"; } ?>><?php echo _("Blue"); ?></option>
  403. <option value="purple" <?php if(base64_decode($_COOKIE["theme"]) == "purple.css") { echo "selected"; } ?>><?php echo _("Purple"); ?></option>
  404. <option value="orange" <?php if(base64_decode($_COOKIE["theme"]) == "orange.css") { echo "selected"; } ?>><?php echo _("Orange"); ?></option>
  405. </select>
  406. </div>
  407. </div>
  408. <div class="form-group">
  409. <div class="col-sm-12">
  410. <button class="btn btn-success"><?php echo _("Update Profile"); ?></button> &nbsp;
  411. <a href="profile.php" style="color: inherit;text-decoration: inherit;"><button class="btn btn-muted" type="button"><?php echo _("Back"); ?></button></a>
  412. </div>
  413. </div>
  414. </form>
  415. </div>
  416. </div>
  417. </div>
  418. </div>
  419. </div>
  420. </div>
  421. <footer class="footer text-center">&copy; <?php echo _("Copyright"); ?> <?php echo date("Y") . ' ' . $sitetitle; ?>. <?php echo _("All Rights Reserved. Vesta Web Interface"); ?> <?php require 'includes/versioncheck.php'; ?> <?php echo _("by CDG Web Services"); ?>.</footer>
  422. </div>
  423. </div>
  424. <script src="plugins/bower_components/jquery/dist/jquery.min.js"></script>
  425. <script src="../plugins/bower_components/toast-master/js/jquery.toast.js"></script>
  426. <script src="bootstrap/dist/js/bootstrap.min.js"></script>
  427. <script src="plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.js"></script>
  428. <script src="js/jquery.slimscroll.js"></script>
  429. <script src="js/waves.js"></script>
  430. <script src="js/custom.js"></script>
  431. <script src="plugins/bower_components/styleswitcher/jQuery.style.switcher.js"></script>
  432. <script src="bootstrap/dist/js/bootstrap-select.min.js"></script>
  433. <script src="plugins/bower_components/custom-select/custom-select.min.js"></script>
  434. <script>
  435. function toggler(e) {
  436. if( e.name == 'Hide' ) {
  437. e.name = 'Show'
  438. document.getElementById('password').type="password";
  439. } else {
  440. e.name = 'Hide'
  441. document.getElementById('password').type="text";
  442. }
  443. }
  444. function generatePassword(length) {
  445. var password = '', character;
  446. while (length > password.length) {
  447. if (password.indexOf(character = String.fromCharCode(Math.floor(Math.random() * 94) + 33), Math.floor(password.length / 94) * 94) < 0) {
  448. password += character;
  449. }
  450. }
  451. document.getElementById('password').value = password;
  452. document.getElementById('tg').name='Hide';
  453. document.getElementById('password').type="text";
  454. }
  455. $(document).ready(function() {
  456. $('.select2').select2();
  457. });
  458.  
  459. document.getElementById('select2').value = '<?php print_r($admindata['LANGUAGE']); ?>';
  460.  
  461.  
  462. <?php
  463. $checkcount = 2;
  464. $check1count = 3;
  465.  
  466. while($checkcount <= 7) {
  467. echo "if( document.getElementById('ns" . $check1count . "x').value != '') {
  468. document.getElementById('ns" . $checkcount . "wrapper').style.display = 'none';
  469. }";
  470.  
  471. $checkcount++;
  472. $check1count++;
  473. }
  474.  
  475. $addcount = 1;
  476. $add1count = 2;
  477. $add2count = 3;
  478.  
  479.  
  480. while($addcount <= 6) {
  481. echo "function add" . $addcount ."() {
  482. if( document.getElementById('ns" . $add2count . "').style.display = 'none' ) {
  483. document.getElementById('ns" . $add2count . "').style.display = 'block';
  484. document.getElementById('ns" . $add1count . "wrapper').style.display = 'none';
  485. }
  486. }";
  487. $addcount++;
  488. $add1count++;
  489. $add2count++;
  490. }
  491.  
  492. $remcount = 2;
  493. $rem1count = 3;
  494.  
  495.  
  496. while($remcount <= 7) {
  497. echo "function rem" . $remcount ."() {
  498. if( document.getElementById('ns" . $rem1count . "').style.display = 'block' ) {
  499. document.getElementById('ns" . $rem1count . "').style.display = 'none';
  500. document.getElementById('ns" . $remcount . "wrapper').style.display = 'block';
  501. document.getElementById('ns" . $rem1count . "x').value = '';
  502. }
  503. }";
  504. $remcount++;
  505. $rem1count++;
  506. }
  507. ?>
  508. </script>
  509. <?php if(INTERAKT_APP_ID != ''){ echo '
  510. <script>
  511. (function() {
  512. var interakt = document.createElement("script");
  513. interakt.type = "text/javascript"; interakt.async = true;
  514. interakt.src = "//cdn.interakt.co/interakt/' . INTERAKT_APP_ID . '.js";
  515. var scrpt = document.getElementsByTagName("script")[0];
  516. scrpt.parentNode.insertBefore(interakt, scrpt);
  517. })()
  518. </script>'; } ?>
  519.  
  520. </body>
  521.  
  522. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement