Beispiel #1
0
 public function RunJob()
 {
     $this->_lock();
     include LNG_PATH . 'btn.php';
     $files = scandir(CACHE_PATH);
     foreach ($files as $file) {
         if (p_substr($file, -4) == '.png' && p_substr($file, 0, 3) == 'btn-') {
             unlink(CACHE_PATH . $file);
         }
     }
     foreach ($listing as $key => $dummy) {
         do_btn($key, $listing);
     }
     parent::RunJob();
 }
Beispiel #2
0
    $img->SetColorHexa($textcolor);
    if ($key == 'eude') {
        $img->Text($text, 0, 8, $fontsize);
    } else {
        $img->CenteredText($text, $fontsize);
    }
    //-- Fin partie personalisable. ------------------------------------------------
    $img->SaveAs($key . '.png')->Render();
}
include_once '../../../../init.php';
include_once INCLUDE_PATH . 'Script.php';
Members::CheckPermsOrDie(AXX_ROOTADMIN);
addons::getinstance()->ButtonRegen($listing, $defaultsetting);
if (isset($_GET['ident'])) {
    include CLASS_PATH . 'img.class.php';
    do_btn(gpc_esc($_GET['ident']));
} else {
    include TEMPLATE_PATH . 'sample.tpl.php';
    $tpl = tpl_sample::getinstance();
    $files = scandir('./');
    foreach ($files as $file) {
        if (p_substr($file, -4) == '.png') {
            unlink($file);
        }
    }
    foreach ($listing as $key => $dummy) {
        $tpl->PushOutput('<span class="color_header"> &#37;BTN_URL%' . $key . '.png </span><img src="./gen.php?ident=' . $key . '&' . time() . '"/><br/>');
    }
    $tpl->PushOutput(<<<x
<script>
window.onload = function() {