for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
<?php
/**
* $Id: header.php v 1.5 23 August 2004 hsalazar Exp $
* Module: Soapbox
* Version: v 1.5
* Release Date: 23 August 2004
* Author: hsalazar
* Licence: GNU
*/
global $xoopsModule;
global
Instead of relying on global state, we recommend one of these alternatives:
function myFunction($a, $b) { // Do something }
class MyClass { private $a; private $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function myFunction() { // Do something } }
include dirname(dirname(__DIR__)) . '/mainfile.php';
include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->dirname() . "/include/functions.php";
$myts = MyTextSanitizer:: getInstance();
xoops_load('Xmf\Request');
Instead of relying on
global
state, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state