foreach ($Items as $Item) { #------------------------------------------------------------------------------- $Href = $Item['Href']; #------------------------------------------------------------------------------- foreach (Array_Keys($Replace) as $Key) { $Href = Str_Replace($Key, $Replace[$Key] ? $Replace[$Key] : '0000', $Href); } #------------------------------------------------------------------------------- $Array[] = SPrintF("{Text:'%s',Href:'%s',Icon:'SRC:{Images/Icons/%s}'}", $Item['Text'], $Href, $Item['Icon']); #------------------------------------------------------------------------------- } #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- $String = Implode(',', $Array); #------------------------------------------------------------------------------- $Button = new TAG('BUTTON', array('class' => 'Standard', 'style' => 'width: 15px', 'onclick' => SPrintF('ListMenuShow(event,[%s]);', $String))); #------------------------------------------------------------------------------- $LinkID = UniqID('Button'); #------------------------------------------------------------------------------- $Links =& Links(); #------------------------------------------------------------------------------- $Links[$LinkID] =& $Button; #------------------------------------------------------------------------------- $Comp = Comp_Load('Form/Prompt', $LinkID, 'Расширенное меню'); if (Is_Error($Comp)) { return ERROR | @Trigger_Error(500); } #------------------------------------------------------------------------------- unset($Links[$LinkID]); #------------------------------------------------------------------------------- $Button->AddChild(new Tag('IMG', array('align' => 'center', 'width' => 5, 'height' => 10, 'style' => 'display:block;', 'src' => 'SRC:{Images/ListMenuArrow.gif}')));
include_once './downloadflickr.php'; require_once './flickrTag.php'; require_once './flickrTagRelated.php'; require_once './googleDownloader.php'; $start = microtime(true); $count1 = 0; $count2 = 0; $count3 = 0; $count4 = 0; global $imgid; ############################################################### # Initialize Classes ############################################################### $downloadIMAGE = new downloadIMAGE(); $Flickr = new Flickr(); $TAG = new TAG(); $FlickrRelated = new FlickrRalated(); $google = new google(); ############################################################### # Get images ids ############################################################### /*$keywords = ['big+backpack','white+backpack','blue+bacpack']; for ($c=0;$c<sizeof($keywords);$c++){ $data = $google->queryengine($keywords[$c]); print_r($data); echo '<br/><br/>'; } exit;*/ if (!empty($addMe)) { $info = $queryInput . '+' . $addMe;
/** * list all articles belongs to certain tag * @param $req * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function tag($req) { $p = TAG::where('slug', $req)->first(); $pages = $p->pages()->paginate($this->paginate); return view($this->view->index_tag, compact('pages')); }
<?php $tag = new TAG(); $tag->fileScan(); $a = $tag->tagContentSet(); var_dump($a); $tag->quoteScan(); $b = $tag->quoteContentSet(); var_dump($b); class TAG { private $LINE = 1; private $TAG = array(); private $TAG_NUM = 0; private $OFFSET = 0; private $LINE_SIZE = array(); private $BUFFER = array(); private $FILE = "index.html"; private $QUOTE = array(); function searchPhp($b) { $i = strpos($b, "<?php"); } function quoteScan() { $offset = 0; $c = 0; $f = false; for ($i = 1, $l = count($this->BUFFER); $i < $l + 1; $i++) { $next_flag = true; while ($next_flag) {