Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 General
 Design issues
 Moving vsadmin one level up
Author « Topic »  

squadri
Advanced Member

Canada
235 Posts

Pre-sales questions only
(More Details...)

Posted - 06/02/2020 :  22:01:18  
Hi,
Is it possible to keep vsadmin one level up, I do not want anyone to access the vsadmin via FTP. Following is what I wanted to do in my root:

root/
vsadmin
website/index.php
website/categories.php etc...

in the above scenario, I can give FTP access only to website folder to developer/customer
I am using the following code in my index.php

<?php
session_cache_limiter('none');
session_start();
ob_start();
include "../vsadmin/db_conn_open.php";
include "../vsadmin/inc/languagefile.php";
include "../vsadmin/includes.php";
include "../vsadmin/inc/incfunctions.php";
include "../vsadmin/inc/metainfo.php";?>


All pages are working fine when put back vsadmin in the website folder.
Any idea or workaround is appreciated.

Thanks

dbdave
ECT Moderator

USA
10277 Posts

Posted - 06/02/2020 :  22:22:31  
I don't think you would be able to move the vsadmin above the site level. I'm pretty sure the paths in the code would no longer link to your products correctly.

David

Phil
ECT Moderator

United Kingdom
7622 Posts

Posted - 06/03/2020 :  02:57:39  
Hi,
would something like this work for you?

<?php
session_cache_limiter('none');
session_start();
ob_start();
include "$_SERVER['DOCUMENT_ROOT']/vsadmin/db_conn_open.php";
include "$_SERVER['DOCUMENT_ROOT']/vsadmin/inc/languagefile.php";
include "$_SERVER['DOCUMENT_ROOT']/vsadmin/includes.php";
include "$_SERVER['DOCUMENT_ROOT']/vsadmin/inc/incfunctions.php";
include "$_SERVER['DOCUMENT_ROOT']/vsadmin/inc/metainfo.php";
?>



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000