Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $decode_funcs = array(
- '_527006668' => array (
- 0 => '_TRUSTLINK_USER',
- 1 => '_TRUSTLINK_USER',
- 2 => '0a70cdb962f17a3f437983921fa02647',
- 3 => '',
- 4 => 'host',
- 5 => 'host',
- 6 => 'use_server_array',
- 7 => 'use_server_array',
- 8 => 'HTTP_HOST',
- 9 => '/^http:\\/\\//',
- 10 => '',
- 11 => '/^www\\./',
- 12 => '',
- 13 => 'request_uri',
- 14 => 'request_uri',
- 15 => 'request_uri',
- 16 => 'REQUEST_URI',
- 17 => 'REQUEST_URI',
- 18 => 'multi_site',
- 19 => 'multi_site',
- 20 => 'debug',
- 21 => 'debug',
- 22 => 'trustlink_cookie',
- 23 => 'trustlink_cookie',
- 24 => 'trustlink_debug',
- 25 => 'trustlink_debug',
- 26 => 'REQUEST_URI',
- 27 => 'REQUEST_URI',
- 28 => 'trustlink_updatedb',
- 29 => 'trustlink_updatedb',
- 30 => 'verbose',
- 31 => 'verbose',
- 32 => 'charset',
- 33 => 'charset',
- 34 => 'charset',
- 35 => 'windows-1251',
- 36 => 'fetch_remote_type',
- 37 => 'fetch_remote_type',
- 38 => 'fetch_remote_type',
- 39 => 'socket_timeout',
- 40 => 'socket_timeout',
- 41 => 'socket_timeout',
- 42 => 'socket_timeout',
- 43 => 'force_show_code',
- 44 => 'force_show_code',
- 45 => '_TRUSTLINK_USER',
- 46 => 'Не задана константа _TRUSTLINK_USER',
- 47 => 'ignore_case',
- 48 => 'ignore_case',
- 49 => ' ',
- 50 => 'allow_url_fopen',
- 51 => 'default_socket_timeout',
- 52 => 'user_agent',
- 53 => 'file_get_contents',
- 54 => '',
- 55 => 'allow_url_fopen',
- 56 => 'file_get_contents',
- 57 => '
- ',
- 58 => 'http://',
- 59 => 'http://',
- 60 => 'curl',
- 61 => '',
- 62 => 'curl',
- 63 => 'http://',
- 64 => 'Accept-Charset: ',
- 65 => 'socket',
- 66 => '',
- 67 => '
- ',
- 68 => '
- ',
- 69 => 'Не могу подключиться к серверу: ',
- 70 => ', type: ',
- 71 => 'rb',
- 72 => '',
- 73 => 'Не могу считать данные из файла: ',
- 74 => 'ab',
- 75 => 'Нарушена целостность данных при записи в файл: ',
- 76 => 'Не могу записать данные в файл: ',
- 77 => '<p style="color: red; font-weight: bold;">TRUSTLINK ERROR: ',
- 78 => '</p>',
- 79 => 'Нет файла ',
- 80 => '. Создать не удалось. Выставите права 777 на папку.',
- 81 => 'Нет доступа на запись к файлу: ',
- 82 => '! Выставите права 777 на папку.',
- 83 => '&charset=',
- 84 => 'FATAL ERROR:',
- 85 => '__trustlink_charset__',
- 86 => '__last_update__',
- 87 => '__multi_site__',
- 88 => '__fetch_remote_type__',
- 89 => '__ignore_case__',
- 90 => '__php_version__',
- 91 => '__server_software__',
- 92 => 'SERVER_SOFTWARE',
- 93 => '=',
- 94 => '?',
- 95 => '&',
- 96 => '',
- 97 => '<sape_noindex>',
- 98 => '</sape_noindex>',
- 99 => 'is_block_links',
- 100 => 'is_block_links',
- 101 => 'nof_links_requested',
- 102 => 'nof_links_requested',
- 103 => 'nof_links_displayed',
- 104 => 'nof_links_displayed',
- 105 => 'nof_obligatory',
- 106 => 'nof_obligatory',
- 107 => 'nof_conditional',
- 108 => 'nof_conditional',
- 109 => '<sape_block nof_req="',
- 110 => 'nof_links_requested',
- 111 => '" nof_displ="',
- 112 => 'nof_links_displayed',
- 113 => '" nof_oblig="',
- 114 => 'nof_obligatory',
- 115 => '" nof_cond="',
- 116 => 'nof_conditional',
- 117 => '">',
- 118 => '</sape_block>',
- 119 => 'block_no_css',
- 120 => 'block_orientation',
- 121 => 'block_width',
- 122 => '',
- 123 => '',
- 124 => 'is_block_links',
- 125 => '',
- 126 => '',
- 127 => 'is_block_links',
- 128 => 'nof_links_requested',
- 129 => 'nof_links_displayed',
- 130 => 'nof_obligatory',
- 131 => 'nof_conditional',
- 132 => 'block_no_css',
- 133 => 'css',
- 134 => 'block_orientation',
- 135 => 'block',
- 136 => 'item',
- 137 => 'item_container',
- 138 => '{item}',
- 139 => '',
- 140 => '#<a href="(https?://([^"/]+)[^"]*)"[^>]*>[\\s]*([^<]+)</a>#i',
- 141 => '1251',
- 142 => '{header}',
- 143 => '{text}',
- 144 => '{url}',
- 145 => '{link}',
- 146 => '{item}',
- 147 => '{item}',
- 148 => '',
- 149 => '{items}',
- 150 => '{td_width}',
- 151 => '{td_width}',
- 152 => 'block_width',
- 153 => 'block_width',
- 154 => '{block_style_custom}',
- 155 => 'style="width: ',
- 156 => 'block_width',
- 157 => '!important;"',
- 158 => 'block_no_css',
- 159 => 'block_orientation',
- 160 => 'block_width',
- 161 => '{',
- 162 => '}',
- 163 => '#\\{[a-z\\d_\\-]+\\}#',
- 164 => ' ',
- 165 => 'is_block_links',
- 166 => 'nof_links_requested',
- 167 => 'nof_links_displayed',
- 168 => 'nof_obligatory',
- 169 => 'nof_conditional',
- 170 => 'as_block',
- 171 => 'as_block',
- 172 => '<sape_noindex>',
- 173 => '</sape_noindex>',
- 174 => '<sape_noindex></sape_noindex>',
- 175 => '/',
- 176 => '.home.jpg',
- 177 => '/home.jpg',
- 178 => '/code.php?user=',
- 179 => '&host=',
- 180 => '__trustlink_delimiter__',
- 181 => '__trustlink_delimiter__',
- 182 => '__trustlink_charset__',
- 183 => '__trustlink_charset__',
- 184 => '',
- 185 => '__trustlink_new_url__',
- 186 => '__trustlink_new_url__',
- 187 => '__trustlink_new_url__',
- 188 => '__trustlink_show_only_block__',
- 189 => '__trustlink_show_only_block__',
- 190 => '__sape_block_tpl__',
- 191 => '__sape_block_tpl__',
- 192 => '__sape_block_tpl__',
- 193 => '__sape_block_tpl__',
- 194 => '__sape_block_tpl_options__',
- 195 => '__sape_block_tpl_options__',
- 196 => '__sape_block_tpl_options__',
- 197 => '__sape_block_tpl_options__',
- 198 => '__sape_block_uri_idna__',
- 199 => '__sape_block_uri_idna__',
- 200 => '__sape_block_uri_idna__',
- 201 => '__sape_block_uri_idna__',
- 202 => 'beforeall',
- 203 => 'beforeblock',
- 204 => 'afterblock',
- 205 => 'itemobligatory',
- 206 => 'itemconditional',
- 207 => 'afterall',
- 208 => '__sape_block_ins_',
- 209 => '__',
- 210 => '_block_ins_',
- 211 => '',
- 212 => '<!-- argument for replace_in_text_segment:
- ',
- 213 => '
- -->',
- 214 => '<!-- sentences for replace: ',
- 215 => '&',
- 216 => '&',
- 217 => '"',
- 218 => '"',
- 219 => ''',
- 220 => '\'',
- 221 => '<',
- 222 => '<',
- 223 => '>',
- 224 => '>',
- 225 => '/',
- 226 => '/(&[#a-zA-Z0-9]{2,6};)/isU',
- 227 => '((',
- 228 => ')|(',
- 229 => '))',
- 230 => ' ',
- 231 => '((\\s)|( ))+',
- 232 => '
- ',
- 233 => '-->',
- 234 => '',
- 235 => '',
- 236 => ' ',
- 237 => '<',
- 238 => '/(?si)^(\\/?[a-z0-9]+)/',
- 239 => '/',
- 240 => '<!-- close_tag: ',
- 241 => ' -->',
- 242 => '',
- 243 => '<!-- open_tag: ',
- 244 => ' -->',
- 245 => '<!-- ',
- 246 => ' - deleted from open_tags -->',
- 247 => '<!-- start replacement -->',
- 248 => '>',
- 249 => '/',
- 250 => '/',
- 251 => '/',
- 252 => '/',
- 253 => '$',
- 254 => '\\$',
- 255 => '<!-- ',
- 256 => ' --- ',
- 257 => ' replaced -->',
- 258 => '>',
- 259 => '<!-- ',
- 260 => ' - added to open_tags, stop replacement -->',
- 261 => '/',
- 262 => '/',
- 263 => '/',
- 264 => '/',
- 265 => '$',
- 266 => '\\$',
- 267 => '<!-- ',
- 268 => ' --- ',
- 269 => ' replaced -->',
- 270 => '',
- 271 => '<',
- 272 => '<',
- 273 => '<!-- No word`s for page -->',
- 274 => '<!-- END: work of replace_in_text_segment() -->',
- 275 => '<sape_index>',
- 276 => '</sape_index>',
- 277 => '__trustlink_new_url__',
- 278 => '__trustlink_new_url__',
- 279 => '__trustlink_new_url__',
- 280 => '<!-- Not replaced: ',
- 281 => '
- ',
- 282 => '
- ',
- 283 => '-->',
- 284 => '/(?smi)(<\\/?sape_index>)/',
- 285 => '',
- 286 => '<!-- Split by Sape_index cnt_parts=',
- 287 => '-->',
- 288 => '/(?smi)(<\\/?body[^>]*>)/',
- 289 => '<!-- Split by BODY -->',
- 290 => '<!-- Can`t split by BODY -->',
- 291 => '/(?smi)(<\\/?sape_index>)/',
- 292 => '',
- 293 => '__trustlink_new_url__',
- 294 => '__trustlink_new_url__',
- 295 => '__trustlink_new_url__',
- 296 => '<!-- No word`s for page -->',
- 297 => '/',
- 298 => '.words.db',
- 299 => '/words.db',
- 300 => '/code_context.php?user=',
- 301 => '&host=',
- 302 => 'headers_enabled',
- 303 => 'headers_enabled',
- 304 => 'charset',
- 305 => 'charset',
- 306 => 'charset',
- 307 => '',
- 308 => 'index',
- 309 => 'announcements_delimiter',
- 310 => 'index',
- 311 => 'announcements_delimiter',
- 312 => 'index',
- 313 => 'charset',
- 314 => 'charset',
- 315 => 'charset',
- 316 => 'index',
- 317 => 'charset',
- 318 => 'host',
- 319 => 'host',
- 320 => 'HTTP_HOST',
- 321 => 'index',
- 322 => 'announcements',
- 323 => '/',
- 324 => '/',
- 325 => 'index',
- 326 => 'announcements',
- 327 => '',
- 328 => 'index',
- 329 => 'checkCode',
- 330 => 'index',
- 331 => 'checkCode',
- 332 => 'index',
- 333 => 'announcements',
- 334 => 'index',
- 335 => 'announcements',
- 336 => 'index',
- 337 => 'announcements',
- 338 => 'index',
- 339 => 'announcements',
- 340 => '<sape_noindex>',
- 341 => '</sape_noindex>',
- 342 => 'index',
- 343 => 'articles.db',
- 344 => 'index',
- 345 => 'index',
- 346 => 'articles',
- 347 => 'index',
- 348 => 'index',
- 349 => 'images',
- 350 => 'index',
- 351 => 'checkCode',
- 352 => 'article',
- 353 => 'index',
- 354 => 'articles',
- 355 => 'id',
- 356 => '.article.db',
- 357 => 'id',
- 358 => 'article',
- 359 => 'date_updated',
- 360 => 'article',
- 361 => 'date_updated',
- 362 => 'date_updated',
- 363 => 'index',
- 364 => 'templates',
- 365 => 'template_id',
- 366 => 'url',
- 367 => 'template_id',
- 368 => '/images/',
- 369 => 'Нет папки ',
- 370 => '. Создать не удалось. Выставите права 777 на папку.',
- 371 => '.',
- 372 => 'image',
- 373 => 'index',
- 374 => 'images',
- 375 => 'id',
- 376 => '.',
- 377 => 'ext',
- 378 => 'date_updated',
- 379 => 'date_updated',
- 380 => 'dispenser_path',
- 381 => 'FATAL ERROR:',
- 382 => 'mime',
- 383 => 'mime',
- 384 => 'image',
- 385 => 'Content-Type: ',
- 386 => '{meta_charset}',
- 387 => 'index',
- 388 => 'template_fields',
- 389 => 'article',
- 390 => '{',
- 391 => '}',
- 392 => 'article',
- 393 => '{',
- 394 => '}',
- 395 => '',
- 396 => 'tpl.articles.db',
- 397 => 'templates',
- 398 => 'templates',
- 399 => 'templates',
- 400 => 'date_updated',
- 401 => 'index',
- 402 => 'templates',
- 403 => 'lifetime',
- 404 => 'templates',
- 405 => 'Не найден шаблон для статьи',
- 406 => 'templates',
- 407 => 'body',
- 408 => '',
- 409 => 'path',
- 410 => 'path',
- 411 => 'query',
- 412 => '?',
- 413 => 'query',
- 414 => 'templates',
- 415 => 'body',
- 416 => 'date_updated',
- 417 => 'templates',
- 418 => 'mask',
- 419 => 'code',
- 420 => 'len',
- 421 => 'mask',
- 422 => 'code',
- 423 => 'len',
- 424 => '~(\\<a [^\\>]*?href[^\\>]*?\\=["\']{0,1}http[^\\>]*?\\>.*?\\</a[^\\>]*?\\>|\\<a [^\\>]*?href[^\\>]*?\\=["\']{0,1}http[^\\>]*?\\>|\\<area [^\\>]*?href[^\\>]*?\\=["\']{0,1}http[^\\>]*?\\>)~si',
- 425 => '~\\<a |\\<area ~si',
- 426 => '~[\\s]{1}rel\\=["\']{1}[^ "\'\\>]*?["\']{1}| rel\\=[^ "\'\\>]*?[\\s]{1}~si',
- 427 => '~[\\s]{1}href\\=["\']{0,1}(http[^ "\'\\>]*)?["\']{0,1} {0,1}~si',
- 428 => 'index',
- 429 => 'ext_links_allowed',
- 430 => 'www.',
- 431 => 'C',
- 432 => '|<!--(.*?)-->|smi',
- 433 => 'S',
- 434 => '|<script[^>]*>.*?</script>|si',
- 435 => 'N',
- 436 => '|<noindex[^>]*>.*?</noindex>|si',
- 437 => 'host',
- 438 => 'host',
- 439 => '<noindex>',
- 440 => '</noindex>',
- 441 => '',
- 442 => 'N',
- 443 => 'host',
- 444 => 'host',
- 445 => '',
- 446 => '$0rel="nofollow" ',
- 447 => '',
- 448 => 'S',
- 449 => 'C',
- 450 => 'index',
- 451 => 'template_required_fields',
- 452 => '{',
- 453 => '}',
- 454 => 'В шаблоне не хватает поля ',
- 455 => '.',
- 456 => 'HTTP/1.x 200 OK',
- 457 => 'Content-Type: text/html; charset=',
- 458 => 'HTTP/1.x 404 Not Found',
- 459 => 'index',
- 460 => '/?user=',
- 461 => '&host=',
- 462 => '&rtype=',
- 463 => 'article',
- 464 => '/?user=',
- 465 => '&host=',
- 466 => '&rtype=',
- 467 => '&artid=',
- 468 => 'image',
- 469 => '/',
- 470 => '.',
- 471 => '/',
- ),
- );
- $file_parse = './logo-decoded.php';
- $file_content = file_get_contents($file_parse);
- $replace_from = array();
- $replace_to = array();
- foreach($decode_funcs as $global_key => $global_vals) {
- foreach ($global_vals as $global_val_key => $global_val_func) {
- $replace_from[] = $global_key.'('.$global_val_key.')';
- $replace_to[] = '"'.$global_val_func.'"';
- }
- }
- $file_content = str_replace($replace_from, $replace_to, $file_content);
- print $file_content . PHP_EOL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement