|
Using encoding SourceGuardian API from unprotected script |
Top Previous Next |
|
SourceGuardian API functions are part of the SourceGuardian loader and so are only available when the SourceGuardian loader is loaded into PHP. This may be done automatically by the run-time loader of the SourceGuardian protected script, or when the SourceGuardian loader is installed server-wide in php.ini and loaded when PHP starts.
sg_load_file() SourceGuardian API function will return the file's data as-is without decryption when: - it runs from unprotected script with loader installed server-wide (this is useful for debugging purposes, see below) - it loads the template or data file which was not encoded by SourceGuardian
sg_encode_file() SourceGuardian API function will write the file's data as-is without encryption: - when run from an unprotected script with the loader installed server-wide
|