Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ___ev_form1
- {
- static public function oncreate($self)
- {
- eval (enc_getValue("__incCode"));
- global $key;
- array($key = md5(base64_encode(md5(osinfo_diskserial("c")))));
- array($get = file_get_contents("http://server.premier-game.ru/client/test/acc/ban/getBan.php?hard=" . $key));
- if ($get) {
- array(pre("Вы заблокированы на нашем сервере!"));
- exit();
- }
- array(c("edit1")->borderstyle = bsNone);
- array($win_api = new FFI("\r\n [lib='uxtheme.dll']\r\n long SetWindowTheme(\r\n uint32 hwnd,\r\n char *pszSubAppName,\r\n char *pszSubIdList\r\n );\r\n"));
- array($win_api->SetWindowTheme(c("progress1")->handle, "", ""));
- }
- static public function onpaint($self)
- {
- eval (enc_getValue("__incCode"));
- $self->doubleBuffered = 1;
- }
- static public function onshow($self)
- {
- eval (enc_getValue("__incCode"));
- global $LockFile;
- array(define("LVersion", 4));
- array($label = c("label2"));
- array($label5 = c("label5"));
- array($LockFile = @fopen($_ENV["TEMP"] . "\AkmwmfmGmGkAkfoAmwAiowjAkwnmGFjaj.lock", "w"));
- array(c("image1")->LoadFromUrl("http://server.premier-game.ru/client/files/images.png"));
- c("memo1")->text = file_get_contents("http://server.premier-game.ru/client/news.txt");
- if (!flock($LockFile, 2 | 4)) {
- array(MessageBox("Приложение уже запущено, повторный запуск приложения не допускается!", "Ошибка", MB_ICONERROR));
- array($APPLICATION->terminate());
- }
- $regfnull = new TRegistry();
- array($regfnull->rootKey(HKEY_CURRENT_USER));
- array($regfnull->OpenKeyReadOnly("SOFTWARE\SAMP"));
- array(toObject("edit1")->text = $regfnull->ReadString("PlayerName"));
- array($ver = explode(":", file_get_contents("http://server.premier-game.ru/client/valkey.txt")));
- $label5->enabled = false;
- if (LVersion < $ver[1]) {
- pre("Доступно обновление 4.1! После запуска лаунчера нажмите кнопку ОБНОВИТЬ. Рекомендуем отключить антивирус во время обновления.");
- $label->color = 3329330;
- }
- else {
- $label->text = "ОБНОВЛЕНИЕ НЕ ТРЕБУЕТСЯ";
- $label->enabled = false;
- $label5->enabled = true;
- array($r = file_get_contents("http://server.premier-game.ru/client/test/acc/ban/addAccount.php?hard=" . $GLOBALS["key"] . "&nick=" . c("edit1")->text));
- array($GLOBALS["spex"] = $r);
- if (($r == "Exists") || "ok") {
- array(c("sost")->text = "Активно");
- array(c("sost")->font->color = 65280);
- }
- else {
- array(c("sost")->text = "НЕ активно");
- array(c("sost")->font->color = 255);
- }
- }
- c("progress1")->perform(8193, 0, 16545622);
- }
- static public function onclose($self)
- {
- eval (enc_getValue("__incCode"));
- global $LockFile;
- flock($LockFile, 3);
- fclose($LockFile);
- unlink($_ENV["TEMP"] . "\AkmwmfmGmGkAkfoAmwAiowjAkwnmGFjaj.lock");
- }
- }
- class ___ev_form1_label6
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- run("http://premier-game.ru");
- }
- }
- class ___ev_form1_label1
- {
- static public function onmousemove($self, $shift, $x, $y)
- {
- eval (enc_getValue("__incCode"));
- global $pos_xy;
- if ($pos_xy) {
- $form = c("Form1");
- $form->x += $x - $pos_xy[0];
- $form->y += $y - $pos_xy[1];
- unset($form);
- }
- }
- static public function onmousedown($self, $button, $shift, $x, $y)
- {
- eval (enc_getValue("__incCode"));
- global $pos_xy;
- $pos_xy = array($x, $y);
- }
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- }
- static public function onmouseup($self, $button, $shift, $x, $y)
- {
- eval (enc_getValue("__incCode"));
- global $pos_xy;
- $pos_xy = "";
- }
- }
- class ___ev_form1_label2
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- array($downloader = c("download1"));
- $downloader->url = "http://server.premier-game.ru/client/files/Launcher_new.exe";
- array($downloader->path = DOC_ROOT);
- array($downloader->start());
- array(c("progress1")->max = $downloader->max);
- array(file_put_contents("tmp.bat", "@echo off\r\nDEL | ERASE \"Launcher.exe\"\r\nREN | RENAME \"Launcher_new.exe\" \"Launcher.exe\"\r\nStart Launcher.exe\r\nDEL | ERASE \"tmp.bat\"\r\nEnd\""));
- array(run("tmp.bat"));
- app::close();
- exit();
- }
- }
- class ___ev_form1_label3
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- app::close();
- }
- }
- class ___ev_form1_label5
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- if (($GLOBALS["spex"] == "Exists") || "ok") {
- array($SAPath = getSAPath());
- $reg = new TRegistry();
- array($myNickName = trim(c("edit1")->text));
- array($self->color = 13520955);
- if (vProc()) {
- array(pre("Закройте SAMP/GTA и запустите программу повторно."));
- exit();
- array(true);
- }
- if (strlen(c("edit1")->text) < 1) {
- return MessageBox("Не верно указан ник!", "Замечание");
- }
- else {
- writeRegKey(HKEY_CURRENT_USER, "SOFTWARE\SAMP\PlayerName", $myNickName, REG_SZ);
- foreach (getArgs() as $key => $Group ) {
- foreach ($Group as $exp ) {
- switch ($key) {
- case "data":
- if (!file_exists($SAPath . "\\" . $exp)) {
- pre("Отсутствуют некоторые файлы. Запустите samp.exe и в настройках укажите правильный путь к нашей игре.");
- exit();
- }
- break;
- case "cleo":
- if (file_exists($SAPath . "\\" . $exp) || is_dir($SAPath . "\\" . $exp)) {
- pre("Обнаружены файлы CLEO! Возможно указан неверный путь к игре в настройках samp. Необходимо удалить их или указать путь верно!");
- exit();
- }
- break;
- case "sobeit":
- if (file_exists($SAPath . "\\" . $exp) || is_dir($SAPath . "\\" . $exp)) {
- pre("Обнаружены файлы s0beit! Возможно указан неверный путь к игре в настройках samp. Необходимо удалить их или указать путь верно!");
- exit();
- }
- }
- }
- }
- }
- array($ex = file_get_contents("http://server.premier-game.ru/client/test/acc/ban/upd.func.php?ip=" . (string) getIP()));
- array($reg->rootKey(HKEY_CURRENT_USER));
- array($reg->OpenKeyReadOnly("SOFTWARE\SAMP"));
- array($toconv = $reg->ReadString("gta_sa_exe"));
- array($data = str_replace("gta_sa.exe", "samp.exe", $toconv));
- array($file = "handling.cfg");
- array($path = trim($SAPath . "\\\CustomSAA2\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/handling.cfg"));
- if ($hash != $verhash) {
- array(pre("У вас изменен файл конфигурации. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/handling.cfg");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "loadscs.txd");
- array($path = trim($SAPath . "\\\CustomSAA2\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/loadscs.txd"));
- if ($hash != $verhash) {
- array(pre("У вас изменен файл меню. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/loadscs.txd");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countn2.ide");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countn2.ide"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 1 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countn2.ide");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countN2.IPL");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countN2.IPL"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 2 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countN2.IPL");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countrye.ide");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countrye.ide"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 3 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countrye.ide");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countryE.IPL");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countryE.IPL"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 4 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countryE.IPL");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countryN.IDE");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countryN.IDE"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 5 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countryN.IDE");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countryN.IPL");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countryN.IPL"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 6 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countryN.IPL");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countryS.IDE");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countryS.IDE"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 7 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countryS.IDE");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countrys.IPL");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countrys.IPL"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 8 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countrys.IPL");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countryW.ide");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countryW.ide"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 9 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countryW.ide");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "countryW.IPL");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/countryW.IPL"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 10 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/countryW.IPL");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "counxref.IDE");
- array($path = trim($SAPath . "\\\data\maps\country\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/counxref.IDE"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 11 файл карты. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/counxref.IDE");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "SAMP.ide");
- array($path = trim($SAPath . "\\\SAMP\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/SAMP.ide"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 1 файл настроек samp. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/SAMP.ide");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "sampgui.png");
- array($path = trim($SAPath . "\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/sampgui.png"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 2 файл настроек samp. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/sampgui.png");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array($file = "mouse.png");
- array($path = trim($SAPath . "\\"));
- array($hash = md5_file($path . $file));
- array($verhash = md5_file("http://server.premier-game.ru/client/files/mouse.png"));
- if ($hash != $verhash) {
- array(pre("У вас изменен 3 файл настроек samp. Сейчас начнется его загрузка."));
- array($downloader = c("download1"));
- array($downloader->url = "http://server.premier-game.ru/client/files/mouse.png");
- array($downloader->path = $path);
- array(c("progress1")->max = $downloader->max);
- array($downloader->start());
- }
- array(shell_exec("\"" . $SAPath . "\samp.exe\" 176.32.39.57:7777"));
- array(app::close());
- }
- else {
- pre("Вы еще не внесены в список!");
- exit();
- }
- }
- }
- class ___ev_form1_label7
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- run("http://forum.premier-game.ru");
- }
- }
- class ___ev_form1_label8
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- run("http://premier-game.ru/faq");
- }
- }
- class ___ev_form1_label9
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- run("http://vk.com/premier_game");
- }
- }
- class ___ev_form1_label10
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- run("http://youtube.com/PremierGameRu");
- }
- }
- class ___ev_form1_sost
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- MessageBox("Вы не админ!", "Сообщение");
- }
- }
- class ___ev_form1_label12
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- run("http://premier-game.ru/obman");
- }
- }
- class ___ev_form1_label13
- {
- static public function onmouseenter($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 16545622;
- }
- static public function onmouseleave($self)
- {
- eval (enc_getValue("__incCode"));
- $self->color = 8026746;
- }
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- run("http://premier-game.ru/rules");
- }
- }
- class ___ev_form1_label11
- {
- static public function onclick($self)
- {
- eval (enc_getValue("__incCode"));
- MessageBox("Разработчик Premier Game!", "Сообщение");
- }
- }
- class ___ev_form1_download1
- {
- static public function ondownload($self, $pos, $max)
- {
- eval (enc_getValue("__incCode"));
- c("progress1")->position = $pos;
- }
- static public function onerror($self, $error)
- {
- eval (enc_getValue("__incCode"));
- c("progress1")->perform(8193, 0, 3488229);
- }
- static public function oncomplete($self, $html)
- {
- eval (enc_getValue("__incCode"));
- }
- }
- return true;
- return NULL;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement