/** * run() should make characters visible if parameter is not zero */ public function testRun_doesNotShow_ifParameterIsZero() { $style = new \Jstewmc\Rtf\Style(); $element = new V(); $element->setParameter('0'); $element->setStyle($style); $element->run(); $this->assertFalse($element->getStyle()->getCharacter()->getIsVisible()); return; }
private static function loadTemplateFile($_tpl_, $_vars_) { try { // load vars in T require_once COREROOT . 'V.php'; V::set($_vars_); // TODO: remove and work only with T? extract($_vars_, EXTR_OVERWRITE); // save output... $_ret_ = ''; ob_start(); require $_tpl_; $_ret_ = ob_get_contents(); ob_end_clean(); return $_ret_; } catch (Exception $e) { trigger_error("TPL_PROBLEM|NO SE QUE ONDA..." . $e->getMessage()); } }
<?php echo B::xhtml5(array('head' => B::head(array('title' => 'SweetFramework Project Test')), 'body' => B::body(array('header' => B::header(array('title' => 'Project Test', 'nav' => T::get('site/nav'))), 'content' => array(B::h1(array('text' => 'Projects')), B::ul(array('items' => D::log(array_map(function ($v) { return V::get('project/detail', array('project' => $v)); }, $projects), 'projects')))), 'footer' => B::footer(array('text' => 'Copyright ajcates ' . date('Y')))))));
public static function isEmailValid($email) { return V::email()->validate($email); }
<?php if ($b->N('U') == 1) { echo V::W('X', Y($c->N('U'))); } else { echo V::W('X', Y($c->N('AG'))); } $a++; $b++; if ($c) { $d++; } else { $f++; }
" /> Texto (*): <textarea style="width:100%" name="text" required><?php V::show('text'); ?> </textarea> Tags (*): <input type="text" name="tags" value="<?php V::show('tags'); ?> " /> Imagen (*): <input type="file" id="image" name="image" /> <input type="hidden" name="id" value="<?php V::show('id'); ?> " /> <input type="hidden" name="old_image" value="<?php V::show('image'); ?> " /> <input type="submit" name="accion" value="Guardar" class="envio" /> </form> <div class="borrar"> </div> </section> <script type="text/javascript" src="<?php echo URL; ?> js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: "textarea", menubar : false,
/** * Sanitize "theme" option. * * @since 1.0.0 * * @param string * @return string */ protected function sanitizeThemeOption($value) { // Check for safe theme names if (V::match($value, '/^[a-z0-9_-]+$/i')) { // Check if theme file exists $path = self::ACE_ASSETS_PATH . 'theme-' . $value . '.js'; if (F::exists($path)) { return $value; } } return 'kirby'; }
<!-- Main Content --> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <?php foreach (V::get('posts') as $p) { ?> <div class="post-preview"> <a href="post.php?id=<?php echo $p['id']; ?> "> <h2 class="post-title"><?php echo $p['title']; ?> </h2> <h3 class="post-subtitle"><?php echo $p['subtitle']; ?> </h3> </a> <p class="post-meta">Posted by <a href="#"><?php echo $p['author']; ?> </a> on <?php echo substr($p['date'], 0, 10); ?> </p> </div> <hr> <?php
function getView($name, $options=array()) { return V::get($name, $options); }
<?php B('C') or die; D::E('F'); ?> G<?php echo H::E(J::K()->L(), M, $b->N('O')); ?> P<?php if ($b->N('R')) { ?> S<?php if ($b->N('U') == 1) { echo V::W('X', Y($c->N('U'))); } else { echo V::W('X', Y($c->N('AG'))); } ?> AH<?php } ?> AI<?php echo V::E('AL'); ?> AM<?php echo $d; ?> AN<?php echo D::E('AQ'); ?> AR
<?php echo B::xhtml5(array('head' => B::head(array('title' => 'SweetFramework Project Test')), 'body' => B::body(array('header' => B::header(array('title' => 'Project - ' . $project->name, 'nav' => T::get('site/nav'))), 'content' => V::get('project/detail', array('project' => $project)), 'footer' => B::footer(array('text' => 'Copyright ajcates ' . date('Y')))))));
<html> <head> <title>Error <?php echo V::get("error_code"); ?> </title> <style> code { word-break: break-all; width: 100%; max-width: 640px; display: block; } </style> </head> <body> <h1><?php echo V::get("error_code"); ?> - <?php echo V::get("error_message"); ?> </h1> <p> <code><?php echo V::get("monkey_script"); ?> </code> </p> </body> </html>
public static function loadtrans($trans) { self::$trans = $trans; }
${$g}(); X::f(); call_user_func(); call_user_func('h'); call_user_func($var); class A { } class C extends B { } class D extends C { } new U(); V::m(); W::$n; P::CONST; interface ILocal extends IForeign { } class CLocal extends INonlocal { } strtoupper(''); // Various magic things. die($x); empty($x); isset($x); echo $x; print $x;
<?php echo B::xhtml5(array('head' => B::head(array('title' => 'SweetFramework Project Test')), 'body' => B::body(array('header' => B::header(array('title' => 'Dashboard', 'nav' => T::get('site/nav'))), 'content' => array(B::section(array('content' => array(B::h3(array('text' => 'Projects')), B::ul(array('items' => D::log(array_map(function ($v) { return V::get('project/brief', array('project' => $v)); }, $projects), 'projects')))))), B::section(array('content' => array(B::h3(array('text' => 'Users')), B::ul(array('items' => D::log(array_map(function ($v) { return V::get('users/brief', array('user' => $v)); }, M::Users()->limit(10)->all()), 'projects'))))))), 'footer' => B::footer(array('text' => 'Copyright ajcates ' . date('Y')))))));
V::show('title'); ?> </h2> <span class="meta">Posted by <a href="#"><?php V::show('author'); ?> </a> on <?php echo substr(V::get('date'), 0, 10); ?> </span> </div> </div> </div> </div> </header> <!-- Post Content --> <article> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <?php V::show('text'); ?> </div> </div> </div> </article> <hr>
<?php for ($i = 0; $i < 10; $i++) { echo V::W('X', Y($c->N('U'))); } while (1) { $a++; } switch ($a) { case 1: break 1; case 13: break 1; default: break 1; } foreach ($i as $b) { echo V::W('X', Y($c->N('U'))); }