Contemple Hub Update

In most cases it should work just fine to upload the new cthub.php file and the new hub.php file to your hub folder.

The following steps help provide better security for the hub.

  1. The src path in the install.xml file should be set to a relative path.
  2. All files except the cthub.php file should be moved into a directory one directory above the website root directory.
  3. The hub folder may be renamed. To connect to a website, an Editor would have to know the name of the hub folder for the installation.
  4. The cthub.php file may also be renamed. An Editor would have to know the name of the hub folder and the name of the hub script for the installation.

The above steps are not required, but otherwise the zip file, and the install config files may be accessible online without the password. This may cause serious security problems if the theme contains sensitive data like server passwords for mysql.

 

File: ../private-dir/install.xml

<?xml version="1.0" encoding="utf-8" ?>
<ct>
  <templates>
    <template
    name="app.contemple.demo"
    src="../../template-yourdomain-1.0.0.zip"
    version = "1.0.0"
    date="01-01-2020"
    homeAreaName="Home"
    uploadScript="https://yourdomain.com/cthub/cthub.php" />
  </templates>
</ct>