X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=scripts%2Fuserrole.php;h=428abb8acedce4e93ad064a455aa58b3fa25bcf1;hb=b261a77be2a894e3fe4d00c86925bac7fb5d061c;hp=a2cc7def888e2cec29fcb98d2052bb242bb98d15;hpb=511566a132734b44fb709d69023a86423dbf20ec;p=quix0rs-gnu-social.git diff --git a/scripts/userrole.php b/scripts/userrole.php old mode 100644 new mode 100755 index a2cc7def88..428abb8ace --- a/scripts/userrole.php +++ b/scripts/userrole.php @@ -18,7 +18,8 @@ * along with this program. If not, see . */ -define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); +define('INSTALLDIR', dirname(__DIR__)); +define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public'); $shortoptions = 'i:n:r:d'; $longoptions = array('id=', 'nickname=', 'role=', 'delete'); @@ -27,6 +28,8 @@ $helptext = <<