Record [a:dev.sky.] < dev.sky.1.001

Version 1.001

N1: DATA: embryo
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
define('START''install');
define('START_TS'microtime(true));
define('ENC''UTF-8');
define('DEBUG'1);
$row mysqli_fetch_row(mysqli_query($idc"select code from _dev_codebase where id=67"));
$c67 '?>' $row[0];
eval(preg_replace("/require (.*);$/m"'eval(cell("name=\'c:" . $1 . "\'"));'$c67));
eval(str_replace("require 'wing.php';"cell(68), cell(60))); # run all_dev.php, wing.php
list (, $a_dev_sqluser$a_dev_sqlpass$a_dev_sqlhost$a_dev_sqldb) = $dsn# set access to conf.php
$a_user_lang $lg;
$a_live_public 'dev.sky.';
$imitate $imitate_only $rollback 0;
define('REAL_RUN'true);
$id0 cell(87'm') ? 1;
eval(cell(20)); # run 
if (== $err) {
    foreach (glob('dev.sky.*') as $one) @rename($one"_arch/$one.$time");
    @rename('i_dev.php'"_arch/i_dev.php.$time");
}
/* comment Codebase commands
   
en
ru

Overall DEV.SKY. deploy script

This script executed from deploy program i_dev.php, Rollback impossible.

N2: SKIP IMITATE:
N3: HEAD: ?
001
002
003
004
005
006
007
008
009
010
011
012
author: energy
script tested: yes
edited manualy: yes
ftrd: A^38/5/200/5 D^0/0/0/0 E^0/0/0/_ R^/0/0/_/0
this script: manual, 120 records, 248 objects, 100270 bytes
reused code: coresky
rollback: no
text files: php js css
include paths: dev.php _dev
exclude paths: _dev/_ _dev/temp _arch
include tables: _dev_
include rows: _dev_codebase.-999 _dev_help.* _dev_memory.-59
N4: SQL:
001
alter table _dev_memory auto_increment = 1001
N5: APPEND CELL: _dev_memory.10.tmemo
001
002
# application vars converted
 
N6: CREATE DIRS: @
001
_arch
N7: CREATE DIRS:
001
_dev _dev/main _dev/temp
N8: WRITE FILE: _dev/favicon.ico
000
010
020
030
040
050
060
070
080
090
0A0
0B0
0C0
0D0
0E0
0F0
100
110
120
130
180
 00 00 01 00 01 00 10 10 | 10 00 00 00 04 00 28 01   ..............(.
 00 00 16 00 00 00 28 00 | 00 00 10 00 00 00 20 00   ......(....... .
 00 00 01 00 04 00 00 00 | 00 00 80 00 00 00 00 00   ................
 00 00 00 00 00 00 10 00 | 00 00 10 00 00 00 00 00   ................
 00 00 00 00 80 00 00 80 | 00 00 00 80 80 00 80 00   ................
 00 00 80 00 80 00 80 80 | 00 00 80 80 80 00 C0 C0   ................
 C0 00 00 00 FF 00 00 FF | 00 00 00 FF FF 00 FF 00   ................
 00 00 FF 00 FF 00 FF FF | 00 00 FF FF FF 00 00 00   ................
 00 00 00 00 00 00 00 00 | 00 00 00 55 50 00 00 00   ...........UP...
 00 00 05 00 55 00 00 00 | 00 00 00 00 55 00 55 55   ....U.......U.UU
 55 50 00 05 50 00 05 50 | 00 55 50 55 00 00 00 55   UP..P..P.UPU...U
 00 05 55 55 00 50 00 55 | 00 00 55 05 55 00 00 55   ..UU.P.U..U.U..U
 00 00 05 50 00 00 00 05 | 50 00 05 50 00 00 00 05   ...P....P..P....
 50 00 05 50 00 00 00 05 | 50 00 05 50 00 00 00 00   P..P....P..P....
 55 00 05 50 00 00 00 00 | 55 00 55 00 00 00 00 05   U..P....U.U.....
 55 55 50 00 00 00 00 00 | 00 00 00 00 00 00 FF FF   UUP.............
 00 00 FF C7 00 00 FF B3 | 00 00 FF F3 00 00 01 E7   ................
 00 00 9C 4F 00 00 CE 0D | 00 00 CF 23 00 00 CF 9F   ...O.......#....
 00 00 E7 9F 00 00 E7 9F | 00 00 E7 9F 00 00 F3 9F   ................
 00 00 F3 3F 00 00 E0 7F | 00 00 FF FF 00 00 ... --file cutted--
N9: WRITE FILE: _dev/dev.key
000
010
020
030
040
050
060
070
080
090
0A0
0B0
0C0
0D0
0E0
0F0
100
110
120
130
140
180
 B9 AD 61 62 53 78 B4 6A | 10 A9 04 B6 34 18 32 61   ..abSx.j....4.2a
 C8 99 7D 8F 97 96 D3 F2 | 39 D8 D2 D7 C7 6C 62 4C   ..}.....9....lbL
 B2 42 1F 5B 4A F0 DE 8B | 73 B4 42 5E 5B 3C BC A6   .B.[J...s.B^[<..
 61 4C CD 2F 9B 6D 08 89 | 47 56 16 38 4A DC 5B BE   aL./.m..GV.8J.[.
 F6 F5 42 F1 62 B6 D6 3D | 50 48 A8 E5 BF D0 2F 7C   ..B.b..=PH..../|
 7F A8 5E FB 0A E7 7C A2 | D5 A1 A8 89 5E 39 EC F0   .^...|.....^9..
 89 7A 3C 94 9C C2 46 04 | 7F E3 1F A5 D7 43 38 C6   .z<...F.....C8.
 C2 0F 75 C1 51 62 81 24 | 2A 07 67 F9 3C 53 DC 84   ..u.Qb.$*.g.<S..
 D7 DF CB 4C 84 06 ED 07 | 5B BF C3 AF CB F6 9D 25   ...L....[......%
 61 EF 7C 5E C2 03 C6 14 | F7 2F B7 E8 7C D3 E9 70   a.|^...../..|..p
 4A D0 96 1C F0 5C 19 7A | 30 72 F9 6A 3B 6E 9A 59   J....\.z0r.j;n.Y
 AA 80 28 DF D0 E9 3B 53 | C8 29 34 AD 7E 10 B7 1F   ..(...;S.)4.~...
 D6 83 98 FE 6D 2F 2D 91 | FE 2C E9 47 4A 63 D5 C3   ....m/-..,.GJc..
 EE E7 16 EE 91 BA 2B 80 | D5 8E B1 64 6C D9 99 30   ......+....dl..0
 B5 12 FE CC 27 26 19 20 | 6A 87 A7 65 43 98 55 5B   ....'&. j..eC.U[
 00 A2 FB 37 DE 03 7D CF | 5A 07 AC 3A 50 33 A4 08   ...7..}.Z..:P3..
 61 45 12 04 76 57 5E 7F | 28 C2 E2 5B 94 8E 4B FD   aE..vW^(..[..K.
 84 F7 CC 13 C4 EC 35 DB | 43 82 CE 4A 55 F5 2C 76   ......5.C..JU.,v
 CD 05 5A B6 6F 38 20 96 | 3D CD 4B F0 64 FA 48 B7   ..Z.o8 .=.K.d.H.
 24 EB 8F 04 A4 6A 1E 26 | CF 5F 84 7F 7A 5A 7D 9B   $....j.&._.zZ}.
 1D 00 96 98 64 78 8F 32 | 08 53 59 E6 5A ... --file cutted--
N10: WRITE FILE: _dev/main/image.php
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
<?php define('START''image');
 
require '_dev/conf.php';
 
list($id$i) = explode('.'current($_GET), 2);
$cnt count($ary explode("\n"cell($id)));
if ($is_svg ' ' == $i[0]) $i substr($i1);
 
if (strpos($i'.') and $img str_replace('.''\.'$i)) {
    for ($i 0$i $cnt && !preg_match("|^# WRITE FILE: (\S+/)?$img #$|"$ary[$i++]); );
} elseif ('n' === strtolower($i[0]) and $n substr($i1)) {
    for ($i $k 0$i $cnt && $k != $n$i++) preg_match("/^# ([A-Z ]{3,20}): \S* #$/"$ary[$i], $m) && 'DESC' !== $m[1] && $k++;
}
 
for ($out ''$i $cnt && '' !== $ary[$i]; ) $out .= $ary[$i++];
if ($is_svg) exit($out);
 
header('Content-Type: image/png');
$image = @imagecreatefromstring(base64_decode($outtrue));
 
imagepng($image $image imagecreatefromstring(base64_decode('
iVBORw0KGgoAAAANSUhEUgAAAIIAAAANCAIAAADqhyGnAAAABGdBTUEAALGPC/xhBQAAASdJREFUWEftVtEOAiEM4/9/+nzAkNmN
rlvQB4PxwSBXtpZ2N8b9XAYuAx8MPM+A7/zbLtoHduv2EXF/qERYzAQHWC4kwVFam8d5clYZu3pEcHgc21u92X3f+J2SCBtme2F5
OzmJbMiCk9mfzldCeQoF+4KWG3RJSFeFUkyjIWAJirun4a0rwzsfbDTtbs/OLiVVvL1S9xxwQxhnSsaRiLBlLSgeRDz6V1h7s6ah
BIHWmzS6G8J+YcxgzWkokVkkyiASp8iwGFTcQOT/QSjVjlBkCEPZXjFlNvgrScyRAioy6PgNtPR2Qr/JEakMYOFQksaexpuSNV+D
ONFtacSF5j48G0I4MhtBlSMpvJtVnEee3SBhNb5D1Ut1wmxIr5E+R+/Oy8C/MPAC31pB27RMqBgAAAAASUVORK5CYII=')));
 
exit;
   
en
ru

The image files are missing in DEV.SKY. Instead, files, images are stored in the table _dev_codebase encoded using base64_encode. Display images provided with pom. File .. image.php, the code of which is given above. The image files are detected based on file extensions, and the list of these extensions defined in the "Settings", see picture on the right. Example 1: <img src="?img=13.333" /> - showing by row number Example 2: <img src="?img=13.N5" /> - show by command FILE WRITE Example 3: <img src="?img=13.pic1.png" /> - showing by the file name
N11: RUN RECORDS: 3,20-22,50-69,100-124
N12: DATA: embryo_end
001
up to here */
N13: STOP: back