ipbfuck Posted December 15, 2015 Share Posted December 15, 2015 Hi! With wordpress i can use: // Prevent Direct Access if (defined('DB_NAME')) { echo '... my code'; } i don't have found something similar with ipb, and if i use insert in template i don't know how i can prevent code output if is called via url (no inside ipb). i've try to put in $var instead of echo, but i don't know how i can "echo" this var with insert in wy template. - so, i need to kill code if isn't in ipb, or something like this: myfile.php $var = "myoutput"; in template: {insert="/myfile.php" echo $var;} - ... how i can this? thanks in advance, S.N. Link to comment Share on other sites More sharing options...
ipbfuck Posted December 15, 2015 Author Share Posted December 15, 2015 edit: ok, i've found a scratch of code inside some ipb source file: /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } This fix my request regards... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.