OpenGamePanel / OGP-Website

GNU General Public License v2.0
127 stars 105 forks source link

Include Path fix for XXTEA #583

Closed oNdsen closed 2 years ago

oNdsen commented 2 years ago

This allows getting access to OGPRemoteLibrary Class from other Modules

own3mall commented 2 years ago

Why did you change the path for XXTEA? Where is this failing for you?

In most of the code, lib_remote is loaded like this:

require_once('includes/lib_remote.php');

Thus, the active path is still currently the root OGP directory. If that were not the case, all of the require_once calls would fail and prevent further execution of the code if the path weren't correct in the first place.

oNdsen commented 2 years ago

My Goal are to implement additional Hooks in my Themes. To get Agent Informations like Crobjob i need to call to include the functions (i will not rewrite every function again...)

own3mall commented 2 years ago

I still don't understand why you need this, but could you give me an example?

oNdsen commented 2 years ago

i want to check in my theme driver (php script) which is located in themes folder if on main server a theme specific cronjob is existent. for that i need to call the server specific agent. and gor that, i need this require path corrected, to include this file.

own3mall commented 2 years ago

Ok, well I changed it here:

Reference Path Directly from Script Location