<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://gwiki3.thatlinuxbox.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ShiYan</id>
		<title>GeeklogWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://gwiki3.thatlinuxbox.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ShiYan"/>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/Special:Contributions/ShiYan"/>
		<updated>2026-04-05T15:33:04Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=MVC_Introduction&amp;diff=1284</id>
		<title>MVC Introduction</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=MVC_Introduction&amp;diff=1284"/>
				<updated>2005-05-19T08:02:36Z</updated>
		
		<summary type="html">&lt;p&gt;ShiYan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The model-view-controller, commonly referred to as MVC, is an industry standard solution to a long time problem in software.  For years, software architects have been trying to find ways to cleanly separate the user interface from the business logic from the data access details.  MVC provides a theorhetically simple solution to this problem.  The MVC pattern was originally developed in Smalltalk and was made wildly popular by the Java community.  I will not be able to give the background of MVC the in-depth converage it deserves so please, take the time to [http://www.google.com/search?q=model-view-controller Search on MVC].  FWIW, I did put a little background on MVC in the [http://cvs.geeklog.net/co.php/MVCnPHP/README.txt MVCnPHP package in CVS].&lt;br /&gt;
&lt;br /&gt;
Before continuing on, be sure you understand what MVC is.  I'll demonstrate the details of how MVCnPHP through the sample application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.shneon.com 霓虹灯]&lt;br /&gt;
[http://www.junyuan.com.cn 制作网页]&lt;br /&gt;
[http://www.junyuan.com.cn/cnstrct 建站]&lt;br /&gt;
[http://www.junyuan.com.cn/design 网页设计]&lt;br /&gt;
[http://www.junyuan.com.cn/page 网页制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site 网站制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site_design 网站设计]&lt;br /&gt;
[http://www.junyuan.com.cn/site_con 网站建设]&lt;br /&gt;
[http://www.junyuan.com.cn/web 企业上网]&lt;br /&gt;
[http://www.junyuan.com.cn/con_site 建设网站]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_pg 设计网页]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_site 制作网站]&lt;br /&gt;
[http://www.junyuan.com.cn/net 网络公司]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_site 设计网站]&lt;br /&gt;
[http://www.junyuan.com.cn/com_con 企业建站]&lt;br /&gt;
[http://www.junyuan.com.cn/ebiz 电子商务]&lt;br /&gt;
[http://www.junyuan.com.cn/database 数据库开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_dtbs 开发数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/program 程序开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_prgrm 开发程序]&lt;br /&gt;
[http://www.junyuan.com.cn/data 数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/e_mail 企业邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/e_email 企业电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/email 电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/mailbox 邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_mk flash制作]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_dsgn flash设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_dsgn 动画设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_mk 动画制作]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_ani 制作动画]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_ani 设计动画]&lt;br /&gt;
[http://www.junyuan.com.cn/ecard 多媒体电子名片]&lt;br /&gt;
[http://www.junyuan.com.cn/cdrom 多媒体设计]&lt;/div&gt;</summary>
		<author><name>ShiYan</name></author>	</entry>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=Introduction_to_the_Geeklog_2_FrameworkG2&amp;diff=1283</id>
		<title>Introduction to the Geeklog 2 FrameworkG2</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Introduction_to_the_Geeklog_2_FrameworkG2&amp;diff=1283"/>
				<updated>2005-05-19T08:01:28Z</updated>
		
		<summary type="html">&lt;p&gt;ShiYan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It will be worth your while to download and install the [http://www.geeklog.net/filemgmt/visit.php?lid=557 Sample Contact Manager Application]as it is a working example that illustrates the use of the Geeklog 2 framework.  Installation should be fairly trivial as I have included all necessary PEAR libraries in the tarball (hence the unusually large footprint for such a small appliction).  To install, create a database called PHPARCH and import the sql/create.sql.  Be sure you have MySQL 4.1.x and that it supports the use of INNODB (it will work without it but transactions are supported by the framework).  From there, edit the config.php.  The comments in that file should explain everything just fine.  Please email me at tony AT geeklog DOT net if you have any trouble getting the application installed.&lt;br /&gt;
&lt;br /&gt;
From this point, I'm assuming that you have the sample application installed.  From the login screen use tbibbs as the username (the password doesn't matter) and submit the page. That should take you to a listing of two contacts. If you have gotten that far with no errors then you are ready to proceed.&lt;br /&gt;
&lt;br /&gt;
Here are the things you will learn about in this introduction:&lt;br /&gt;
#[http://www.tonybibbs.com/index.php?topic=MVCnPHP MVCnPHP]&lt;br /&gt;
##[[MVC Introduction|Introduction to the Model-View-Controller design pattern]]&lt;br /&gt;
##[[Template Engines|A Note About Template Engines]]&lt;br /&gt;
##[[A Simple View|A Simple View]]&lt;br /&gt;
##[[Commands|Commands]]&lt;br /&gt;
##[[Introduction to Models|Introduction to Models]]&lt;br /&gt;
##[[The MVCnPHP Controller|The MVCnPHP Controller]]&lt;br /&gt;
#[http://propel.phpdb.org/trac/ Propel]&lt;br /&gt;
##[[Introduction to Object Relational Mapping (ORM) Tools|Introduction to Object Relational Mapping (ORM) Tools]]&lt;br /&gt;
##[[Building the Propel Schema|Building the Propel Schema]]&lt;br /&gt;
##[[Building the Model Objects|Building the Model Objects]]&lt;br /&gt;
#[[The Propel Data Access Object|The Propel Data Access Object]]&lt;br /&gt;
##[[Retrieving Propel Objects|Retrieving Propel Objects]]&lt;br /&gt;
##[[Saving (Persisting) Propel Objects|Saving (Persisting) Propel Objects]]&lt;br /&gt;
##[[Deleting Propel Objects|Deleting Propel Objects]]&lt;br /&gt;
##[[Customized Queries using Named Queries Concept|Customized Queries using Named Queries Concept]]&lt;br /&gt;
&lt;br /&gt;
[http://www.shneon.com 霓虹灯]&lt;br /&gt;
[http://www.junyuan.com.cn 制作网页]&lt;br /&gt;
[http://www.junyuan.com.cn/cnstrct 建站]&lt;br /&gt;
[http://www.junyuan.com.cn/design 网页设计]&lt;br /&gt;
[http://www.junyuan.com.cn/page 网页制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site 网站制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site_design 网站设计]&lt;br /&gt;
[http://www.junyuan.com.cn/site_con 网站建设]&lt;br /&gt;
[http://www.junyuan.com.cn/web 企业上网]&lt;br /&gt;
[http://www.junyuan.com.cn/con_site 建设网站]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_pg 设计网页]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_site 制作网站]&lt;br /&gt;
[http://www.junyuan.com.cn/net 网络公司]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_site 设计网站]&lt;br /&gt;
[http://www.junyuan.com.cn/com_con 企业建站]&lt;br /&gt;
[http://www.junyuan.com.cn/ebiz 电子商务]&lt;br /&gt;
[http://www.junyuan.com.cn/database 数据库开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_dtbs 开发数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/program 程序开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_prgrm 开发程序]&lt;br /&gt;
[http://www.junyuan.com.cn/data 数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/e_mail 企业邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/e_email 企业电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/email 电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/mailbox 邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_mk flash制作]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_dsgn flash设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_dsgn 动画设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_mk 动画制作]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_ani 制作动画]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_ani 设计动画]&lt;br /&gt;
[http://www.junyuan.com.cn/ecard 多媒体电子名片]&lt;br /&gt;
[http://www.junyuan.com.cn/cdrom 多媒体设计]&lt;/div&gt;</summary>
		<author><name>ShiYan</name></author>	</entry>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=Prerequisites_for_DevelopersG2&amp;diff=1282</id>
		<title>Prerequisites for DevelopersG2</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Prerequisites_for_DevelopersG2&amp;diff=1282"/>
				<updated>2005-05-19T07:59:18Z</updated>
		
		<summary type="html">&lt;p&gt;ShiYan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;As we have already eluded, Geeklog 2 is a complete rewrite of Geeklog to overcome some design limitations in the 1.3.x codebase.  The underlying framework for Geeklog 2 will definitely take some ramp-up time and this section will guide you through that process.  Before you can begin, however, you must bring a few basic skills to the table (or be willing to learn them before proceeding).  To help the the Geeklog Development effort you must understand the following:&lt;br /&gt;
&lt;br /&gt;
#Basic Web Server Administration (Includes Apache and IIS)&lt;br /&gt;
#Experience with PHP5 Configuration and Installation&lt;br /&gt;
#Basic Knowledge of PHP5 Syntax&lt;br /&gt;
#Understanding of managing PEAR packages&lt;br /&gt;
#Object Oriented Programming&lt;br /&gt;
#Design Patterns&lt;br /&gt;
##Singleton&lt;br /&gt;
##Factory&lt;br /&gt;
##Model-View-Controller&lt;br /&gt;
##Observer&lt;br /&gt;
##Observable&lt;br /&gt;
#Learn the Geeklog 2 Framework Libraries&lt;br /&gt;
##MVCnPHP (Model-View-Controller library we are using)&lt;br /&gt;
##PEAR::HTML_Template_Flexy (The template engine)&lt;br /&gt;
##Propel - PHP-based object relational mapping tool&lt;br /&gt;
##Data Access Object&lt;br /&gt;
###Using the DAO&lt;br /&gt;
###Named Queries&lt;br /&gt;
&lt;br /&gt;
[http://www.shneon.com 霓虹灯]&lt;br /&gt;
[http://www.junyuan.com.cn 制作网页]&lt;br /&gt;
[http://www.junyuan.com.cn/cnstrct 建站]&lt;br /&gt;
[http://www.junyuan.com.cn/design 网页设计]&lt;br /&gt;
[http://www.junyuan.com.cn/page 网页制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site 网站制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site_design 网站设计]&lt;br /&gt;
[http://www.junyuan.com.cn/site_con 网站建设]&lt;br /&gt;
[http://www.junyuan.com.cn/web 企业上网]&lt;br /&gt;
[http://www.junyuan.com.cn/con_site 建设网站]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_pg 设计网页]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_site 制作网站]&lt;br /&gt;
[http://www.junyuan.com.cn/net 网络公司]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_site 设计网站]&lt;br /&gt;
[http://www.junyuan.com.cn/com_con 企业建站]&lt;br /&gt;
[http://www.junyuan.com.cn/ebiz 电子商务]&lt;br /&gt;
[http://www.junyuan.com.cn/database 数据库开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_dtbs 开发数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/program 程序开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_prgrm 开发程序]&lt;br /&gt;
[http://www.junyuan.com.cn/data 数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/e_mail 企业邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/e_email 企业电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/email 电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/mailbox 邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_mk flash制作]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_dsgn flash设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_dsgn 动画设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_mk 动画制作]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_ani 制作动画]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_ani 设计动画]&lt;br /&gt;
[http://www.junyuan.com.cn/ecard 多媒体电子名片]&lt;br /&gt;
[http://www.junyuan.com.cn/cdrom 多媒体设计]&lt;/div&gt;</summary>
		<author><name>ShiYan</name></author>	</entry>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=Geeklog%27s_way_of_doing_things&amp;diff=2715</id>
		<title>Geeklog's way of doing things</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Geeklog%27s_way_of_doing_things&amp;diff=2715"/>
				<updated>2005-05-19T07:57:28Z</updated>
		
		<summary type="html">&lt;p&gt;ShiYan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of Geeklog's php files are pure php. PHP allows you to use php as a scripting language imbedded in html files but this is not how Geeklog does it. All of Geeklog's php files must have &amp;lt;?php as the first five characters and end with ?&amp;gt;. Failure to structure your Geeklog files this way will cause session and header errors. Geeklog attempts as much as possible to have only php code in the php files. Two of the conventions used in Geeklog to accomplish this are the use of templates and language files.&lt;br /&gt;
&lt;br /&gt;
Time will be well spent by the Geeklog plugin or block developer to become familiar with several Geeklog libraries. The following section outlines the more important or frequently used libraries, functions and standards. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== lib-common.php: ==&lt;br /&gt;
&lt;br /&gt;
The Geeklog plugin or block developer should have a good understanding of lib-common.php which contains most of the display routines as well as some other general purpose routines. All of the Geeklog display routines return html. They do not contain echos or prints themselves. The way the Geeklog system is designed; you usually put your code between Geeklog display routines. For example: code to display a page would look like this: &lt;br /&gt;
&lt;br /&gt;
$display  = COM_siteHeader();&amp;lt;br&amp;gt;&lt;br /&gt;
$display .= COM_startBlock(&amp;quot;Title of Your Block&amp;quot;);&amp;lt;br&amp;gt;&lt;br /&gt;
$display .= &amp;quot;Some words&amp;quot;;&amp;lt;br&amp;gt;&lt;br /&gt;
$display .= somefunction();&amp;lt;br&amp;gt;&lt;br /&gt;
$display .= COM_endBlock;&amp;lt;br&amp;gt;&lt;br /&gt;
$display .= COM_siteFooter(true);&amp;lt;br&amp;gt;&lt;br /&gt;
echo $display;&lt;br /&gt;
&lt;br /&gt;
A summary of commonly used Geeklog functions are described below but reference the attached lib-common.php documentation for further examples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== lib-security.php: ==&lt;br /&gt;
&lt;br /&gt;
The lib-security.php file contains the interface routines to the security system used in Geeklog. See the attached lib-security.php documentation. There are several SEC type functions that you may want to use in your projects. The table Commonly Used Geeklog Functions at the end of this section defines a couple of the more commonly used functions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== lib-database.php: ==&lt;br /&gt;
&lt;br /&gt;
All database access should take place through the database abstraction in lib-database.php and table names should be accessed through the $_TABLES array. The table definitions in this array will then include whatever table prefix this site is using.  You should ensure that your plugin or block uses the $_TABLES['mytable'] for all Database access related functions.&lt;br /&gt;
*Block developers and site admins installing the block need to edit the lib-database.php program and add the new $_TABLES entries for your block tables. Ensure you follow the same standard by using the $_DB_table_prefix. &lt;br /&gt;
*Plugin developers need to define their tables in the plugin config.php file. You have the ability to use the $_TABLES array or use your own plugin specific array to maintain the table definitions. It's recommend that your arrays use a name such as _XX_TABLES, where XX are two letters to describe your plugin. Once the plugin is installed and enabled, the tables defined in the config.php for the plugin are automatically known as globals.&lt;br /&gt;
&lt;br /&gt;
== lib-plugins.php: ==&lt;br /&gt;
&lt;br /&gt;
This library contains all the code used to interface your plugin or block to Geeklog. You will not call any code from here directly. The functions in this file are called by the Geeklog main programs as they are used to call all plugins and are used to resolve the plugin name and check if your plugin has a particular function. You will usually only have to look at this file to understand some nuance of the implementation. See the documentation for functions.inc and the original plugin documentation for further help. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== How your Plug-in or Block Interacts with Geeklog: ==&lt;br /&gt;
&lt;br /&gt;
The program lib-common.php is the key to all interaction with Geeklog. It includes Geeklog's config.php and the rest of the Geeklog code libraries.&lt;br /&gt;
*At the top of lib-common.php is an include of lib-custom.php. This is where you place all your block functions. They are then included when the site index.php is called. &lt;br /&gt;
*At the very end of lib-common.php is a check for all enabled plugins. A plugin is registered with Geeklog when it has a record in the plugins table and the field pi_enabled is true. For all registered and enabled plugins, the code in lib-common.php will include the functions.inc file for each plugin. This is why the naming convention and location for each plugin file is strictly defined. All code libraries or configuration files your plugin needs should be included in your functions.inc. Since the plugins config.php is now also included this way - via the include in functions.inc - the variables in your plugin config.php become global and can be referenced in your plugin functions.&lt;br /&gt;
&lt;br /&gt;
== Common Global Variables ==&lt;br /&gt;
&lt;br /&gt;
There are a few commonly used globals within Geeklog that you will want to use and reference. The following table outlines the more frequently used ones and its recommended that these be used instead of hard coding paths and table names  in your links or project code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse: collapse&amp;quot; bordercolor=&amp;quot;#111111&amp;quot; width=&amp;quot;75%&amp;quot; id=&amp;quot;AutoNumber2&amp;quot; height=&amp;quot;72&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;27%&amp;quot; bgcolor=&amp;quot;#000000&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font color=&amp;quot;#FFFFFF&amp;quot; size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;Variable&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; bgcolor=&amp;quot;#000000&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font color=&amp;quot;#FFFFFF&amp;quot; size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp; Description&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;27%&amp;quot; height=&amp;quot;17&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;$_CONF['path_html']&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;17&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Fully qualified path to your &lt;br /&gt;
    sites public_htmk path&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;27%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;$_CONF['site_url']&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Full URL to your sites &lt;br /&gt;
    public_html directory&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;27%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;$_CONF['site_admin_url']&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Full URL to your sites admin &lt;br /&gt;
    directory&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;27%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;$_USER['uid']&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Current user ID. A uid of 1 is an &lt;br /&gt;
    anonymous user&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;27%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;$_TABLES['tablename']&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;A array of geeklog tables with &lt;br /&gt;
    the site prefix defined.&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Commonly used Geeklog functions ==&lt;br /&gt;
&lt;br /&gt;
The following is a list of commonly used Geeklog functions that as developers we use and recommend you become more familiar with and use in your development projects. You will find example usage of these functions throughout the Geeklog code. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; style=&amp;quot;border-collapse: collapse&amp;quot; bordercolor=&amp;quot;#111111&amp;quot; width=&amp;quot;100%&amp;quot; id=&amp;quot;AutoNumber1&amp;quot; height=&amp;quot;197&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; bgcolor=&amp;quot;#000000&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font color=&amp;quot;#FFFFFF&amp;quot; size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;Function Name&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; bgcolor=&amp;quot;#000000&amp;quot; height=&amp;quot;18&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font color=&amp;quot;#FFFFFF&amp;quot; size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; Description&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;COM_siteHeader&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Display the main site header and &lt;br /&gt;
    optionally if 'none' is passed &amp;lt;b&amp;gt;do not &amp;lt;/b&amp;gt;display the left blocks&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;COM_siteFooter&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Display the main site footer and &lt;br /&gt;
    optionally if 'true' is passed display the right blocks&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;32&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;COM_startBlock&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;32&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Formats the block title using the &lt;br /&gt;
    selected theme - pass the title, helpfile if any and optional block theme to &lt;br /&gt;
    apply if you do not want to use default&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;COM_endBlock&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Formats the block footer using &lt;br /&gt;
    the selected theme or the optional block theme if you do not want to use &lt;br /&gt;
    default&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;12&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;COM_errorLOG&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;12&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Use to format an error message or &lt;br /&gt;
    use for debugging - view output in &amp;amp;lt;geeklog_dir&amp;amp;gt;/logs/error.log&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;14&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;DB_query&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;14&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Execute a formatted SQL query and &lt;br /&gt;
    return the record set to an array of records (which is also an array)&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;DB_fetchArray&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Retrieve a record as an array &lt;br /&gt;
    from the returned record set - which DB_query returned.&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;DB_numROWS&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Returns the number of records &lt;br /&gt;
    retrieved by the DB_query result&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;DB_getItem&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;16&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Retrieve one record as an array. &lt;br /&gt;
    Pass a formatted SQL stmt with WHERE clause to retrieve one record&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;COM_checkHTML&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Use to strip out $, &amp;amp;lt;, &amp;amp;gt; , [code] &lt;br /&gt;
    and replace with the HTML codes&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;COM_checkWords&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Use to check passed text for any &lt;br /&gt;
    HTML tags that are not allowed as per the site config.php setting&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;SEC_inGroup&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Used to check if user has passed &lt;br /&gt;
    group rights. Example: SEC_inGroup('Root') - returns true if user is&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;13%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;&amp;amp;nbsp;SEC_hasRights&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td width=&amp;quot;73%&amp;quot; height=&amp;quot;15&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;Used to check if user has access &lt;br /&gt;
    right (feature). Example: SEC_hasRights('myplugin.edit')&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Plugin_Developers_Handbook]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.shneon.com 霓虹灯]&lt;br /&gt;
[http://www.junyuan.com.cn 制作网页]&lt;br /&gt;
[http://www.junyuan.com.cn/cnstrct 建站]&lt;br /&gt;
[http://www.junyuan.com.cn/design 网页设计]&lt;br /&gt;
[http://www.junyuan.com.cn/page 网页制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site 网站制作]&lt;br /&gt;
[http://www.junyuan.com.cn/site_design 网站设计]&lt;br /&gt;
[http://www.junyuan.com.cn/site_con 网站建设]&lt;br /&gt;
[http://www.junyuan.com.cn/web 企业上网]&lt;br /&gt;
[http://www.junyuan.com.cn/con_site 建设网站]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_pg 设计网页]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_site 制作网站]&lt;br /&gt;
[http://www.junyuan.com.cn/net 网络公司]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_site 设计网站]&lt;br /&gt;
[http://www.junyuan.com.cn/com_con 企业建站]&lt;br /&gt;
[http://www.junyuan.com.cn/ebiz 电子商务]&lt;br /&gt;
[http://www.junyuan.com.cn/database 数据库开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_dtbs 开发数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/program 程序开发]&lt;br /&gt;
[http://www.junyuan.com.cn/dvlp_prgrm 开发程序]&lt;br /&gt;
[http://www.junyuan.com.cn/data 数据库]&lt;br /&gt;
[http://www.junyuan.com.cn/e_mail 企业邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/e_email 企业电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/email 电子信箱]&lt;br /&gt;
[http://www.junyuan.com.cn/mailbox 邮局]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_mk flash制作]&lt;br /&gt;
[http://www.junyuan.com.cn/flash_dsgn flash设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_dsgn 动画设计]&lt;br /&gt;
[http://www.junyuan.com.cn/ani_mk 动画制作]&lt;br /&gt;
[http://www.junyuan.com.cn/mk_ani 制作动画]&lt;br /&gt;
[http://www.junyuan.com.cn/dsgn_ani 设计动画]&lt;br /&gt;
[http://www.junyuan.com.cn/ecard 多媒体电子名片]&lt;br /&gt;
[http://www.junyuan.com.cn/cdrom 多媒体设计]&lt;/div&gt;</summary>
		<author><name>ShiYan</name></author>	</entry>

	</feed>