Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Mysource_Matrix Namespace Reference

Detailed Description

+--------------------------------------------------------------——+ | This MySource Matrix CMS file is Copyright (c) Squiz Pty Ltd | | ABN 77 084 670 600 | +--------------------------------------------------------------——+ | IMPORTANT: Your use of this Software is subject to the terms of | | the Licence provided in the file licence.txt. If you cannot find | | this file please contact Squiz (www.squiz.com.au) so we may provide| | you a copy. | +--------------------------------------------------------------——+ set_files_unrestricted.php

Purpose Script to set all files underneath a certain root node to either "restricted" or "unrestricted". Files marked "unrestricted", are of Live status or higher, and have public read permissions are directly through the web server (using the __data alias), instead of being passed through MySource Matrix.

Synopsis php set_files_unrestricted.php <system_root> <root_assetid> <setting>

  • system_root : the filesystem root of the MySource Matrix installation
  • root_assetid : asset ID of the root node to change from
  • setting : 1 to set unrestricted, 0 to set restricted

Change "php" to the appropriate CLI compilation of PHP for your system (eg. sometimes it will be installed to "php-cli" instead).

Author
Luke Wright lwrig.nosp@m.ht@s.nosp@m.quiz..nosp@m.net
Version
Revision:
1.5.2.1

core