ja habe xampp bei jeder änderung neugestartet
Beiträge von Lukas_Multi
-
-
Hab ich enabled geht immer noch nicht. Ich habe ja schon im internet rumgesucht und dazu nix gefunden, deswegen frage ich ja hier
-
Mein vorhaben ist diese Ts3 Tool zu installieren. Ich habe es 2 mal versucht zu installieren aber das hat nicht so ganz geklappt.
ich habe die ";" weggemacht funktioniert trozdem nicht...
-
Bei mir sieht das ganze so aus:
Code
Alles anzeigen[COM] ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs ; http://php.net/com.typelib-file ;com.typelib_file = ; allow Distributed-COM calls ; http://php.net/com.allow-dcom ;com.allow_dcom = true ; autoregister constants of a components typlib on com_load() ; http://php.net/com.autoregister-typelib ;com.autoregister_typelib = true ; register constants casesensitive ; http://php.net/com.autoregister-casesensitive ;com.autoregister_casesensitive = false ; show warnings on duplicate constant registrations ; http://php.net/com.autoregister-verbose ;com.autoregister_verbose = true ; The default character set code-page to use when passing strings to and from COM objects. ; Default: system ANSI code page ;com.code_page=
Was muss ich da jetzt umstellen ?
-
ich finde php_com_dotnet.dll in der php.ini nicht ...
-
wo ist die php.ini
-
ähh... wie geht das ?
-
Ich habe das problem das ich die Fehlermeldung bekomme: "Fatal error: Class 'COM' not found in C:\xampp\htdocs\ranksystem_1.2.2\webinterface\bot.php on line 136"
Code
Alles anzeigen<?PHP session_start(); require_once('../other/config.php'); require_once('../other/phpcommand.php'); function getclientip() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) return $_SERVER['HTTP_CLIENT_IP']; elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) return $_SERVER['HTTP_X_FORWARDED_FOR']; elseif(!empty($_SERVER['HTTP_X_FORWARDED'])) return $_SERVER['HTTP_X_FORWARDED']; elseif(!empty($_SERVER['HTTP_FORWARDED_FOR'])) return $_SERVER['HTTP_FORWARDED_FOR']; elseif(!empty($_SERVER['HTTP_FORWARDED'])) return $_SERVER['HTTP_FORWARDED']; elseif(!empty($_SERVER['REMOTE_ADDR'])) return $_SERVER['REMOTE_ADDR']; else return false; } function getlog($logpath,$number_lines,$filters,$filter2) { $lines=array(); if(file_exists($logpath."ranksystem.log")) { $fp = fopen($logpath."ranksystem.log", "r"); while(!feof($fp)) { $line = fgets($fp, 4096); foreach($filters as $filter) { if(($filter != NULL && strstr($line, $filter) && $filter2 == NULL) || ($filter2 != NULL && strstr($line, $filter2) && $filter != NULL && strstr($line, $filter))) { array_push($lines, $line); if (count($lines)>$number_lines) array_shift($lines); continue; } } } fclose($fp); } else { $lines[] = "No log entry found...\n"; $lines[] = "The logfile will be created with next startup.\n"; } return $lines; } $number_lines = 20; if (isset($_POST['number'])) { if($_POST['number'] == 20) { $number_lines = 20; } elseif($_POST['number'] == 50) { $number_lines = 50; } elseif($_POST['number'] == 100) { $number_lines = 100; } elseif($_POST['number'] == 200) { $number_lines = 200; } elseif($_POST['number'] == 500) { $number_lines = 500; } elseif($_POST['number'] == 9999) { $number_lines = 9999; } else { $number_lines = 20; } $_SESSION['number_lines'] = $number_lines; } elseif (isset($_SESSION['number_lines'])) { $number_lines = $_SESSION['number_lines']; } if(isset($_SESSION['logfilter2'])) { $filter2 = $_SESSION['logfilter2']; } else { $filter2 = ''; } $filters = ''; if(isset($_POST['logfilter']) && in_array('critical', $_POST['logfilter'])) { $filters .= "CRITICAL,"; } if(isset($_POST['logfilter']) && in_array('error', $_POST['logfilter'])) { $filters .= "ERROR,"; } if(isset($_POST['logfilter']) && in_array('warning', $_POST['logfilter'])) { $filters .= "WARNING,"; } if(isset($_POST['logfilter']) && in_array('notice', $_POST['logfilter'])) { $filters .= "NOTICE,"; } if(isset($_POST['logfilter']) && in_array('info', $_POST['logfilter'])) { $filters .= "INFO,"; } if(isset($_POST['logfilter']) && in_array('debug', $_POST['logfilter'])) { $filters .= "DEBUG,"; } if(isset($_POST['logfilter'][0])) { $filter2 = $_POST['logfilter'][0]; $_SESSION['logfilter2'] = $filter2; } if($filters != '') { $_SESSION['logfilter'] = $filters; } if (!isset($_SESSION['logfilter'])) { $_SESSION['logfilter'] = "CRITICAL,ERROR,WARNING,NOTICE,INFO,DEBUG"; } $filters = explode(',', $_SESSION['logfilter']); if (isset($_POST['logout'])) { echo "logout"; $_SESSION = array(); session_destroy(); if($_SERVER['HTTPS'] == "on") { header("Location: https://".$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\')); } else { header("Location: http://".$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\')); } exit; } if (!isset($_SESSION['username']) || $_SESSION['username'] != $webuser || $_SESSION['password'] != $webpass || $_SESSION['clientip'] != getclientip()) { if($_SERVER['HTTPS'] == "on") { header("Location: https://".$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\')); } else { header("Location: http://".$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\')); } exit; } require_once('nav.php'); $logoutput = getlog($logpath,$number_lines,$filters,$filter2); if (isset($_POST['start']) && $_SESSION['username'] == $webuser && $_SESSION['password'] == $webpass && $_SESSION['clientip'] == getclientip()) { if(substr(sprintf('%o', fileperms($logpath)), -3, 1)!='7') { $err_msg = "!!!! Logs folder is not writable !!!!<br>Cancel start request!"; $err_lvl = 3; } else { if (substr(php_uname(), 0, 7) == "Windows") { $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("cmd /C ".$phpcommand." ".substr(__DIR__,0,-12)."\worker.php start", 0, false); } else { exec($phpcommand." ".substr(__DIR__,0,-12)."worker.php start"); } $err_msg = $lang['wibot2']; $err_lvl = 1; usleep(80000); $logoutput = getlog($logpath,$number_lines,$filters,$filter2); } } if (isset($_POST['stop']) && $_SESSION['username'] == $webuser && $_SESSION['password'] == $webpass && $_SESSION['clientip'] == getclientip()) { if (substr(php_uname(), 0, 7) == "Windows") { $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("cmd /C ".$phpcommand." ".substr(__DIR__,0,-12)."\worker.php stop", 0, false); } else { exec($phpcommand." ".substr(__DIR__,0,-12)."worker.php stop"); } $err_msg = $lang['wibot1']; $err_lvl = 1; usleep(80000); $logoutput = getlog($logpath,$number_lines,$filters,$filter2); } if (isset($_POST['restart']) && $_SESSION['username'] == $webuser && $_SESSION['password'] == $webpass && $_SESSION['clientip'] == getclientip()) { if(substr(sprintf('%o', fileperms($logpath)), -3, 1)!='7') { $err_msg = "!!!! Logs folder is not writable !!!!<br>Cancel restart request!"; $err_lvl = 3; } else { if (substr(php_uname(), 0, 7) == "Windows") { $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("cmd /C ".$phpcommand." ".substr(__DIR__,0,-12)."\worker.php restart", 0, false); } else { exec($phpcommand." ".substr(__DIR__,0,-12)."worker.php restart"); } $err_msg = $lang['wibot3']; $err_lvl = 1; usleep(80000); $logoutput = getlog($logpath,$number_lines,$filters,$filter2); } } $disabled = ''; if($ts['host'] == NULL || $ts['query'] == NULL || $ts['voice'] == NULL || $ts['user'] == NULL || $ts['pass'] == NULL || $queryname == NULL || $queryname2 == NULL || $grouptime == NULL || $logpath == NULL) { $disabled = 1; $err_msg = $lang['wibot9']; $err_lvl = 2; } ?> <div id="page-wrapper"> <?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> <?PHP echo $lang['wibot4']; ?> </h1> </div> </div> <form class="form-horizontal" name="start" method="POST"> <div class="row"> </div> <div class="row"> <div class="text-center"> <button type="submit" class="btn btn-primary" name="start"<?PHP if($disabled == 1) echo " disabled"; ?>> <i class="fa fa-fw fa-power-off"></i> <?PHP echo $lang['wibot5']; ?> </button> </div> </div> <div class="row"> </div> </form> <form class="form-horizontal" name="stop" method="POST"> <div class="row"> </div> <div class="row"> <div class="text-center"> <button type="submit" class="btn btn-primary" name="stop"> <i class="fa fa-fw fa-close"></i> <?PHP echo $lang['wibot6']; ?> </button> </div> </div> <div class="row"> </div> </form> <form class="form-horizontal" name="restart" method="POST"> <div class="row"> </div> <div class="row"> <div class="text-center"> <button type="submit" class="btn btn-primary" name="restart"<?PHP if($disabled == 1) echo " disabled"; ?>> <i class="fa fa-fw fa-refresh"></i> <?PHP echo $lang['wibot7']; ?> </button> </div> </div> <div class="row"> </div> </form> <div class="row"> </div> <div class="row"> <div class="col-lg-2"> <h4> <?PHP echo $lang['wibot8']; ?> </h4> </div> <form class="form-horizontal" name="logfilter" method="POST"> <div class="col-lg-2"> <div class="col-sm-12"> <?PHP if($filter2!=NULL) { ?> <input type="text" class="form-control" name="logfilter[]" value="<?PHP echo $filter2; ?>" data-switch-no-init onchange="this.form.submit();"> <?PHP } else { ?> <input type="text" class="form-control" name="logfilter[]" placeholder="filter the log entries..." data-switch-no-init onchange="this.form.submit();"> <?PHP } ?> </div> </div> <div class="col-lg-1"> <div class="checkbox"> <label><input id="switch-create-destroy" type="checkbox" name="logfilter[]" value="critical" data-switch-no-init onchange="this.form.submit();" <?PHP if(in_array('CRITICAL', $filters)) { echo "checked"; } ?> >Critical</label> </div> </div> <div class="col-lg-1"> <div class="checkbox"> <label><input id="switch-create-destroy" type="checkbox" name="logfilter[]" value="error" data-switch-no-init onchange="this.form.submit();" <?PHP if(in_array('ERROR', $filters)) { echo "checked"; } ?> >Error</label> </div> </div> <div class="col-lg-1"> <div class="checkbox"> <label><input id="switch-create-destroy" type="checkbox" name="logfilter[]" value="warning" data-switch-no-init onchange="this.form.submit();" <?PHP if(in_array('WARNING', $filters)) { echo "checked"; } ?> >Warning</label> </div> </div> <div class="col-lg-1"> <div class="checkbox"> <label><input id="switch-create-destroy" type="checkbox" name="logfilter[]" value="notice" data-switch-no-init onchange="this.form.submit();" <?PHP if(in_array('NOTICE', $filters)) { echo "checked"; } ?> >Notice</label> </div> </div> <div class="col-lg-1"> <div class="checkbox"> <label><input id="switch-create-destroy" type="checkbox" name="logfilter[]" value="info" data-switch-no-init onchange="this.form.submit();" <?PHP if(in_array('INFO', $filters)) { echo "checked"; } ?> >Info</label> </div> </div> <div class="col-lg-1"> <div class="checkbox"> <label><input id="switch-create-destroy" type="checkbox" name="logfilter[]" value="debug" data-switch-no-init onchange="this.form.submit();" <?PHP if(in_array('DEBUG', $filters)) { echo "checked"; } ?> >Debug</label> </div> </div> <div class="col-lg-2"> <div class="col-sm-8 pull-left"> <select class="selectpicker show-tick form-control" id="number" name="number" onchange="this.form.submit();"> <?PHP echo '<option value="20"'; if($number_lines=="20") echo " selected=selected"; echo '>20</option>'; echo '<option value="50"'; if($number_lines=="50") echo " selected=selected"; echo '>50</option>'; echo '<option value="100"'; if($number_lines=="100") echo " selected=selected"; echo '>100</option>'; echo '<option value="200"'; if($number_lines=="200") echo " selected=selected"; echo '>200</option>'; echo '<option value="500"'; if($number_lines=="500") echo " selected=selected"; echo '>500</option>'; echo '<option value="9999"'; if($number_lines=="9999") echo " selected=selected"; echo '>9999</option>'; ?> </select> </div> </div> </form> </div> <div class="row"> <div class="col-lg-12"> <pre><?PHP krsort($logoutput); foreach ($logoutput as $line) { echo $line; } ?></pre> </div> </div> </div> </div> </div> </body> </html>
-
doch in der extDB2 muss die rein und die is bei mir ned da ...
-
Weiß jemand wo ich die altis-life-rpg-4.ini für die 4.4 bekomme ?
-
Gibt es jemanden der sich damit auskennt ?
-
Danke an alle!
ich habe jetzt das vom lieben powerafro2 getestet und es aht Funktioniert!
-
Könnte mir einer helfen und mir sagen wie ich skins für die kleidung U_Rangemaster als mod einfügen kann ?
-
Hallo,
Aktuell habe ich das problem das jeder als Cop joinen kann. Ich habe erst daran rumgespilet aber leider kann man immer noch ohne Gewhitelistet zu sein Joinen.
Weiß Jemand woran das Liegt ?
Die fn_initCop
Code
Alles anzeigen#include "..\script_macros.hpp" /* File: fn_initCop.sqf Author: Bryan "Tonic" Boardwine Description: Cop Initialization file. */ private "_end"; player addRating 9999999; waitUntil {!(isNull (findDisplay 46))}; _end = false; if (life_blacklisted) exitWith { ["Blacklisted",false,true] call BIS_fnc_endMission; sleep 30; }; if (!(str(player) in ["cop_1","cop_2","cop_3","cop_4","cop_5","cop_6","cop_7","cop_8","cop_9","cop_10","cop_11","cop_12","cop_13","cop_14","cop_15","cop_16","cop_17","cop_18","cop_19"])) then { if ((FETCH_CONST(life_coplevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then { ["NotWhitelisted",false,true] call BIS_fnc_endMission; sleep 35; }; }; [] call life_fnc_spawnMenu; [] spawn life_fnc_placeablesInit; waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done. [player, uniform player] call life_fnc_equipGear;
-
@br1zey
Funktioniert das ganze auch mit Kleidungen ?Wenn ja kannst du mir da auch ne vorgabe geben?
-
Ich hab so gut wie keine ahnung
-
Code
Alles anzeigen/* File: fn_copMarkers.sqf Author: Bryan "Tonic" Boardwine Description: Marks cops on the map for other cops. Only initializes when the actual map is open. */ private["_markers","_cops"]; _markers = []; _cops = []; sleep 0.5; if (visibleMap) then { {if (side _x isEqualTo west) then {_cops pushBack _x;}} forEach playableUnits; //Fetch list of cops / blufor //Create markers { if (_x != player) then { _marker = createMarkerLocal [format["%1_marker",_x],visiblePosition _x]; _marker setMarkerColorLocal "ColorBLUFOR"; _marker setMarkerTypeLocal "Mil_dot"; _marker setMarkerTextLocal format["%1", _x getVariable["realname",name _x]]; _markers pushBack [_marker,_x]; }; } forEach _cops; while {visibleMap} do { { private["_unit"]; _unit = _x select 1; if (!isNil "_unit" && !isNull _unit) then { (_x select 0) setMarkerPosLocal (visiblePosition _unit); }; } forEach _markers; if (!visibleMap) exitWith {}; sleep 0.02; }; {deleteMarkerLocal (_x select 0);} forEach _markers; _markers = []; _cops = []; };
So sieht die aus wie müsste das dann überarbeitet sein ?
-
das hat vermutlich was mit der fn_copmarker zu tun
-
Wie kann ich es anstellen das nur ein Copslot (Leitstelle) die anderen Cops auf der map sieht unter der bedingung das die Polizisten ein GPS dabei haben?
-
Wenn ich jemanden Taser passiert nichts den schaden habe ich ausgetragen. wenn ich die Taserinit setze kommt diese Fehlermeldung in den RPT Logs:
Ok ich habe jetzt die Init rein jetzt ist es aber so dass ich das hier in die RPT logs bekomme:
Code
Alles anzeigen15:53:59 Error in expression <"LOGIC", [0, 0, 0] , [], 0, ""]; _logic setVehicleInit "DDOPP_taser_globalChat => 15:53:59 Error position: <setVehicleInit "DDOPP_taser_globalChat => 15:53:59 Error Missing ; 15:53:59 Error in expression <"LOGIC", [0, 0, 0] , [], 0, ""]; _logic setVehicleInit "DDOPP_taser_globalChat => 15:53:59 Error position: <setVehicleInit "DDOPP_taser_globalChat => 15:53:59 Error Missing ; 15:53:59 Error in expression <]; }; }; } forEach AllUnits; [] spawn DDOPP_taser_babel; };> 15:53:59 Error position: <DDOPP_taser_babel; };> 15:53:59 Error Undefined variable in expression: ddopp_taser_babel 15:53:59 File DDOPP_taserPack\scripts\init_taser.sqf, line 70
Jetzt ist die Frage was ich machen soll das er funktioniert