-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgsl.events
487 lines (418 loc) · 21.3 KB
/
gsl.events
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
a:5:{s:6:"fmmain";a:43:{s:8:"--fmedit";a:1:{s:8:"oncreate";s:5763:"define(VER, "2.0");
define(BUILD, "07.2020");
define(LINK, "http://www.vk.com/emildalalyan");
global $find, $lang_1, $message, $ex, $ex1, $writeOnRegister, $sc, $ex2, $na, $na1, $na2, $progDir, $APPLICATION;
app::title( "GTA SA: Launcher");
c("gameP")->toFront();
c("fmMain->version_label")->caption = "GTA SA: Launcher v" . VER;
if( !is_writable($progDir)) $nw = true;
else {
$nw = false;
if( file_exists("programs/php/include")){
$fi = findFiles("programs/php/include", "php", false, true);
foreach( $fi as $as ){
include( $as );
}
}
if(file_exists("scripts/global.ini")) ini::open("scripts/global.ini");
else ini::open("global.ini");
ini::read("GlobalSets", "LoadPlugins", $var);
c("fmMain->checkbox1")->checked = intval($var);
c("fmMain->label2")->caption = LINK;
c("fmMain->label2")->link = LINK;
ini::open("programs/launcher.ini");
ini::read( "MAIN", "lang", $lang);
ini::write("MAIN", "lang", intval($lang));
ini::read("MAIN", "do_not_use_double_buffer", $var);
$self->doubleBuffered = ! intval($var);
c("fmMain->checkbox4")->checked = intval($var);
ini::read("MAIN", "do_not_load_php", $var);
if( !intval($var)){
if( file_exists("programs/php/") ){
$sc = 0;
foreach( findFiles("programs/php/", "php", false, true) as $file ){
eval( str_ireplace( "<?", "", str_ireplace("?>", "", str_ireplace("<?php", "", file_get_contents($file)))) );
$sc++;
if( err_msg() ){
messageBox( err_msg() . " in file: " . $progDir . $file, "-", MB_OK | MB_ICONERROR );
exit();
}
}
}
}
c("fmMain->checkbox3")->checked = intval($var);
ini::read("MAIN", "do_not_write_gta_exe_on_register", $var);
$writeOnRegister = ! intval($var);
c("fmMain->checkbox5")->checked = intval($var);
ini::read("MAIN", "gta_sa_insteadof_w10", $iw10);
c("fmMain->checkbox6")->checked = intval($iw10);
ini::read("MAIN", "hide_status_bar", $var );
c("fmMain->checkbox2")->checked = boolval($var);
//CLEO
if( !file_exists("CLEO.asi") ){
c("checkbox1")->enabled = false;
c("checkbox1")->checked = false;
c("applyB")->hide();
c("close")->x = c("applyB")->x;
c("samp")->w += c("applyB")->w;
}
$self->setFocus();
if( file_exists("img.png")){
c("img")->loadFromFile( "img.png" );
}
if( !file_exists("gta_sa.exe") && !file_exists("gta_sa_w10.exe") ) c("gta_sa")->enabled = false;
foreach( findFiles( $progDir, "ini", false, false) as $f) if( $f != "global.ini" && $f != "desktop.ini") c("listBox1")->text .= $f;
foreach( findFiles( "$progDir/scripts", "ini", false, false) as $f) if( $f != "global.ini" && $f != "desktop.ini") c("listBox1")->text .= "scripts/" . $f;
foreach( findFiles( "$progDir/cleo", "ini", false, false) as $f) if( $f != "desktop.ini") c("listBox1")->text .= "cleo/" . $f;
if( (file_exists("programs/loadsc/LOADSC43HD.txd") && file_exists("programs/loadsc/LOADSC169HD.txd")) || (file_exists("programs/loadsc/LOADSC43HD_MS.txd") && file_exists("programs/loadsc/LOADSC169HD_MS.txd")) ){
c("applyB4")->show();
c("lscr")->show();
c("button2")->show();
}
else {
c("fmMain->groupBox1")->h = 128;
}
foreach( findFiles( "$progDir/scripts", "asi", false, false) as $as ){
if( $as != "CLEO.asi"){
c("listBox2")->text .= "scripts/$as";
}
}
foreach( findFiles( "$progDir/cleo", "cs", false, false) as $as ){
c("listBox2")->text .= "cleo/$as";
}
foreach( findFiles( "$progDir", "asi", false, false) as $as ){
if( $as != "CLEO.asi"){
c("listBox2")->text .= $as;
}
}
if( file_exists("programs/buttons.ini")){
ini::open("programs/buttons.ini");
ini::read("button0","icon",$ic);
ini::read("button0","exec",$ex);
ini::read("button0","name",$na);
ini::read("button1","icon",$ic1);
ini::read("button1","exec",$ex1);
ini::read("button1","name",$na1);
ini::read("button2","icon",$ic2);
ini::read("button2","exec",$ex2);
ini::read("button2","name",$na2);
$ic = chrStringOrd($ic, "s");
$ex = chrStringOrd($ex, "s");
$na = chrStringOrd($na, "s");
$ic1 = chrStringOrd($ic1, "s");
$ex1 = chrStringOrd($ex1, "s");
$na1 = chrStringOrd($na1, "s");
$ic2 = chrStringOrd($ic2, "s");
$ex2 = chrStringOrd($ex2, "s");
$na2 = chrStringOrd($na2, "s");
if( !$ex ) c("satp")->enabled = file_exists("programs/satp/sat.exe");
else c("satp")->enabled = file_exists($ex);
if( !$ex1 ) c("txd")->enabled = file_exists("programs/txdw/txdw.exe");
else c("txd")->enabled = file_exists($ex1);
if( !$ex2 ) c("samp")->enabled = file_exists("samp.exe");
else c("samp")->enabled = file_exists($ex2);
if( file_exists( $ic2 )) c("samp")->loadPicture( $ic2 );
if( $na2 ) c("samp")->caption = $message[8] . " " . $na2;
if( file_exists( $ic )) c("satp")->loadPicture( $ic );
if( $na ) c("satp")->caption = $message[8] . " " . $na;
if( file_exists( $ic1 )) c("txd")->loadPicture( $ic1 );
if( $na1 ) c("txd")->caption = $message[8] . " " . $na1;
}
else {
c("satp")->enabled = file_exists("programs/satp/sat.exe");
c("txd")->enabled = file_exists("programs/txdw/txdw.exe");
c("samp")->enabled = file_exists("samp.exe");
}
$com = new COM("winmgmts://localhost/root/CIMV2");
foreach( $com->ExecQuery("SELECT FreeSpace FROM Win32_LogicalDisk WHERE Caption = " . '"' . substr( $progDir, 0, 2) . '"') as $as ){
$GLOBALS["lau_info"][0] = round($as->FreeSpace / 1024 / 1024 / 1024, 1);
break;
}
}
lau::setLang(intval($lang));
if($nw) error_message( $message[13] );
unset($lang, $nw);";}s:6:"otherp";N;s:5:"gamep";N;s:11:"tabcontrol1";a:1:{s:8:"onchange";s:225:"switch( $self->tabIndex ){
case 0: c("gameP")->toFront(); return true;
case 1: c("otherP")->toFront(); return true;
case 2: c("scP")->toFront(); return true;
case 3: c("aboutP")->toFront(); return true;
}";}s:6:"aboutp";N;s:9:"checkbox1";a:2:{s:11:"onmousedown";s:25:"c("applyB")->enabled = 1;";s:7:"onkeyup";s:25:"c("applyB")->enabled = 1;";}s:6:"applyb";a:1:{s:7:"onclick";s:221:"ini::open("global.ini");
ini::write( "GlobalSets", "LoadPlugins", c("checkbox1")->checked);
ini::open("scripts/global.ini");
ini::write( "GlobalSets", "LoadPlugins", c("checkbox1")->checked);
$self->enabled = false;";}s:6:"gta_sa";a:2:{s:7:"onclick";s:375:"global $message;
if( !file_exists("gta_sa_w10.exe")){
if( file_exists("gta_sa.exe")) run("gta_sa.exe");
elseif( !file_exists("gta_sa.exe") ) messageBox( $message[0], "GTA SA: Launcher", MB_OK | MB_ICONERROR );
}
else {
if(!c("fmMain->checkbox6")->checked or !file_exists("gta_sa.exe")) run("gta_sa_w10.exe");
else run("gta_sa.exe");
}
app::close();";s:11:"onmousedown";s:184:"if( $button == 1 ){
exec('taskkill -im "gta_sa_w10.exe"');
exec('taskkill -im "gta_sa.exe"');
messageBox("OK", "GTA SA: Launcher", MB_OK | MB_ICONINFORMATION );
}";}s:4:"samp";a:1:{s:7:"onclick";s:945:"global $message, $writeOnRegister, $ex2;
if( isset( $ex2 ) && file_exists( $ex2)){
run( $ex2 );
}
else {
if( file_exists("samp.exe")){
if( $writeOnRegister){
if( file_exists("gta_sa_w10.exe")){
if(!c("fmMain->checkbox6")->checked) writeRegKey( "HKEY_CURRENT_USER", "Software\SAMP\gta_sa_exe", $progDir . "gta_sa_w10.exe");
else {
if(file_exists("gta_sa.exe")) writeRegKey( "HKEY_CURRENT_USER", "Software\SAMP\gta_sa_exe", $progDir . "gta_sa.exe");
else writeRegKey( "HKEY_CURRENT_USER", "Software\SAMP\gta_sa_exe", $progDir . "gta_sa_w10.exe");
}
}
else if( file_exists("gta_sa.exe")){
writeRegKey( "HKEY_CURRENT_USER", "Software\SAMP\gta_sa_exe", $progDir . "gta_sa.exe");
}
}
run("samp.exe", false);
}
else messageBox( $message[0], "GTA SA: Launcher", MB_OK | MB_ICONERROR );
}
app::close();";}s:5:"close";a:1:{s:7:"onclick";s:7:"exit();";}s:4:"satp";a:1:{s:7:"onclick";s:93:"global $ex;
if( !$ex ){
run("/programs/satp/sat.exe", false);
}
else run($ex, false);";}s:3:"txd";a:1:{s:7:"onclick";s:97:"global $ex1;
if( !$ex1){
run("/programs/txdw/txdw.exe", false);
}
else run( $ex1, false);";}s:3:"scp";N;s:8:"unoftext";N;s:8:"verlabel";N;s:6:"label1";N;s:6:"image2";N;s:6:"buildd";N;s:3:"img";a:1:{s:11:"onmousedown";s:38:"if($button == 2) run($progDir, false);";}s:7:"applyb4";a:1:{s:7:"onclick";s:710:"
if( file_exists("cleo/FOV.ini")){
ini::open("cleo/FOV.ini");
ini::write("fov", "fov", 90);
}
if( file_exists("moddedsaa/") && file_exists("programs/loadsc/loadsc43hd_ms.txd")){
copy( "programs/loadsc/loadsc43hd_ms.txd", "moddedsaa/LOADSCS.txd");
}
if( file_exists("scripts/moddedsaa/") && file_exists("programs/loadsc/loadsc43hd_ms.txd")){
copy( "programs/loadsc/loadsc43hd_ms.txd", "scripts/moddedsaa/LOADSCS.txd");
}
if(file_exists("programs/loadsc/loadsc43hd.txd")) {
copy( "programs/loadsc/loadsc43hd.txd", "models/txd/LOADSCS.txd");
}
messageBox("OK", "GTA SA: Launcher", MB_OK | MB_ICONINFORMATION);";}s:4:"lscr";N;s:11:"tabcontrol2";a:1:{s:8:"onchange";s:182:"
/*elseif( $self->tabIndex == 2){
c("scP")->toFront();
}*/
switch( $self->tabIndex ){
case 0: c("panel1")->toFront(); break;
case 1: c("panel2")->toFront(); break;
}";}s:3:"edc";a:1:{s:7:"onclick";s:593:"global $message, $find;
if(!c("listBox1")->items->selected){
msg( $message[2] );
}
else {
if(file_exists(c("listBox1")->items->selected)) {
c("fmEditor->synEdit1")->LoadFromFile( c("listBox1")->items->selected);
c("fmEditor->data")->value = c("fmEditor->synEdit1")->text;
c("fmEditor")->caption = c("listBox1")->items->selected;
c("fmEditor")->x = ($SCREEN->width / 2) - (c("fmEditor")->w / 2);
c("fmEditor")->y = ($SCREEN->height / 2) - (c("fmEditor")->h / 2);
c("fmEditor")->showModal();
}
else message_beep(0);
}";}s:3:"rfs";a:1:{s:7:"onclick";s:535:"$lBs = c("listBox1")->items->selected;
c("listBox1")->text = "";
foreach( findFiles( $progDir, "ini", false, false) as $f) if( $f != "global.ini" && $f != "desktop.ini") c("listBox1")->text .= $f;
foreach( findFiles( "$progDir/scripts", "ini", false, false) as $f) if( $f != "global.ini" && $f != "desktop.ini") c("listBox1")->text .= "scripts/" . $f;
foreach( findFiles( "$progDir/cleo", "ini", false, false) as $f) c("listBox1")->text .= "cleo/" . $f;
c("listBox1")->items->selected = $lBs;
$lBs = null;
unset( $lBs );";}s:8:"listbox1";a:2:{s:10:"ondblclick";s:513:"if(c("listBox1")->items->selected && file_exists(c("listBox1")->items->selected)){
c("fmEditor->synEdit1")->LoadFromFile( c("listBox1")->items->selected);
c("fmEditor->data")->value = c("fmEditor->synEdit1")->text;
c("fmEditor")->caption = c("listBox1")->items->selected;
c("fmEditor")->x = ($SCREEN->width / 2) - (c("fmEditor")->w / 2);
c("fmEditor")->y = ($SCREEN->height / 2) - (c("fmEditor")->h / 2);
c("fmEditor")->showModal();
}";s:7:"onkeyup";s:710:"if( $key == 13){
global $message, $find;
if(!c("listBox1")->items->selected){
msg( $message[2] );
}
else {
if(file_exists(c("listBox1")->items->selected)) {
c("fmEditor->synEdit1")->LoadFromFile( c("listBox1")->items->selected);
c("fmEditor->data")->value = c("fmEditor->synEdit1")->text;
c("fmEditor")->caption = c("listBox1")->items->selected;
c("fmEditor")->x = ($SCREEN->width / 2) - (c("fmEditor")->w / 2);
c("fmEditor")->y = ($SCREEN->height / 2) - (c("fmEditor")->h / 2);
c("fmEditor")->showModal();
}
else message_beep(0);
}
}";}s:6:"panel2";N;s:8:"listbox2";a:0:{}s:3:"spb";a:1:{s:7:"onclick";s:849:"global $message;
if(c("listBox2")->items->selected){
if( messageBox($message[12], "GTA SA: Launcher", MB_YESNO | MB_ICONQUESTION ) == mrYes){
file_delete( c("listBox2")->items->selected );
c("listBox2")->text = "";
foreach( findFiles( "$progDir/scripts", "asi", false, false) as $as ){
if( $as != "CLEO.asi"){
c("listBox2")->text .= "scripts/$as";
}
}
foreach( findFiles( "$progDir/cleo", "cs", false, false) as $as ){
c("listBox2")->text .= "cleo/$as";
}
foreach( findFiles( $progDir, "asi", false, false) as $as ){
if( $as != "CLEO.asi"){
c("listBox2")->text .= "$as";
}
}
}
}
else messageBox( $message[4], "GTA SA: Launcher", MB_OK | MB_ICONWARNING);";}s:9:"spbutton1";a:1:{s:7:"onclick";s:558:"$lBs = c("listBox2")->items->selected;
c("listBox2")->text = "";
foreach( findFiles( "$progDir/scripts", "asi", false, false) as $as ){
if( $as != "CLEO.asi"){
c("listBox2")->text .= "scripts/$as";
}
}
foreach( findFiles( "$progDir/cleo", "cs", false, false) as $as ){
c("listBox2")->text .= "cleo/$as";
}
foreach( findFiles( "$progDir", "asi", false, false) as $as ){
if( $as != "CLEO.asi"){
c("listBox2")->text .= "$as";
}
}
c("listBox2")->items->selected = $lBs;
$lBs = null;
unset( $lBs );";}s:7:"button1";a:1:{s:7:"onclick";s:30:"c("fmProgsEdit")->showModal();";}s:6:"label3";a:1:{s:7:"onclick";s:184:"c("fmPHPScrs->listBox1")->text = findFiles( "programs/php", "php", false, false);
c("fmPHPScrs->synEdit1")->text = "";
c("fmPHPScrs->edit1")->text = "";
c("fmPHPScrs")->showModal();";}s:6:"label2";N;s:6:"image3";N;s:13:"version_label";N;s:9:"checkbox3";a:1:{s:7:"onclick";s:99:"ini::open("programs/launcher.ini");
ini::write("MAIN", "do_not_load_php", intval($self->checked));";}s:9:"checkbox2";a:1:{s:7:"onclick";s:378:"ini::open("programs/launcher.ini");
ini::write( "MAIN", "hide_status_bar", intval($self->checked));
if( ! boolval($self->checked) ){
c("fmMain->statusBar1")->show();
c("fmMain")->h = (c("fmMain->gameP")->y + c("fmMain->gameP")->h) + 59;
}
else {
c("fmMain->statusBar1")->hide();
c("fmMain")->h = (c("fmMain->gameP")->y + c("fmMain->gameP")->h) + 40;
}";}s:9:"laun_lang";N;s:9:"combobox1";a:1:{s:8:"onchange";s:219:"lau::setLang(c("combobox1")->itemIndex);
//----------------------
ini::open("programs/launcher.ini");
ini::write( "MAIN", "lang", c("combobox1")->itemIndex);
//----------------------
c("tabControl1")->tabIndex = 1;";}s:9:"checkbox4";a:1:{s:7:"onclick";s:108:"ini::open("programs/launcher.ini");
ini::write("MAIN", "do_not_use_double_buffer", intval($self->checked));";}s:9:"checkbox5";a:1:{s:7:"onclick";s:116:"ini::open("programs/launcher.ini");
ini::write("MAIN", "do_not_write_gta_exe_on_register", intval($self->checked));";}s:5:"link1";a:1:{s:7:"onclick";s:160:"foreach( c("fmMain")->componentList as $as ){
$a = $as->visible;
$as->visible = false;
$as->repaint();
$as->visible = $a;
unset($a);
}";}s:7:"button2";a:1:{s:7:"onclick";s:805:"
if( file_exists("cleo/FOV.ini")){
ini::open("cleo/FOV.ini");
if(($SCREEN->width / $SCREEN->height) < 1.9) ini::write("fov", "fov", 90);
else ini::write("fov", "fov", 60);
}
if( file_exists("moddedsaa/") && file_exists("programs/loadsc/loadsc169hd_ms.txd")){
copy( "programs/loadsc/loadsc169hd_ms.txd", "moddedsaa/LOADSCS.txd");
}
if( file_exists("scripts/moddedsaa/") && file_exists("programs/loadsc/loadsc169hd_ms.txd")){
copy( "programs/loadsc/loadsc169hd_ms.txd", "scripts/moddedsaa/LOADSCS.txd");
}
if(file_exists("programs/loadsc/loadsc169hd.txd")) {
copy( "programs/loadsc/loadsc169hd.txd", "models/txd/LOADSCS.txd");
}
messageBox("OK", "GTA SA: Launcher", MB_OK | MB_ICONINFORMATION);";}s:9:"checkbox6";a:1:{s:7:"onclick";s:104:"ini::open("programs/launcher.ini");
ini::write("MAIN", "gta_sa_insteadof_w10", intval($self->checked));";}}s:8:"fmeditor";a:6:{s:8:"--fmedit";a:2:{s:8:"oncreate";s:717:"gui_propSet(c("synEdit1")->gutter, 'showlinenumbers', 1);
if( file_exists("programs/edit.ini")){
ini::open( "programs/edit.ini");
ini::read( "SynEdit", "font_name", $a[0]);
ini::read( "SynEdit", "font_style", $a[1]);
ini::read( "SynEdit", "font_color", $a[2]);
ini::read( "SynEdit", "font_size", $a[3]);
ini::read( "Window", "w", $w[0]);
ini::read( "Window", "h", $w[1]);
if( $w[0] && $w[1] ){
$self->w = $w[0];
$self->h = $w[1];
}
if( $a ) {
c("synEdit1")->font->name = $a[0];
c("synEdit1")->font->style = $a[1];
c("synEdit1")->font->color = $a[2];
c("synEdit1")->font->size = $a[3];
}
unset( $a );
}";s:12:"onclosequery";s:29:"fmEditor_up::quit($canClose);";}s:4:"data";N;s:9:"spbutton1";a:1:{s:7:"onclick";s:19:"fmEditor_up::sav();";}s:8:"synedit1";a:1:{s:11:"onmousedown";s:74:"if($button == 1) c("popupMenu")->popup( cursor_pos_x(), cursor_pos_y());
";}s:9:"spbutton2";a:1:{s:7:"onclick";s:20:"fmEditor_up::font();";}s:9:"popupmenu";N;}s:11:"fmprogsedit";a:2:{s:8:"--fmedit";a:1:{s:6:"onshow";s:230:"global $message;
c("fmProgsEdit->listBox1")->text = c("fmMain->satp")->caption . " - " . $message[6] . " 0\n" . c("fmMain->txd")->caption . " - " . $message[6] . " 1\n" . c("fmMain->samp")->caption . " - " . $message[6] . " 2";";}s:7:"button1";a:1:{s:7:"onclick";s:940:"global $message;
if( c("listBox1")->items->selected ){
c("fmEditButton->edit1")->text = "";
c("fmEditButton->edit2")->text = "";
c("fmEditButton->edit3")->text = "";
if( file_exists("programs/buttons.ini")){
ini::open("programs/buttons.ini");
ini::read( "button" . c("listBox1")->itemIndex, "icon", $ic);
ini::read( "button" . c("listBox1")->itemIndex, "exec", $ex);
ini::read( "button" . c("listBox1")->itemIndex, "name", $na);
$ic = chrStringOrd($ic, "s");
$ex = chrStringOrd($ex, "s");
$na = chrStringOrd($na, "s");
c("fmEditButton->edit1")->text = $ic;
c("fmEditButton->edit2")->text = $ex;
c("fmEditButton->edit3")->text = $na;
}
c("fmEditButton")->caption = $message[5] . " - " . $message[6] . " " . c("listBox1")->itemIndex;
c("fmEditButton")->showModal();
}
else {
messageBox( $message[7], ";(");
}";}}s:12:"fmeditbutton";a:10:{s:6:"label2";N;s:5:"edit2";N;s:7:"button3";a:1:{s:7:"onclick";s:270:"$a = new TOpenDialog;
$a->filter = "Executable file (*.exe)|*.exe";
if(file_exists(c("edit2")->text)) { $a->initialDir = c("edit2")->text; }
if( $a->execute() && $a->fileName && file_exists( $a->fileName ) ){
c("edit2")->text = $a->fileName;
}
unset( $a );";}s:6:"label3";N;s:5:"edit3";N;s:7:"button1";a:1:{s:7:"onclick";s:222:"$a = new TOpenDialog;
if(file_exists(c("edit1")->text)){ $a->initialDir = c("edit1")->text; }
if( $a->execute() && $a->fileName && file_exists( $a->fileName ) ){
c("edit1")->text = $a->fileName;
}
unset( $a );";}s:7:"button4";a:1:{s:7:"onclick";s:27:"c("fmEditButton")->close();";}s:7:"button2";a:1:{s:7:"onclick";s:800:"global $ex, $ex1, $ex2, $message, $na, $na1, $na2;
ini::open( "programs/buttons.ini");
if( strcmp("",c("edit1")->text)){;
ini::write( "button" . c("fmProgsEdit->listBox1")->itemIndex, "icon", stringOrd(c("edit1")->text, "s"));
}
else ini::write( "button" . c("fmProgsEdit->listBox1")->itemIndex, "icon", "");
if( strcmp("",c("edit2")->text)){
ini::write( "button" . c("fmProgsEdit->listBox1")->itemIndex, "exec", stringOrd(c("edit2")->text, "s"));
}
else ini::write( "button" . c("fmProgsEdit->listBox1")->itemIndex, "exec", "");
if( strcmp("",c("edit3")->text)){
ini::write( "button" . c("fmProgsEdit->listBox1")->itemIndex, "name", stringOrd(c("edit3")->text, "s"));
}
else ini::write( "button" . c("fmProgsEdit->listBox1")->itemIndex, "name", "");
lau::Restart();";}s:7:"button5";a:1:{s:7:"onclick";s:36:"c("fmEditButton->edit2")->text = "";";}s:7:"button6";a:1:{s:7:"onclick";s:36:"c("fmEditButton->edit1")->text = "";";}}s:9:"fmphpscrs";a:5:{s:8:"--fmedit";a:1:{s:8:"oncreate";s:62:"gui_propSet( c("synEdit1")->gutter, "showlineneumbers", true);";}s:7:"button2";a:1:{s:7:"onclick";s:265:"$a = new TOpenDialog;
$a->filter = "PHP Files (*.php)|*.php";
if( $a->execute() && $a->fileName ){
if( file_get_contents($a->fileName )){
copy( $a->fileName, "programs/php/" . basename( $a->fileName ));
lau::Restart();
}
}
unset($a);";}s:8:"listbox1";a:1:{s:7:"onclick";s:191:"if( file_exists( "programs/php/" . $self->items->selected ) && $self->items->selected){
c("fmPHPScrs->synEdit1")->text = file_get_contents( "programs/php/" . $self->items->selected );
}";}s:7:"button1";a:1:{s:7:"onclick";s:227:"if( file_exists("programs/php/" . c("fmPHPScrs->listBox1")->items->selected) && c("fmPHPScrs->listBox1")->items->selected ){
file_delete("programs/php/" . c("fmPHPScrs->listBox1")->items->selected);
lau::Restart();
}";}s:5:"edit1";a:1:{s:8:"onchange";s:276:"if( $self->text ){
c("listBox1")->text = "";
foreach( findFiles( "programs/php", "php", false, false) as $as ){
if( eregi( $self->text, $as )) c("listBox1")->text .= $as;
}
}
else c("listBox1")->text = findFiles( "programs/php", "php", false, false);";}}}