/** * Returns an <input type="image"> tag * * @param string $image image source * @param array $params [optional] html parameters * @param bool $notheme [optional] whether this is a themed image or a top level path * * @return string */ function image_submit_tag($image, $params = array(), $notheme = false) { $params['src'] = !$notheme ? \thebuggenie\core\framework\Context::getWebroot() . 'iconsets/' . Settings::getIconsetName() . '/' . $image : $image; return '<input type="image" ' . parseHTMLoptions($params) . ' />'; }
?> openid_providers.small/openid.ico.png'); } #regular-signin-button.persona-button span:after{ background-image: url('<?php echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/'; ?> footer_logo.png'); } #forgot_password_username { background-image: url('<?php echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/'; ?> user_mono.png'); } #planning_filter_title_input { background-image: url('<?php echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/'; ?> icon-mono-search.png'); } .login_popup .article h1 { background: url('<?php echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/'; ?> logo_48.png') 0 0 no-repeat; } table.results_normal th.sort_asc { background-image: url('<?php echo $webroot; ?> iconsets/oxygen/sort_down.png') !important; padding-left: 25px !important; } table.results_normal th.sort_desc { background-image: url('<?php echo $webroot; ?> iconsets/oxygen/sort_up.png') !important; padding-left: 25px !important; } .module .rating { background-image:url('<?php echo $webroot; ?>
/** * Generate captcha picture * * @Route(name="captcha", url="/captcha/*") * @AnonymousRoute * * @param \thebuggenie\core\framework\Request $request The request object * @global array $_SESSION['activation_number'] The session captcha activation number */ public function runCaptcha(framework\Request $request) { framework\Context::loadLibrary('ui'); if (!function_exists('imagecreatetruecolor')) { return $this->return404(); } $this->getResponse()->setContentType('image/png'); $this->getResponse()->setDecoration(\thebuggenie\core\framework\Response::DECORATE_NONE); $chain = str_split($_SESSION['activation_number'], 1); $size = getimagesize(THEBUGGENIE_PATH . THEBUGGENIE_PUBLIC_FOLDER_NAME . DS . 'iconsets' . DS . framework\Settings::getIconsetName() . DS . 'numbers/0.png'); $captcha = imagecreatetruecolor($size[0] * sizeof($chain), $size[1]); foreach ($chain as $n => $number) { $pic = imagecreatefrompng(THEBUGGENIE_PATH . THEBUGGENIE_PUBLIC_FOLDER_NAME . DS . 'iconsets' . DS . framework\Settings::getIconsetName() . DS . 'numbers/' . $number . '.png'); imagecopymerge($captcha, $pic, $size[0] * $n, 0, 0, 0, imagesx($pic), imagesy($pic), 100); imagedestroy($pic); } imagepng($captcha); imagedestroy($captcha); return true; }