By default hardcode "admin" was used and the overwrite on the pages didn't work
@@ -10,9 +10,9 @@
// GLOBAL SETTINGS
//
var GLOBAL = {};
- GLOBAL.FTP_USER_PREFIX = 'admin_';
- GLOBAL.DB_USER_PREFIX = 'admin_';
- GLOBAL.DB_DBNAME_PREFIX = 'admin_';
+ GLOBAL.FTP_USER_PREFIX = '';
+ GLOBAL.DB_USER_PREFIX = '';
+ GLOBAL.DB_DBNAME_PREFIX = '';
GLOBAL.AJAX_URL = '';
</script>
</head>
@@ -240,6 +240,6 @@
</div>
<script>
- GLOBAL.DB_USER_PREFIX = <?php json_encode($user.'_') ?>;
- GLOBAL.DB_DBNAME_PREFIX = <?php json_encode($user.'_') ?>;
+GLOBAL.DB_USER_PREFIX = "<?php echo htmlentities($user.'_');?>";
+GLOBAL.DB_DBNAME_PREFIX = "<?php echo htmlentities($user.'_')?>";
@@ -139,6 +139,6 @@
<?php if ($v_type == 'pgsql'){ $user=strtolower($user); } ?>
+ GLOBAL.DB_USER_PREFIX = "<?php echo htmlentities($user.'_');?>";
+ GLOBAL.DB_DBNAME_PREFIX = "<?php echo htmlentities($user.'_')?>";
@@ -680,5 +680,5 @@
- GLOBAL.FTP_USER_PREFIX = <?php json_encode($user.'_') ?>;
+ GLOBAL.FTP_USER_PREFIX = "<?php echo htmlentities($user.'_') ?>";