SimplePortal
Customization => Custom Coding => Topic started by: Malibuz0r on February 08, 2013, 06:34:34 PM
-
Alright, so I have a folder called "Test" in the directory where my forum is installed. How would I call a function from "Subs-Portal" without getting the "Hacking attempt..." message.
Here's how I attempted to use it:
(../Test/Testing.php)
<?php
require_once('../Sources/Subs-Portal.php');
global $context;
sportal_create_shout($context['SPortal']['shoutbox'], $shout);
?>
(^ I still don't know if that's going to work properly)
-
You need to define that the script is in SMF.
Alternatively you can just call SSI and then use $sourcedir global for the other requires.