⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class.php

📁 一款基于PHP的网络日记程序。WikyBlog支持:多用户的 BLOG
💻 PHP
字号:
<?phpdefined('WikyBlog') or die("Not an entry point...");class skeleton extends dbPage{	var $dbValues = array('owner'=>1,'title'=>1,'content'=>1);	var $userValues = array('content'=>1,'keywords'=>1);	function skeleton($type){		$this->objectType = $type;	//this is used to select the correct array from $dbInfo		$this->setDbInfo();	}		function newPage(){		global $includeDir,$page;		global $userLanguage,$lang;		parent::newPage();		//	STANDARD EDIT MESSAGE		if( $this->editable ){			$this->content = wbLang::text('DEFAULT_CONTENT',$this->uniqLink);			if( empty($page->userCmd) && cookies() ){				$page->userCmd = 'edit';			}		}else{			$this->content = $lang['DEFAULT_CONTENT_PROTECTED'];		}	}	function setLinks(){		global $page,$pageOwner,$lang;		parent::setLinks();		$page->displayTitle = $lang[$this->objectType].' > '.toDisplay($this->title);		$this->links['?'] = 'Skeleton';	}		//same as for CLASSpage	function abbrevOutput(&$row){		global $lang,$page;				$links = array();		$links[$lang['file']] = '/'.$row->owner.'/'.$row->title;		$links[$lang['talk']] = '/Talk'.$links[$lang['file']];				echo '<h2 class="heading">'.toDisplay($row->title).'</h2>';		echo '<div class="underline"></div>';		echo ' <div class="fileInfo">';			echo '<span>'.implode(' :: ', $page->pageTabs($links,$row->flags,true) ).'</span>';			echo '<span>'.$lang['modified'].': '.dbFromDate($row->modified,3).'</span>';			echo '<span>'.$lang['created'].': '. dbFromDate($row->created,3).'</span>';		echo ' </div>';		echo '<div class="desc">';			$bool = wikiToHtml($row->content,400);			echo $row->content;			if($bool == true){				echo '... '.wbLinks::local($row->uniqLink,$lang['read_more']).' <span class="sm">('.$bool.$lang['words'].')</span>';			}		echo '</div>';		echo '<br />';	}	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -