Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ___ev_form1
- {
- static public function onshow($self)
- {
- eval (enc_getValue("__incCode"));
- global $LockFile;
- $LockFile = @fopen($_ENV["TEMP"] . "\AkmwmfmGmGkAkfoAmwAiowjAkwnmGFjaj.lock", "w");
- if (!flock($LockFile, 2 | 4)) {
- MessageBox("Приложение уже запущено, повторный запуск приложения не допускается!", "Ошибка", MB_ICONERROR);
- $APPLICATION->terminate();
- }
- c("progress1")->hide();
- $regfnull = new TRegistry();
- $regfnull->rootKey(HKEY_CURRENT_USER);
- $regfnull->OpenKeyReadOnly("SOFTWARE\SAMP");
- $plnameinput = $regfnull->ReadString("PlayerName");
- setText(c("edit1"), $plnameinput);
- }
- static public function onclose($self)
- {
- eval (enc_getValue("__incCode"));
- global $LockFile;
- flock($LockFile, 3);
- fclose($LockFile);
- unlink($_ENV["TEMP"] . "\AkmwmfmGmGkAkfoAmwAiowjAkwnmGFjaj.lock");
- }
- }
- class ___ev_form1_specialexit
- {
- static public function onexecute($self)
- {
- eval (enc_getValue("__incCode"));
- MessageBox($data, "Ошибка");
- app::close();
- }
- }
- class ___ev_form1_spbutton1
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- Run("http://premier-game.ru/ban");
- }
- }
- class ___ev_form1_spbutton2
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- Run("http://premier-game.ru");
- }
- }
- class ___ev_form1_spbutton3
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- Run("https://vk.com/premier_game");
- }
- }
- class ___ev_form1_spbutton4
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- Run("http://premier-game.ru/admins");
- }
- }
- class ___ev_form1_spbutton5
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- Run("http://premier-game.ru/bonus");
- }
- }
- class ___ev_form1_spbutton6
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- if (strlen(c("edit1")->text) < 1) {
- return MessageBox("Не указан ник!", "Замечание");
- }
- c("edit1")->readOnly = true;
- c("label1")->caption = "Загрузка...";
- $playernick = c("edit1")->text;
- writeRegKey(HKEY_CURRENT_USER, "SOFTWARE\SAMP\PlayerName", "$playernick", REG_SZ);
- $list1s = shell_exec("tasklist");
- $result1s = iconv("CP866", "CP1251", $list1s);
- if (substr_count($result1s, "samp.exe") == true) {
- MessageBox("Закройте SAMP, после чего включите лаунчер!", "Ошибка");
- app::close();
- exit();
- }
- $list2s = shell_exec("tasklist");
- $result2s = iconv("CP866", "CP1251", $list2s);
- if (substr_count($result2s, "gta_sa.exe") == true) {
- MessageBox("Не удалось запустить игру, у вас уже запущена GTA San Andreas!", "Ошибка");
- app::close();
- exit();
- }
- $reg = new TRegistry();
- $reg->rootKey(HKEY_CURRENT_USER);
- $reg->OpenKeyReadOnly("SOFTWARE\SAMP");
- $toconv = $reg->ReadString("gta_sa_exe");
- $data = str_replace("gta_sa.exe", "samp.exe", $toconv);
- $datadll = str_replace("gta_sa.exe", "samp.dll", $toconv);
- $datasaa = str_replace("gta_sa.exe", "samp.saa", $toconv);
- $datacleoasi = str_replace("gta_sa.exe", "cleo.asi", $toconv);
- $datacleodir = str_replace("gta_sa.exe", "cleo", $toconv);
- $datacleodir2 = str_replace("gta_sa.exe", "CLEO", $toconv);
- $datasobeit1 = str_replace("gta_sa.exe", "mod_sa.ini", $toconv);
- $datasobeit2 = str_replace("gta_sa.exe", "mod_sa.raw", $toconv);
- $datasobeit3 = str_replace("gta_sa.exe", "mod_sa_ChangeLog.txt", $toconv);
- $datasobeit4 = str_replace("gta_sa.exe", "mod_sa", $toconv);
- $datad3d9 = str_replace("gta_sa.exe", "d3d9.dll", $toconv);
- if (!file_exists("$data")) {
- MessageBox("Не удалось обнаружить клиент SA-MP, попробуйте установить/переустановить его!", "Ошибка");
- app::close();
- exit();
- }
- if (!file_exists("$datadll")) {
- MessageBox("Не удалось обнаружить SA-MP клиент!", "Ошибка");
- app::close();
- exit();
- }
- if (!file_exists("$datasaa")) {
- MessageBox("Не удалось обнаружить SA-MP клиент!", "Ошибка");
- app::close();
- exit();
- }
- if (file_exists("$datad3d9")) {
- MessageBox("Удалите s0beit для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- if (file_exists("$datacleoasi")) {
- MessageBox("Удалите CLEO для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- if (is_dir("$datacleodir")) {
- MessageBox("Удалите CLEO для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- if (is_dir("$datacleodir2")) {
- MessageBox("Удалите CLEO для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- if (file_exists("$datasobeit1")) {
- MessageBox("Удалите s0beit для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- if (file_exists("$datasobeit2")) {
- MessageBox("Удалите s0beit для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- if (file_exists("$datasobeit3")) {
- MessageBox("Удалите s0beit для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- if (is_dir("$datasobeit4")) {
- MessageBox("Удалите s0beit для игры на сервере!", "Ошибка");
- app::close();
- exit();
- }
- $aeft = base64_decode("c3U3RHo3cUNtZzE=");
- mysql_connect("triniti.ru-hoster.com", "premiZA3", "$aeft") || specialexit("Ошибка инициализации: код #2");
- mysql_select_db("premiZA3") || specialexit("Ошибка инициализации: код #3");
- ($ip = explode("<big id=\"d_clip_button\">", file_get_contents("http://2ip.ru"))) || specialexit("Ошибка инициализации: код #3-1");
- $ip = explode("</big>", $ip[1]);
- $ip = $ip[0];
- $ipissuecheck = mysql_query("SELECT COUNT(id) FROM `launcher` WHERE `ip`='$ip'");
- $ipissue = mysql_fetch_array($ipissuecheck);
- if (0 < $ipissue[0]) {
- mysql_query("UPDATE `launcher` SET `ok`='1' WHERE `ip`='$ip'") || specialexit("Ошибка инициализации: код #4");
- }
- $reg = new TRegistry();
- $reg->rootKey(HKEY_CURRENT_USER);
- $reg->OpenKeyReadOnly("SOFTWARE\SAMP");
- $toconv = $reg->ReadString("gta_sa_exe");
- $data = str_replace("gta_sa.exe", "samp.exe", $toconv);
- shell_exec("\"" . $data . "\" 176.32.39.57:7777");
- app::close();
- }
- }
- class ___ev_form1_spbutton7
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- Run("http://premier-game.ru/faq");
- }
- }
- return true;
- return NULL;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement