PHP Classes

File: _example.php

Recommend this page to a friend!
  Classes of Tony Bogdanov   PIMG   _example.php   Download  
File: _example.php
Role: Example script
Content type: text/plain
Description: A "pack" of encoded examples
Class: PIMG
Process images using multiple operations
Author: By
Last change: Fixed an error in THEMATRIX
Date: 14 years ago
Size: 7,949 bytes
 

Contents

Class file image Download
<?php
/* EXAMPLE SCRIPTS */
$p = $_GET['p'];
$f = $_GET['f'];

$examples = array(
//DONOTREMOVETHISLINE
   
'color' => 'RY3BCoMwEETPCeQf9iC4HlpUKBRa9VNK1CUJRJMuSH+/RlFv894MzLuLNirJ9F0cE+bRTea+qrx4KalklhgamOkHKX7cpA1hKrMh+MDQiG2jpBDi1sImsTiQacSqfpxsmGjGuixP0/uF8ELto9VYPfd7GmyA/Wjlrv0D',
   
'colormix' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYnqqBkhSJTk/J7/IECgJUaRrpwAW0TAyNdVRgBEIlUaYKg10FEAIYlVqckY+ugJNEDM3s0IjsagosRJKQi3WUTA10NRRQBYzAotpgsyztwMA',
   
'createimg' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYjpQmZ5+cWJuQU5qsX5JanGJXlZBOlgDRLmunUJRal5KapEGSMzeDgA=',
   
'crop' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYjpQmZ5+cWJuQU5qsX5JanGJXlZBOlgDWDkvF6eunUJyUX6BhpGBjgIIW4CxJkSmKDUvJbVIA6Te3g4A',
   
'debug' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYnqqBkgSIqVrp1CckV/ukppUmo4qnJyTmliERbw4tQQiqh6cmFuQk6qQWlSUX6Suo6AOYeAx294OAA==',
   
'fill' => 'TY7BCsIwEETPCeQfcih0e1BqISe1/RSJdk0D2zQuFH/fJNLqbebNwMxliFNUkvG1ekaoo5/dMaG6OSupZJW9vuqAb53lzc/WIeSweiy0cMpKR0khxKHXBUKzWcYRurbdvWPEAKfO7OROK8KvYClOFoz5n0/46Yngu1i2N84YRuR0O7jyeOg/',
   
'fitin' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYnqqRl5pTo6OgpGBAYgAqQSr4+Xi1LVTSMssyczTMATJmRpoQsSKUvNSUos0QCrt7QA=',
   
'fitout' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYnqqRl5pTo6OgpGBAYgAqQSr4+Xi1LVTSMssyS8t0TAESZoaaEIEi1LzUlKLNEBK7e0A',
   
'layer' => 'ZYzRCsIgFIavE3yHcxGosJwNdlVtjxJCBzNUTDdib9+cEFEX/+H8Px/feYz3SEnC52wTchatN3KdmDhRQsm+dLhAwBeU92q9NsjD7FwDnVLbKegGdv8kk23WPjrM7YR5ko9ovtWU7A4DOL1g4lXRgE5JL592VCXid+5UTa+EqJKE4bZainwc3g==',
   
'merge' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYjpQmZ5+cWJuQU5qsX5JanGJXlZBOlgDWLkR8ephFujaKeSmFgEVQgzQUTAygGBTAzRlRal5KalFQHfmQUywtwMA',
   
'mods/filter.pixelize1' => 'NYxBDsIgEEXXknCHWTSBJkp1rbZHMU064hhoR8BoPL2Adfffnzf/NPCNpQj4eFJArZi8NblS7VEKKZrCcIYZX1Dihfxos2a6OHp2GLuEMZk72/pQdSk2ux78Mun2F6/kEoY/Mb3R0Qf1Yb8FVSmq9RZwnoqZp4b+Cw==',
   
'mods/filter.pixelize2' => 'NYxNDsIgEIXXknCHWZhAk0p1rbZHMY0d6RhoR8DUeHqh6u79fO+dOh5ZioCPJwXUislbkyNVHaWQYls8nGHCBYq8kO9txkwTe88OY5MwJnNnuw5WXIrNrgU/D7r6yhu5hOHvmF7o6I36sK9BxRQwXUf1KwNOQ0HzV9d+AA==',
   
'mods/filter.pixelize3' => 'NYzBDsIgEETPkvAPHEygiVI9q+2nmMaudA2064LR+PUC6m3e5M0ce5pICob7AxmMJgzO5ko3BymkWBdWJzXDU5V4xjC4rNk2DoE8xDZBTPZGrg6qLsVq26mwjKb5xiv6BPwnwhd4fIPZ7zZKx8SQLlMto/4pDPNYBvmx7z4=',
   
'mods/removewatermark' => 's7EvyCjg5SpKLSzNLErVUC/IzE3XAwqpa1rzcvFyqYD4CrYKeanlCiBmfGZuYjpQmZ5+cWJuQU5qsX5JanGJXlZBOlgDWDkvF6eunUJufoqGJoRZlJqbX5ZanliSWpSbWJStYWigowDC5mAMV5SXklqkATLF3g4A',
   
'mods/THEMATRIX' => 'zVdpk6LIuv7cHdH/gRtREV019FwFQeHOFoqKghuLCEx0dAAma7LIouDE/PeToNZU9/S5cz6eikLTd3veNcn8+bfMzz68z8GpCnLw/DELYu9/Eenjy08f3heg/FIGMfgCgzgon/st7cP73g8Yt93Mlzz2Qw/96mEH3yo/FliTVjlWODkACZaDIoVVGaTJh/dPF+wXjOn3kfKTj5bDbtlpKn5awSNW+gBz0iMoMBtguZUc0xg2iALTPCjA8ROW5tgFYMVNOgIg61QQ1wsSC94kf0PmHyoIxbVgAR444zitkhJL3TtMkHQGgtjyAPZMYD9iRP8F6Vs3uV8w+hsPEfor7KmyYFA2rbW/HH8urQh9WcjJH0oMptax46PktXZb3YfaL1iZV+CRyekW22xVbDZdqthkttoeuqQilbYQSDYBF6xdful8fU4qCD9hTxf0+G01bmI//oq5AYTPr7+6PDy/vDyi4HJgla2rWYCcvDt+BXmKPE6QpwkouuxlrXtWnlvN8zfA3jVIXIiMPNtWAYbUlyNoA3/+OLxcLw7uwqgSAoOfeqwrXzhpJUvcdXyRjOjajHDLiyNhVjrL/olj2I3Y+NvV3o+cfU9U9/6eceqduqc2yoxYn7g+HpPh+LLmys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gQ5nfY6H5F/gM=',
//DONOTREMOVETHISLINE
);

if (
$p == 'source')
    if (!empty(
$examples[$f]))
       
highlight_string(gzinflate(base64_decode($examples[$f])));
    else
        echo
$f . ' not found';
else
    if (!empty(
$examples[$f]))
        eval(
str_replace('<?php', '', str_replace('?>', '', gzinflate(base64_decode($examples[$f])))));
    else
        echo
$f . ' not found';
?>