From 3c56284f7fe1926f6bf6ebd97ec72805d94df1e4 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Mon, 29 Jan 2018 16:04:13 -0500 Subject: Import existing bouncer.g.o into git --- .gitignore | 2 + README | 69 ++ docs/blank.html | 13 + docs/classtrees_mirror.html | 20 + docs/elementindex.html | 1193 ++++++++++++++++++++ docs/elementindex_mirror.html | 1190 +++++++++++++++++++ docs/errors.html | 91 ++ docs/index.html | 24 + docs/li_mirror.html | 231 ++++ docs/media/banner.css | 32 + docs/media/stylesheet.css | 144 +++ docs/mirror/_php_cfg_admin_init_php.html | 89 ++ docs/mirror/_php_index_php.html | 75 ++ docs/mirror/admin/_php_admin_index_php.html | 145 +++ docs/mirror/admin/_php_admin_locations_php.html | 145 +++ docs/mirror/admin/_php_admin_login_php.html | 103 ++ docs/mirror/admin/_php_admin_logout_php.html | 75 ++ docs/mirror/admin/_php_admin_mstats_php.html | 89 ++ docs/mirror/admin/_php_admin_os_php.html | 145 +++ docs/mirror/admin/_php_admin_products_php.html | 145 +++ docs/mirror/admin/_php_admin_pstats_php.html | 89 ++ docs/mirror/admin/_php_admin_regions_php.html | 145 +++ docs/mirror/admin/_php_admin_users_php.html | 145 +++ docs/mirror/cfg/_php_cfg_admin_init_php.html | 89 ++ docs/mirror/cfg/_php_cfg_config-dist_php.html | 201 ++++ docs/mirror/cfg/_php_cfg_init_php.html | 117 ++ docs/mirror/forms/_php_inc_forms_location_php.html | 35 + docs/mirror/forms/_php_inc_forms_mirror_php.html | 35 + docs/mirror/forms/_php_inc_forms_os_php.html | 35 + docs/mirror/forms/_php_inc_forms_product_php.html | 35 + docs/mirror/forms/_php_inc_forms_region_php.html | 35 + docs/mirror/forms/_php_inc_forms_user_php.html | 35 + docs/mirror/inc/_php_inc_admin_nav_php.html | 35 + docs/mirror/inc/_php_inc_footer_php.html | 35 + docs/mirror/inc/_php_inc_header_php.html | 61 + docs/mirror/lib/_php_lib_auth_php.html | 150 +++ docs/mirror/lib/_php_lib_db_php.html | 527 +++++++++ docs/mirror/lib/_php_lib_forms_php.html | 942 ++++++++++++++++ docs/mirror/lib/_php_lib_geo_php.html | 204 ++++ docs/mirror/lib/_php_lib_list_php.html | 362 ++++++ docs/mirror/lib/_php_lib_mirror_php.html | 1112 ++++++++++++++++++ docs/mirror/lib/_php_lib_util_php.html | 369 ++++++ docs/mirror/pub/_php_index_php.html | 75 ++ docs/packages.html | 30 + docs/ric_README.html | 88 ++ docs/todolist.html | 25 + php/admin/index.php | 111 ++ php/admin/locations.php | 100 ++ php/admin/login.php | 42 + php/admin/logout.php | 12 + php/admin/lstats.php | 59 + php/admin/mirror-list.php | 74 ++ php/admin/mstats.php | 32 + php/admin/os.php | 100 ++ php/admin/products.php | 101 ++ php/admin/pstats.php | 29 + php/admin/regions.php | 101 ++ php/admin/users.php | 104 ++ php/cfg/admin_init.php | 15 + php/cfg/config-dist.php | 18 + php/cfg/init.php | 18 + php/css/print.css | 0 php/css/screen.css | 84 ++ php/images/gridtest.gif | Bin 0 -> 3199 bytes php/images/gtop-www.jpg | Bin 0 -> 4551 bytes php/img/down.gif | Bin 0 -> 57 bytes php/img/up.gif | Bin 0 -> 57 bytes php/inc/admin_nav.php | 27 + php/inc/footer.php | 24 + php/inc/forms/location.php | 23 + php/inc/forms/mirror.php | 27 + php/inc/forms/os.php | 16 + php/inc/forms/product.php | 16 + php/inc/forms/region.php | 16 + php/inc/forms/user.php | 37 + php/inc/header.php | 55 + php/inc/nav.php | 0 php/index-list.php | 83 ++ php/index.php | 75 ++ php/index.php.orig | 79 ++ php/lib/auth.php | 75 ++ php/lib/csv.php | 216 ++++ php/lib/db.php | 298 +++++ php/lib/db.php.orig | 306 +++++ php/lib/forms.php | 659 +++++++++++ php/lib/geo.php | 69 ++ php/lib/list.php | 391 +++++++ php/lib/mirror.php | 531 +++++++++ php/lib/util.php | 322 ++++++ php/mozilla.js | 22 + php/rss/download-counts.php | 55 + 91 files changed, 13453 insertions(+) create mode 100644 .gitignore create mode 100644 README create mode 100644 docs/blank.html create mode 100644 docs/classtrees_mirror.html create mode 100644 docs/elementindex.html create mode 100644 docs/elementindex_mirror.html create mode 100644 docs/errors.html create mode 100644 docs/index.html create mode 100644 docs/li_mirror.html create mode 100644 docs/media/banner.css create mode 100644 docs/media/stylesheet.css create mode 100644 docs/mirror/_php_cfg_admin_init_php.html create mode 100644 docs/mirror/_php_index_php.html create mode 100644 docs/mirror/admin/_php_admin_index_php.html create mode 100644 docs/mirror/admin/_php_admin_locations_php.html create mode 100644 docs/mirror/admin/_php_admin_login_php.html create mode 100644 docs/mirror/admin/_php_admin_logout_php.html create mode 100644 docs/mirror/admin/_php_admin_mstats_php.html create mode 100644 docs/mirror/admin/_php_admin_os_php.html create mode 100644 docs/mirror/admin/_php_admin_products_php.html create mode 100644 docs/mirror/admin/_php_admin_pstats_php.html create mode 100644 docs/mirror/admin/_php_admin_regions_php.html create mode 100644 docs/mirror/admin/_php_admin_users_php.html create mode 100644 docs/mirror/cfg/_php_cfg_admin_init_php.html create mode 100644 docs/mirror/cfg/_php_cfg_config-dist_php.html create mode 100644 docs/mirror/cfg/_php_cfg_init_php.html create mode 100644 docs/mirror/forms/_php_inc_forms_location_php.html create mode 100644 docs/mirror/forms/_php_inc_forms_mirror_php.html create mode 100644 docs/mirror/forms/_php_inc_forms_os_php.html create mode 100644 docs/mirror/forms/_php_inc_forms_product_php.html create mode 100644 docs/mirror/forms/_php_inc_forms_region_php.html create mode 100644 docs/mirror/forms/_php_inc_forms_user_php.html create mode 100644 docs/mirror/inc/_php_inc_admin_nav_php.html create mode 100644 docs/mirror/inc/_php_inc_footer_php.html create mode 100644 docs/mirror/inc/_php_inc_header_php.html create mode 100644 docs/mirror/lib/_php_lib_auth_php.html create mode 100644 docs/mirror/lib/_php_lib_db_php.html create mode 100644 docs/mirror/lib/_php_lib_forms_php.html create mode 100644 docs/mirror/lib/_php_lib_geo_php.html create mode 100644 docs/mirror/lib/_php_lib_list_php.html create mode 100644 docs/mirror/lib/_php_lib_mirror_php.html create mode 100644 docs/mirror/lib/_php_lib_util_php.html create mode 100644 docs/mirror/pub/_php_index_php.html create mode 100644 docs/packages.html create mode 100644 docs/ric_README.html create mode 100644 docs/todolist.html create mode 100644 php/admin/index.php create mode 100644 php/admin/locations.php create mode 100644 php/admin/login.php create mode 100644 php/admin/logout.php create mode 100644 php/admin/lstats.php create mode 100644 php/admin/mirror-list.php create mode 100644 php/admin/mstats.php create mode 100644 php/admin/os.php create mode 100644 php/admin/products.php create mode 100644 php/admin/pstats.php create mode 100644 php/admin/regions.php create mode 100644 php/admin/users.php create mode 100644 php/cfg/admin_init.php create mode 100644 php/cfg/config-dist.php create mode 100644 php/cfg/init.php create mode 100644 php/css/print.css create mode 100644 php/css/screen.css create mode 100644 php/images/gridtest.gif create mode 100644 php/images/gtop-www.jpg create mode 100644 php/img/down.gif create mode 100644 php/img/up.gif create mode 100644 php/inc/admin_nav.php create mode 100644 php/inc/footer.php create mode 100644 php/inc/forms/location.php create mode 100644 php/inc/forms/mirror.php create mode 100644 php/inc/forms/os.php create mode 100644 php/inc/forms/product.php create mode 100644 php/inc/forms/region.php create mode 100644 php/inc/forms/user.php create mode 100644 php/inc/header.php create mode 100644 php/inc/nav.php create mode 100644 php/index-list.php create mode 100644 php/index.php create mode 100644 php/index.php.orig create mode 100644 php/lib/auth.php create mode 100644 php/lib/csv.php create mode 100644 php/lib/db.php create mode 100644 php/lib/db.php.orig create mode 100644 php/lib/forms.php create mode 100644 php/lib/geo.php create mode 100644 php/lib/list.php create mode 100644 php/lib/mirror.php create mode 100644 php/lib/util.php create mode 100644 php/mozilla.js create mode 100644 php/rss/download-counts.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a7b40c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +php/cfg/config.php +php/cfg/config.php.orig diff --git a/README b/README new file mode 100644 index 0000000..ec400f0 --- /dev/null +++ b/README @@ -0,0 +1,69 @@ +----------------------- +Mirror Project +Open Source Lab +Oregon State University +----------------------- +*Coding Standards + + http://pear.php.net/manual/en/standards.php + +*PHP Documentation + + PHP documentation generated by PHP Documentor can be found in /docs. View index.html using file://. + +*Configuration + + Application configuration is done using define() calls. The configuration script is located in: + cfg/config-dist.php + + Copy this config file to cfg/config.php and the init script (cfg/init.php) will process it as intended. + + !! DO NOT store password information in config-dist.php and checkin !! + +*Apache + + Don't forget to set up raw logs: + ErrorLog "|/usr/bin/cronolog /var/www/download/logs/%Y%m%d/error.log" + CustomLog "|/usr/bin/cronolog /var/www/download/logs/%Y%m%d/access.log" + + DB-based logging is configurable by enabling the LOGGING constant in config.php. + +*DB + + DB information is stored in: + cfg/mirror.sql + + DB connections are persistent (msyql_pconnect()). For more info view the PHP manual: + http://php.oregonstate.edu/mysql_pconnect + http://php.oregonstate.edu/manual/en/features.persistent-connections.php + + The DB server should optimally NOT be localhost (save cycles). + +*Questions + + Send questions and rants to + +*Output Buffering + + This application uses output buffering. + + ob_start() is called in inc/header.php. + ob_end_flush() is called in inc/footer.php. + + No browser output (echo, print, etc.) should _ever_ happen outside of these boundaries. + +*Permissions + + The project directory should be readable by the web server. + +*Benchmarking + + !! ALL benchmark referencing /index.php should be done using ?print=true. !! + !! This disables the actual redirects and avoids spamming mirrors. !! + +*Developers + + Scott Kveton + Mike Morgan + Alex Polvi + Danny Robert diff --git a/docs/blank.html b/docs/blank.html new file mode 100644 index 0000000..f83c9a7 --- /dev/null +++ b/docs/blank.html @@ -0,0 +1,13 @@ + + + mirror + + + + +

mirror

+Welcome to default!
+
+This documentation was generated by phpDocumentor v1.3.0RC3
+ + \ No newline at end of file diff --git a/docs/classtrees_mirror.html b/docs/classtrees_mirror.html new file mode 100644 index 0000000..19a95cb --- /dev/null +++ b/docs/classtrees_mirror.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + +

+ +

+

+ Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3 +

+ + \ No newline at end of file diff --git a/docs/elementindex.html b/docs/elementindex.html new file mode 100644 index 0000000..9b40eba --- /dev/null +++ b/docs/elementindex.html @@ -0,0 +1,1193 @@ + + + + + + + + + + + +

Full index

+

Package indexes

+ +
+
+ a + c + d + e + f + g + h + i + l + m + o + p + r + s + u + w +
+ + +
+
a
+ +
+
+
+
+ array_days +
+
+
array_days() in forms.php
+
Get calendar days in array format.
+
+
+ array_hours +
+
+
array_hours() in forms.php
+
Get calendar hours in array format.
+
+
+ array_minutes +
+
+
array_minutes() in forms.php
+
Get array of minutes.
+
+
+ array_months +
+
+
array_months() in forms.php
+
Get calendar months in array format.
+
+
+ array_order_by +
+
+
array_order_by() in util.php
+
Sort a two dimensional array based on a 'column' key
+
+
+ array_states +
+
+
array_states() in forms.php
+
Get array of states.
+
+
+ array_years +
+
+
array_years() in forms.php
+
Get calendar years in array format.
+
+
+ auth_create_session +
+
+ +
Start a valid session.
+
+
+ auth_is_valid_session +
+
+ +
Check admin session against sessions table in database.
+
+
+ auth_logout +
+
+
auth_logout() in auth.php
+
Logout.
+
+
+ auth_mysql +
+
+
auth_mysql() in auth.php
+
Authentication a user.
+
+
+ admin_init.php +
+
+
admin_init.php in admin_init.php
+
+
+ admin_nav.php +
+
+
admin_nav.php in admin_nav.php
+
+
+ auth.php +
+
+
auth.php in auth.php
+
+
+ +
+
c
+ +
+
+
+
+ clean_in +
+
+
clean_in() in forms.php
+
Cleans a string or an array of strings for DB input.
+
+
+ clean_out +
+
+
clean_out() in forms.php
+
Cleans a string or an array of strings for HTML presentation.
+
+
+ config-dist.php +
+
+
config-dist.php in config-dist.php
+
+
+ +
+
d
+ +
+
+
+
+ DBHOST +
+
+
DBHOST in config-dist.php
+
+
+ DBNAME +
+
+
DBNAME in config-dist.php
+
+
+ DBPASS +
+
+
DBPASS in config-dist.php
+
+
+ DBUSER +
+
+
DBUSER in config-dist.php
+
+
+ db_close +
+
+
db_close() in db.php
+
Close the db connection. If a dbh is not specified, assume the last opened link.
+
+
+ db_connect +
+
+
db_connect() in db.php
+
Connect to a MySQL database server.
+
+
+ db_fetch +
+
+
db_fetch() in db.php
+
Fetch a row as an array from a result.
+
+
+ db_fieldnames +
+
+
db_fieldnames() in db.php
+
Get all of the fieldnames for the specified table.
+
+
+ db_get +
+
+
db_get() in db.php
+
Fetch an array based on a query.
+
+
+ db_get_one +
+
+
db_get_one() in db.php
+
Get one record.
+
+
+ db_get_to_options +
+
+
db_get_to_options() in forms.php
+
Take a db_get result and return an array of options.
+
+
+ db_insert_id +
+
+
db_insert_id() in db.php
+
Since PHP's mysql_insert_id() sometimes throws an error, this is the replacement
+
+
+ db_makeinsert +
+
+
db_makeinsert() in db.php
+
Create a MySQL INSERT statement based on $_POST array generated by form submission.
+
+
+ db_makereplace +
+
+ +
Create a MySQL REPLACE statement based on $_POST array generated by form submission.
+
+
+ db_makeupdate +
+
+
db_makeupdate() in db.php
+
Create a MySQL UPDATE statement based on $_POST array generated by form submission.
+
+
+ db_name_to_id +
+
+
db_name_to_id() in db.php
+
Get an ID based on name.
+
+
+ db_numrows +
+
+
db_numrows() in db.php
+
Determine number of rows in result.
+
+
+ db_query +
+
+
db_query() in db.php
+
Execute a MySQL query.
+
+
+ db_select +
+
+
db_select() in db.php
+
Select database.
+
+
+ db_toggle_bool +
+
+ +
Sets enum booleans to their opposite
+
+
+ debug_r +
+
+
debug_r() in util.php
+
Print out an varible enclosed by <pre> tags
+
+
+ db.php +
+
+
db.php in db.php
+
+
+ +
+
e
+ +
+
+
+
+ emptify_in_array +
+
+
emptify_in_array() in util.php
+
This recursive function empty values in an 'multi-dimensional' array.
+
+
+ +
+
f
+ +
+
+
+
+ FILEPATH +
+
+
FILEPATH in config-dist.php
+
+
+ FOOTER +
+
+
FOOTER in config-dist.php
+
+
+ form_array_fix_dates +
+
+ +
Fix dates for form display, or proper db entry
+
+
+ form_array_get_date +
+
+ +
Get put a date back together after a POST.
+
+
+ form_array_get_datetime +
+
+ +
Get put a datetime back together after a POST.
+
+
+ form_checkbox +
+
+
form_checkbox() in forms.php
+
Writes a checkbox input.
+
+
+ form_end +
+
+
form_end() in forms.php
+
Writes the ending form tag.
+
+
+ form_hidden +
+
+
form_hidden() in forms.php
+
Writes a hidden field.
+
+
+ form_label +
+
+
form_label() in forms.php
+
Writes a form input label.
+
+
+ form_password +
+
+
form_password() in forms.php
+
Writes a password input.
+
+
+ form_radio +
+
+
form_radio() in forms.php
+
Writes a radio input.
+
+
+ form_reset +
+
+
form_reset() in forms.php
+
Writes a reset input.
+
+
+ form_select +
+
+
form_select() in forms.php
+
Writes a select list with options.
+
+
+ form_start +
+
+
form_start() in forms.php
+
Writes the beginning form tag.
+
+
+ form_submit +
+
+
form_submit() in forms.php
+
Writes a submit input.
+
+
+ form_text +
+
+
form_text() in forms.php
+
Writes a text input.
+
+
+ form_textarea +
+
+
form_textarea() in forms.php
+
Writes a textarea
+
+
+ footer.php +
+
+
footer.php in footer.php
+
+
+ forms.php +
+
+
forms.php in forms.php
+
+
+ +
+
g
+ +
+
+
+
+ geo_get_coordinates +
+
+ +
Get longitude and latitude of an IP.
+
+
+ geo_get_country +
+
+ +
Get country of an IP.
+
+
+ geo_get_distance +
+
+ +
Calculate the distance between two geo points.
+
+
+ geo_get_record +
+
+
geo_get_record() in geo.php
+
Get complete record based on IP.
+
+
+ geo_query +
+
+
geo_query() in geo.php
+
Query NetGeo based on API and parse results.
+
+
+ get_order +
+
+
get_order() in list.php
+
Determine current sort order.
+
+
+ get_orderby +
+
+
get_orderby() in list.php
+
Determine whether or not list is currently sorted.
+
+
+ geo.php +
+
+
geo.php in geo.php
+
+
+ +
+
h
+ +
+
+
+
+ HEADER +
+
+
HEADER in config-dist.php
+
+
+ header.php +
+
+
header.php in header.php
+
+
+ +
+
i
+ +
+
+
+
+ INC +
+
+
INC in config-dist.php
+
+
+ is_email_address +
+
+
is_email_address() in forms.php
+
Validates email addresses
+
+
+ is_phone_number +
+
+
is_phone_number() in forms.php
+
Validates phone number
+
+
+ index.php +
+
+
index.php in index.php
+
+
+ init.php +
+
+
init.php in init.php
+
+
+ index.php +
+
+
index.php in index.php
+
+
+ +
+
l
+ +
+
+
+
+ LIB +
+
+
LIB in config-dist.php
+
+
+ list_edit_ids +
+
+
list_edit_ids() in list.php
+
Parses $_POST for ids, shows edit forms for each id with populated data.
+
+
+ list_update_ids +
+
+
list_update_ids() in list.php
+
Process a submitted list_edit_ids form.
+
+
+ LOGGING +
+
+
LOGGING in config-dist.php
+
+
+ locations.php +
+
+
locations.php in locations.php
+
+
+ login.php +
+
+
login.php in login.php
+
+
+ logout.php +
+
+
logout.php in logout.php
+
+
+ location.php +
+
+
location.php in location.php
+
+
+ list.php +
+
+
list.php in list.php
+
+
+ +
+
m
+ +
+
+
+
+ microtime_float +
+
+
microtime_float() in util.php
+
determine float value of now
+
+
+ mirror_delete_location +
+
+ +
Delete a location.
+
+
+ mirror_delete_mirror +
+
+ +
Delete mirror.
+
+
+ mirror_delete_os +
+
+
mirror_delete_os() in mirror.php
+
Delete a os.
+
+
+ mirror_delete_product +
+
+ +
Delete a product.
+
+
+ mirror_delete_region +
+
+ +
Delete a region.
+
+
+ mirror_delete_user +
+
+
mirror_delete_user() in mirror.php
+
Delete a user.
+
+
+ mirror_get_locations +
+
+ +
Get locations.
+
+
+ mirror_get_mirrors +
+
+
mirror_get_mirrors() in mirror.php
+
Get list of mirrors.
+
+
+ mirror_get_mirrors_select +
+
+ +
Get an alpha-list of mirrors for select list.
+
+
+ mirror_get_mirror_stats +
+
+ +
Get mirror statistics.
+
+
+ mirror_get_one_location +
+
+ +
Get one location.
+
+
+ mirror_get_one_mirror +
+
+ +
Get one mirror record.
+
+
+ mirror_get_one_os +
+
+
mirror_get_one_os() in mirror.php
+
Get one os.
+
+
+ mirror_get_one_product +
+
+ +
Get one product.
+
+
+ mirror_get_one_region +
+
+ +
Get one region.
+
+
+ mirror_get_one_user +
+
+
mirror_get_one_user() in mirror.php
+
Get one user.
+
+
+ mirror_get_oss +
+
+
mirror_get_oss() in mirror.php
+
Get operating systems.
+
+
+ mirror_get_oss_select +
+
+ +
Get an alpha-list of operating systems for select list.
+
+
+ mirror_get_oss_select_priority +
+
+ +
Get an priority-list of operating systems for select list.
+
+
+ mirror_get_products +
+
+
mirror_get_products() in mirror.php
+
Get products.
+
+
+ mirror_get_products_select +
+
+ +
Get an alpha-list of products for select list.
+
+
+ mirror_get_products_select_priority +
+
+ +
Get an priority-list of operating systems for select list.
+
+
+ mirror_get_product_stats +
+
+ +
Get product statistics.
+
+
+ mirror_get_regions +
+
+
mirror_get_regions() in mirror.php
+
Get regions.
+
+
+ mirror_get_regions_select +
+
+ +
Get an alpha-list of regions for select list.
+
+
+ mirror_get_regions_select_priority +
+
+ +
Get an priority-list of regions for select list.
+
+
+ mirror_get_users +
+
+
mirror_get_users() in mirror.php
+
Get users.
+
+
+ mirror_insert_location +
+
+ +
Insert a new location.
+
+
+ mirror_insert_mirror +
+
+ +
Insert mirror.
+
+
+ mirror_insert_os +
+
+
mirror_insert_os() in mirror.php
+
Insert os.
+
+
+ mirror_insert_product +
+
+ +
Insert product.
+
+
+ mirror_insert_region +
+
+ +
Insert region.
+
+
+ mirror_insert_user +
+
+
mirror_insert_user() in mirror.php
+
Insert a new user.
+
+
+ mirror_toggle +
+
+
mirror_toggle() in mirror.php
+
Enable or disable a mirror.
+
+
+ mirror_update_location +
+
+ +
Update a location.
+
+
+ mirror_update_mirror +
+
+ +
Update mirror.
+
+
+ mirror_update_os +
+
+
mirror_update_os() in mirror.php
+
Update os.
+
+
+ mirror_update_product +
+
+ +
Update product.
+
+
+ mirror_update_region +
+
+ +
Update region.
+
+
+ mirror_update_user +
+
+
mirror_update_user() in mirror.php
+
Update a user.
+
+
+ mstats.php +
+
+
mstats.php in mstats.php
+
+
+ mirror.php +
+
+
mirror.php in mirror.php
+
+
+ mirror.php +
+
+
mirror.php in mirror.php
+
+
+ +
+
o
+ +
+
+
+
+ os.php +
+
+
os.php in os.php
+
+
+ os.php +
+
+
os.php in os.php
+
+
+ +
+
p
+ +
+
+
+
+ password_gen +
+
+
password_gen() in util.php
+
Generate a random string good for passwords
+
+
+ products.php +
+
+
products.php in products.php
+
+
+ pstats.php +
+
+
pstats.php in pstats.php
+
+
+ product.php +
+
+
product.php in product.php
+
+
+ +
+
r
+ +
+
+
+
+ regions.php +
+
+
regions.php in regions.php
+
+
+ region.php +
+
+
region.php in region.php
+
+
+ record_exists +
+
+
record_exists() in util.php
+
This function checks for the existence of a particular row in a particular table matching a value.
+
+
+ +
+
s
+ +
+
+
+
+ set_error +
+
+
set_error() in util.php
+
Add an error message to SESSION['errors'] array.
+
+
+ set_msg +
+
+
set_msg() in util.php
+
Add a message to SESSION['messages'] array.
+
+
+ show_error +
+
+
show_error() in util.php
+
Show errors messages.
+
+
+ show_headers +
+
+
show_headers() in list.php
+
Show table headers.
+
+
+ show_list +
+
+
show_list() in list.php
+
Show a list of values, for forms.
+
+
+ show_msg +
+
+
show_msg() in util.php
+
Show messages.
+
+
+ show_row +
+
+
show_row() in list.php
+
Show table data.
+
+
+ show_tabs +
+
+
show_tabs() in util.php
+
Show user tabs, based on an array.
+
+
+ +
+
u
+ +
+
+
+
+ users.php +
+
+
users.php in users.php
+
+
+ user.php +
+
+
user.php in user.php
+
+
+ util.php +
+
+
util.php in util.php
+
+
+ url_out +
+
+
url_out() in forms.php
+
Returns http:// and the string if the string does not begin with http://
+
+
+ +
+
w
+ +
+
+
+
+ WEBPATH +
+
+
WEBPATH in config-dist.php
+
+
+ +
+ a + c + d + e + f + g + h + i + l + m + o + p + r + s + u + w +
+ \ No newline at end of file diff --git a/docs/elementindex_mirror.html b/docs/elementindex_mirror.html new file mode 100644 index 0000000..c32689e --- /dev/null +++ b/docs/elementindex_mirror.html @@ -0,0 +1,1190 @@ + + + + + + + + + + + +

[mirror] element index

+All elements +
+
+ a + c + d + e + f + g + h + i + l + m + o + p + r + s + u + w +
+ + +
+
a
+ +
+
+
+
+ admin_init.php +
+
+
admin_init.php in admin_init.php
+
+
+ admin_nav.php +
+
+
admin_nav.php in admin_nav.php
+
+
+ array_days +
+
+
array_days() in forms.php
+
Get calendar days in array format.
+
+
+ array_hours +
+
+
array_hours() in forms.php
+
Get calendar hours in array format.
+
+
+ array_minutes +
+
+
array_minutes() in forms.php
+
Get array of minutes.
+
+
+ array_months +
+
+
array_months() in forms.php
+
Get calendar months in array format.
+
+
+ array_order_by +
+
+
array_order_by() in util.php
+
Sort a two dimensional array based on a 'column' key
+
+
+ array_states +
+
+
array_states() in forms.php
+
Get array of states.
+
+
+ array_years +
+
+
array_years() in forms.php
+
Get calendar years in array format.
+
+
+ auth_create_session +
+
+ +
Start a valid session.
+
+
+ auth_is_valid_session +
+
+ +
Check admin session against sessions table in database.
+
+
+ auth_logout +
+
+
auth_logout() in auth.php
+
Logout.
+
+
+ auth_mysql +
+
+
auth_mysql() in auth.php
+
Authentication a user.
+
+
+ auth.php +
+
+
auth.php in auth.php
+
+
+ +
+
c
+ +
+
+
+
+ config-dist.php +
+
+
config-dist.php in config-dist.php
+
+
+ clean_in +
+
+
clean_in() in forms.php
+
Cleans a string or an array of strings for DB input.
+
+
+ clean_out +
+
+
clean_out() in forms.php
+
Cleans a string or an array of strings for HTML presentation.
+
+
+ +
+
d
+ +
+
+
+
+ DBHOST +
+
+
DBHOST in config-dist.php
+
+
+ DBNAME +
+
+
DBNAME in config-dist.php
+
+
+ DBPASS +
+
+
DBPASS in config-dist.php
+
+
+ DBUSER +
+
+
DBUSER in config-dist.php
+
+
+ db_close +
+
+
db_close() in db.php
+
Close the db connection. If a dbh is not specified, assume the last opened link.
+
+
+ db_connect +
+
+
db_connect() in db.php
+
Connect to a MySQL database server.
+
+
+ db_fetch +
+
+
db_fetch() in db.php
+
Fetch a row as an array from a result.
+
+
+ db_fieldnames +
+
+
db_fieldnames() in db.php
+
Get all of the fieldnames for the specified table.
+
+
+ db_get +
+
+
db_get() in db.php
+
Fetch an array based on a query.
+
+
+ db_get_one +
+
+
db_get_one() in db.php
+
Get one record.
+
+
+ db_get_to_options +
+
+
db_get_to_options() in forms.php
+
Take a db_get result and return an array of options.
+
+
+ db_insert_id +
+
+
db_insert_id() in db.php
+
Since PHP's mysql_insert_id() sometimes throws an error, this is the replacement
+
+
+ db_makeinsert +
+
+
db_makeinsert() in db.php
+
Create a MySQL INSERT statement based on $_POST array generated by form submission.
+
+
+ db_makereplace +
+
+ +
Create a MySQL REPLACE statement based on $_POST array generated by form submission.
+
+
+ db_makeupdate +
+
+
db_makeupdate() in db.php
+
Create a MySQL UPDATE statement based on $_POST array generated by form submission.
+
+
+ db_name_to_id +
+
+
db_name_to_id() in db.php
+
Get an ID based on name.
+
+
+ db_numrows +
+
+
db_numrows() in db.php
+
Determine number of rows in result.
+
+
+ db_query +
+
+
db_query() in db.php
+
Execute a MySQL query.
+
+
+ db_select +
+
+
db_select() in db.php
+
Select database.
+
+
+ db_toggle_bool +
+
+ +
Sets enum booleans to their opposite
+
+
+ debug_r +
+
+
debug_r() in util.php
+
Print out an varible enclosed by <pre> tags
+
+
+ db.php +
+
+
db.php in db.php
+
+
+ +
+
e
+ +
+
+
+
+ emptify_in_array +
+
+
emptify_in_array() in util.php
+
This recursive function empty values in an 'multi-dimensional' array.
+
+
+ +
+
f
+ +
+
+
+
+ FILEPATH +
+
+
FILEPATH in config-dist.php
+
+
+ FOOTER +
+
+
FOOTER in config-dist.php
+
+
+ footer.php +
+
+
footer.php in footer.php
+
+
+ form_array_fix_dates +
+
+ +
Fix dates for form display, or proper db entry
+
+
+ form_array_get_date +
+
+ +
Get put a date back together after a POST.
+
+
+ form_array_get_datetime +
+
+ +
Get put a datetime back together after a POST.
+
+
+ form_checkbox +
+
+
form_checkbox() in forms.php
+
Writes a checkbox input.
+
+
+ form_end +
+
+
form_end() in forms.php
+
Writes the ending form tag.
+
+
+ form_hidden +
+
+
form_hidden() in forms.php
+
Writes a hidden field.
+
+
+ form_label +
+
+
form_label() in forms.php
+
Writes a form input label.
+
+
+ form_password +
+
+
form_password() in forms.php
+
Writes a password input.
+
+
+ form_radio +
+
+
form_radio() in forms.php
+
Writes a radio input.
+
+
+ form_reset +
+
+
form_reset() in forms.php
+
Writes a reset input.
+
+
+ form_select +
+
+
form_select() in forms.php
+
Writes a select list with options.
+
+
+ form_start +
+
+
form_start() in forms.php
+
Writes the beginning form tag.
+
+
+ form_submit +
+
+
form_submit() in forms.php
+
Writes a submit input.
+
+
+ form_text +
+
+
form_text() in forms.php
+
Writes a text input.
+
+
+ form_textarea +
+
+
form_textarea() in forms.php
+
Writes a textarea
+
+
+ forms.php +
+
+
forms.php in forms.php
+
+
+ +
+
g
+ +
+
+
+
+ geo_get_coordinates +
+
+ +
Get longitude and latitude of an IP.
+
+
+ geo_get_country +
+
+ +
Get country of an IP.
+
+
+ geo_get_distance +
+
+ +
Calculate the distance between two geo points.
+
+
+ geo_get_record +
+
+
geo_get_record() in geo.php
+
Get complete record based on IP.
+
+
+ geo_query +
+
+
geo_query() in geo.php
+
Query NetGeo based on API and parse results.
+
+
+ get_order +
+
+
get_order() in list.php
+
Determine current sort order.
+
+
+ get_orderby +
+
+
get_orderby() in list.php
+
Determine whether or not list is currently sorted.
+
+
+ geo.php +
+
+
geo.php in geo.php
+
+
+ +
+
h
+ +
+
+
+
+ HEADER +
+
+
HEADER in config-dist.php
+
+
+ header.php +
+
+
header.php in header.php
+
+
+ +
+
i
+ +
+
+
+
+ index.php +
+
+
index.php in index.php
+
+
+ INC +
+
+
INC in config-dist.php
+
+
+ init.php +
+
+
init.php in init.php
+
+
+ is_email_address +
+
+
is_email_address() in forms.php
+
Validates email addresses
+
+
+ is_phone_number +
+
+
is_phone_number() in forms.php
+
Validates phone number
+
+
+ index.php +
+
+
index.php in index.php
+
+
+ +
+
l
+ +
+
+
+
+ locations.php +
+
+
locations.php in locations.php
+
+
+ login.php +
+
+
login.php in login.php
+
+
+ logout.php +
+
+
logout.php in logout.php
+
+
+ LIB +
+
+
LIB in config-dist.php
+
+
+ LOGGING +
+
+
LOGGING in config-dist.php
+
+
+ location.php +
+
+
location.php in location.php
+
+
+ list_edit_ids +
+
+
list_edit_ids() in list.php
+
Parses $_POST for ids, shows edit forms for each id with populated data.
+
+
+ list_update_ids +
+
+
list_update_ids() in list.php
+
Process a submitted list_edit_ids form.
+
+
+ list.php +
+
+
list.php in list.php
+
+
+ +
+
m
+ +
+
+
+
+ mstats.php +
+
+
mstats.php in mstats.php
+
+
+ mirror.php +
+
+
mirror.php in mirror.php
+
+
+ microtime_float +
+
+
microtime_float() in util.php
+
determine float value of now
+
+
+ mirror_delete_location +
+
+ +
Delete a location.
+
+
+ mirror_delete_mirror +
+
+ +
Delete mirror.
+
+
+ mirror_delete_os +
+
+
mirror_delete_os() in mirror.php
+
Delete a os.
+
+
+ mirror_delete_product +
+
+ +
Delete a product.
+
+
+ mirror_delete_region +
+
+ +
Delete a region.
+
+
+ mirror_delete_user +
+
+
mirror_delete_user() in mirror.php
+
Delete a user.
+
+
+ mirror_get_locations +
+
+ +
Get locations.
+
+
+ mirror_get_mirrors +
+
+
mirror_get_mirrors() in mirror.php
+
Get list of mirrors.
+
+
+ mirror_get_mirrors_select +
+
+ +
Get an alpha-list of mirrors for select list.
+
+
+ mirror_get_mirror_stats +
+
+ +
Get mirror statistics.
+
+
+ mirror_get_one_location +
+
+ +
Get one location.
+
+
+ mirror_get_one_mirror +
+
+ +
Get one mirror record.
+
+
+ mirror_get_one_os +
+
+
mirror_get_one_os() in mirror.php
+
Get one os.
+
+
+ mirror_get_one_product +
+
+ +
Get one product.
+
+
+ mirror_get_one_region +
+
+ +
Get one region.
+
+
+ mirror_get_one_user +
+
+
mirror_get_one_user() in mirror.php
+
Get one user.
+
+
+ mirror_get_oss +
+
+
mirror_get_oss() in mirror.php
+
Get operating systems.
+
+
+ mirror_get_oss_select +
+
+ +
Get an alpha-list of operating systems for select list.
+
+
+ mirror_get_oss_select_priority +
+
+ +
Get an priority-list of operating systems for select list.
+
+
+ mirror_get_products +
+
+
mirror_get_products() in mirror.php
+
Get products.
+
+
+ mirror_get_products_select +
+
+ +
Get an alpha-list of products for select list.
+
+
+ mirror_get_products_select_priority +
+
+ +
Get an priority-list of operating systems for select list.
+
+
+ mirror_get_product_stats +
+
+ +
Get product statistics.
+
+
+ mirror_get_regions +
+
+
mirror_get_regions() in mirror.php
+
Get regions.
+
+
+ mirror_get_regions_select +
+
+ +
Get an alpha-list of regions for select list.
+
+
+ mirror_get_regions_select_priority +
+
+ +
Get an priority-list of regions for select list.
+
+
+ mirror_get_users +
+
+
mirror_get_users() in mirror.php
+
Get users.
+
+
+ mirror_insert_location +
+
+ +
Insert a new location.
+
+
+ mirror_insert_mirror +
+
+ +
Insert mirror.
+
+
+ mirror_insert_os +
+
+
mirror_insert_os() in mirror.php
+
Insert os.
+
+
+ mirror_insert_product +
+
+ +
Insert product.
+
+
+ mirror_insert_region +
+
+ +
Insert region.
+
+
+ mirror_insert_user +
+
+
mirror_insert_user() in mirror.php
+
Insert a new user.
+
+
+ mirror_toggle +
+
+
mirror_toggle() in mirror.php
+
Enable or disable a mirror.
+
+
+ mirror_update_location +
+
+ +
Update a location.
+
+
+ mirror_update_mirror +
+
+ +
Update mirror.
+
+
+ mirror_update_os +
+
+
mirror_update_os() in mirror.php
+
Update os.
+
+
+ mirror_update_product +
+
+ +
Update product.
+
+
+ mirror_update_region +
+
+ +
Update region.
+
+
+ mirror_update_user +
+
+
mirror_update_user() in mirror.php
+
Update a user.
+
+
+ mirror.php +
+
+
mirror.php in mirror.php
+
+
+ +
+
o
+ +
+
+
+
+ os.php +
+
+
os.php in os.php
+
+
+ os.php +
+
+
os.php in os.php
+
+
+ +
+
p
+ +
+
+
+
+ products.php +
+
+
products.php in products.php
+
+
+ pstats.php +
+
+
pstats.php in pstats.php
+
+
+ product.php +
+
+
product.php in product.php
+
+
+ password_gen +
+
+
password_gen() in util.php
+
Generate a random string good for passwords
+
+
+ +
+
r
+ +
+
+
+
+ regions.php +
+
+
regions.php in regions.php
+
+
+ region.php +
+
+
region.php in region.php
+
+
+ record_exists +
+
+
record_exists() in util.php
+
This function checks for the existence of a particular row in a particular table matching a value.
+
+
+ +
+
s
+ +
+
+
+
+ set_error +
+
+
set_error() in util.php
+
Add an error message to SESSION['errors'] array.
+
+
+ set_msg +
+
+
set_msg() in util.php
+
Add a message to SESSION['messages'] array.
+
+
+ show_error +
+
+
show_error() in util.php
+
Show errors messages.
+
+
+ show_headers +
+
+
show_headers() in list.php
+
Show table headers.
+
+
+ show_list +
+
+
show_list() in list.php
+
Show a list of values, for forms.
+
+
+ show_msg +
+
+
show_msg() in util.php
+
Show messages.
+
+
+ show_row +
+
+
show_row() in list.php
+
Show table data.
+
+
+ show_tabs +
+
+
show_tabs() in util.php
+
Show user tabs, based on an array.
+
+
+ +
+
u
+ +
+
+
+
+ users.php +
+
+
users.php in users.php
+
+
+ user.php +
+
+
user.php in user.php
+
+
+ util.php +
+
+
util.php in util.php
+
+
+ url_out +
+
+
url_out() in forms.php
+
Returns http:// and the string if the string does not begin with http://
+
+
+ +
+
w
+ +
+
+
+
+ WEBPATH +
+
+
WEBPATH in config-dist.php
+
+
+ +
+ a + c + d + e + f + g + h + i + l + m + o + p + r + s + u + w +
+ \ No newline at end of file diff --git a/docs/errors.html b/docs/errors.html new file mode 100644 index 0000000..89f9ba9 --- /dev/null +++ b/docs/errors.html @@ -0,0 +1,91 @@ + + + + + + phpDocumentor Parser Errors and Warnings + + + + + Post-parsing
+config-dist.php
+header.php
+index.php
+init.php
+locations.php
+login.php
+logout.php
+mstats.php
+os.php
+products.php
+pstats.php
+regions.php
+users.php
+util.php
+ +

admin_init.php

+

Warnings:


+Warning on line 6 - Page-level DocBlock precedes "require_once admin_init.php", use another DocBlock to document the source element
+ +

config-dist.php

+

Warnings:


+Warning on line 6 - Page-level DocBlock precedes "define FILEPATH", use another DocBlock to document the source element
+ +

header.php

+

Warnings:


+Warning on line 53 - Page-level DocBlock precedes "require_once header.php", use another DocBlock to document the source element
+ +

index.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once index.php", use another DocBlock to document the source element
+Warning on line 7 - Page-level DocBlock precedes "require_once index.php", use another DocBlock to document the source element
+ +

init.php

+

Warnings:


+Warning on line 6 - Page-level DocBlock precedes "require_once init.php", use another DocBlock to document the source element
+ +

locations.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once locations.php", use another DocBlock to document the source element
+ +

login.php

+

Warnings:


+Warning on line 6 - Page-level DocBlock precedes "require_once login.php", use another DocBlock to document the source element
+ +

logout.php

+

Warnings:


+Warning on line 6 - Page-level DocBlock precedes "require_once logout.php", use another DocBlock to document the source element
+ +

mstats.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once mstats.php", use another DocBlock to document the source element
+ +

os.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once os.php", use another DocBlock to document the source element
+ +

products.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once products.php", use another DocBlock to document the source element
+ +

pstats.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once pstats.php", use another DocBlock to document the source element
+ +

regions.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once regions.php", use another DocBlock to document the source element
+ +

users.php

+

Warnings:


+Warning on line 7 - Page-level DocBlock precedes "require_once users.php", use another DocBlock to document the source element
+ +

util.php

+

Warnings:


+Warning on line 157 - Unknown tag "@ret" used
+

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+ + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..d300169 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,24 @@ + + + + + + mirror + + + + + + + + + + + <H2>Frame Alert</H2> + <P>This document is designed to be viewed using the frames feature. + If you see this message, you are using a non-frame-capable web client.</P> + + + \ No newline at end of file diff --git a/docs/li_mirror.html b/docs/li_mirror.html new file mode 100644 index 0000000..50cc378 --- /dev/null +++ b/docs/li_mirror.html @@ -0,0 +1,231 @@ + + + + + + + + + + +
mirror
+
+ +
+ +
Description
+
+ Class trees
+ Index of elements
+ Todo List
+
+ + + + + + + +
admin
+
+
+
Files
+
index.php
+
locations.php
+
login.php
+
logout.php
+
mstats.php
+
os.php
+
products.php
+
pstats.php
+
regions.php
+
users.php
+
+
+ + + + +
cfg
+
+
+
Files
+
admin_init.php
+
config-dist.php
+
init.php
+
+
+ + + + +
forms
+
+
+
Files
+
location.php
+
mirror.php
+
os.php
+
product.php
+
region.php
+
user.php
+
+
+ + + + +
inc
+
+
+
Files
+
admin_nav.php
+
footer.php
+
header.php
+
+
+ + + + +
lib
+
+
+
Functions
+
array_days
+
array_hours
+
array_minutes
+
array_months
+
array_order_by
+
array_states
+
array_years
+
auth_create_session
+
auth_is_valid_session
+
auth_logout
+
auth_mysql
+
clean_in
+
clean_out
+
db_close
+
db_connect
+
db_fetch
+
db_fieldnames
+
db_get
+
db_get_one
+
db_get_to_options
+
db_insert_id
+
db_makeinsert
+
db_makereplace
+
db_makeupdate
+
db_name_to_id
+
db_numrows
+
db_query
+
db_select
+
db_toggle_bool
+
debug_r
+
emptify_in_array
+
form_array_fix_dates
+
form_array_get_date
+
form_array_get_datetime
+
form_checkbox
+
form_end
+
form_hidden
+
form_label
+
form_password
+
form_radio
+
form_reset
+
form_select
+
form_start
+
form_submit
+
form_text
+
form_textarea
+
geo_get_coordinates
+
geo_get_country
+
geo_get_distance
+
geo_get_record
+
geo_query
+
get_order
+
get_orderby
+
is_email_address
+
is_phone_number
+
list_edit_ids
+
list_update_ids
+
microtime_float
+
mirror_delete_location
+
mirror_delete_mirror
+
mirror_delete_os
+
mirror_delete_product
+
mirror_delete_region
+
mirror_delete_user
+
mirror_get_locations
+
mirror_get_mirrors
+
mirror_get_mirrors_select
+
mirror_get_mirror_stats
+
mirror_get_one_location
+
mirror_get_one_mirror
+
mirror_get_one_os
+
mirror_get_one_product
+
mirror_get_one_region
+
mirror_get_one_user
+
mirror_get_oss
+
mirror_get_oss_select
+
mirror_get_oss_select_priority
+
mirror_get_products
+
mirror_get_products_select
+
mirror_get_products_select_priority
+
mirror_get_product_stats
+
mirror_get_regions
+
mirror_get_regions_select
+
mirror_get_regions_select_priority
+
mirror_get_users
+
mirror_insert_location
+
mirror_insert_mirror
+
mirror_insert_os
+
mirror_insert_product
+
mirror_insert_region
+
mirror_insert_user
+
mirror_toggle
+
mirror_update_location
+
mirror_update_mirror
+
mirror_update_os
+
mirror_update_product
+
mirror_update_region
+
mirror_update_user
+
password_gen
+
record_exists
+
set_error
+
set_msg
+
show_error
+
show_headers
+
show_list
+
show_msg
+
show_row
+
show_tabs
+
url_out
+
Files
+
auth.php
+
db.php
+
forms.php
+
geo.php
+
list.php
+
mirror.php
+
util.php
+
+
+ + + + +
pub
+
+
+
Files
+
index.php
+
+
+ + +
+
+

phpDocumentor v 1.3.0RC3

+ + \ No newline at end of file diff --git a/docs/media/banner.css b/docs/media/banner.css new file mode 100644 index 0000000..f2149eb --- /dev/null +++ b/docs/media/banner.css @@ -0,0 +1,32 @@ +body +{ + background-color: #CCCCFF; + margin: 0px; + padding: 0px; +} + +/* Banner (top bar) classes */ + +.banner { } + +.banner-menu +{ + clear: both; + padding: .5em; + border-top: 2px solid #6666AA; +} + +.banner-title +{ + text-align: right; + font-size: 20pt; + font-weight: bold; + margin: .2em; +} + +.package-selector +{ + background-color: #AAAADD; + border: 1px solid black; + color: yellow; +} diff --git a/docs/media/stylesheet.css b/docs/media/stylesheet.css new file mode 100644 index 0000000..94870fb --- /dev/null +++ b/docs/media/stylesheet.css @@ -0,0 +1,144 @@ +a { color: #336699; text-decoration: none; } +a:hover { color: #6699CC; text-decoration: underline; } +a:active { color: #6699CC; text-decoration: underline; } + +body { background : #FFFFFF; } +body, table { font-family: Georgia, Times New Roman, Times, serif; font-size: 10pt } +p, li { line-height: 140% } +a img { border: 0px; } +dd { margin-left: 0px; padding-left: 1em; } + +/* Page layout/boxes */ + +.info-box {} +.info-box-title { margin: 1em 0em 0em 0em; padding: .25em; font-weight: normal; font-size: 14pt; border: 2px solid #999999; background-color: #CCCCFF } +.info-box-body { border: 1px solid #999999; padding: .5em; } +.nav-bar { font-size: 8pt; white-space: nowrap; text-align: right; padding: .2em; margin: 0em 0em 1em 0em; } + +.oddrow { background-color: #F8F8F8; border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} +.evenrow { border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} + +.page-body { max-width: 800px; margin: auto; } +.tree dl { margin: 0px } + +/* Index formatting classes */ + +.index-item-body { margin-top: .5em; margin-bottom: .5em} +.index-item-description { margin-top: .25em } +.index-item-details { font-weight: normal; font-style: italic; font-size: 8pt } +.index-letter-section { background-color: #EEEEEE; border: 1px dotted #999999; padding: .5em; margin-bottom: 1em} +.index-letter-title { font-size: 12pt; font-weight: bold } +.index-letter-menu { text-align: center; margin: 1em } +.index-letter { font-size: 12pt } + +/* Docbook classes */ + +.description {} +.short-description { font-weight: bold; color: #666666; } +.tags { padding-left: 0em; margin-left: 3em; color: #666666; list-style-type: square; } +.parameters { padding-left: 0em; margin-left: 3em; font-style: italic; list-style-type: square; } +.redefinitions { font-size: 8pt; padding-left: 0em; margin-left: 2em; } +.package { } +.package-title { font-weight: bold; font-size: 14pt; border-bottom: 1px solid black } +.package-details { font-size: 85%; } +.sub-package { font-weight: bold; font-size: 120% } +.tutorial { border-width: thin; border-color: #0066ff } +.tutorial-nav-box { width: 100%; border: 1px solid #999999; background-color: #F8F8F8; } +.nav-button-disabled { color: #999999; } +.nav-button:active, +.nav-button:focus, +.nav-button:hover { background-color: #DDDDDD; outline: 1px solid #999999; text-decoration: none } +.folder-title { font-style: italic } + +/* Generic formatting */ + +.field { font-weight: bold; } +.detail { font-size: 8pt; } +.notes { font-style: italic; font-size: 8pt; } +.separator { background-color: #999999; height: 2px; } +.warning { color: #FF6600; } +.disabled { font-style: italic; color: #999999; } + +/* Code elements */ + +.line-number { } + +.class-table { width: 100%; } +.class-table-header { border-bottom: 1px dotted #666666; text-align: left} +.class-name { color: #000000; font-weight: bold; } + +.method-summary { padding-left: 1em; font-size: 8pt } +.method-header { } +.method-definition { margin-bottom: .3em } +.method-title { font-weight: bold; } +.method-name { font-weight: bold; } +.method-signature { font-size: 85%; color: #666666; margin: .5em 0em } +.method-result { font-style: italic; } + +.var-summary { padding-left: 1em; font-size: 8pt; } +.var-header { } +.var-title { margin-bottom: .3em } +.var-type { font-style: italic; } +.var-name { font-weight: bold; } +.var-default {} +.var-description { font-weight: normal; color: #000000; } + +.include-title { } +.include-type { font-style: italic; } +.include-name { font-weight: bold; } + +.const-title { } +.const-name { font-weight: bold; } + +/* Syntax highlighting */ + +.src-code { border: 1px solid #336699; padding: 1em; background-color: #EEEEEE; } +*[class="src-code"] { line-height : 0.5em } + +.src-comm { color: green; } +.src-id { } +.src-inc { color: #0000FF; } +.src-key { color: #0000FF; } +.src-num { color: #CC0000; } +.src-str { color: #66cccc; } +.src-sym { font-weight: bold; } +.src-var { } + +.src-php { font-weight: bold; } + +.src-doc { color: #009999 } +.src-doc-close-template { color: #0000FF } +.src-doc-coretag { color: #0099FF; font-weight: bold } +.src-doc-inlinetag { color: #0099FF } +.src-doc-internal { color: #6699cc } +.src-doc-tag { color: #0080CC } +.src-doc-template { color: #0000FF } +.src-doc-type { font-style: italic } +.src-doc-var { font-style: italic } + +.tute-tag { color: #009999 } +.tute-attribute-name { color: #0000FF } +.tute-attribute-value { color: #0099FF } +.tute-entity { font-weight: bold; } +.tute-comment { font-style: italic } +.tute-inline-tag { color: #636311; font-weight: bold } + +/* tutorial */ + +.authors { } +.author { font-style: italic; font-weight: bold } +.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } +.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } +*[class="example"] { line-height : 0.5em } +.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } +*[class="listing"] { line-height : 0.5em } +.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } +.ref-title-box { } +.ref-title { } +.ref-purpose { font-style: italic; color: #666666 } +.ref-synopsis { } +.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #CCCCFF } +.cmd-synopsis { margin: 1em 0em } +.cmd-title { font-weight: bold } +.toc { margin-left: 2em; padding-left: 0em } + diff --git a/docs/mirror/_php_cfg_admin_init_php.html b/docs/mirror/_php_cfg_admin_init_php.html new file mode 100644 index 0000000..33b23f1 --- /dev/null +++ b/docs/mirror/_php_cfg_admin_init_php.html @@ -0,0 +1,89 @@ + + + + + + Docs for page admin_init.php + + + + +
+

/php/cfg/admin_init.php

+ + +
+
Description
+ +
+ +

Admin initialization.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + (LIB.'/auth.php') + (line 7) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/forms.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/list.php') + (line 9) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:30:41 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/_php_index_php.html b/docs/mirror/_php_index_php.html new file mode 100644 index 0000000..8a0609b --- /dev/null +++ b/docs/mirror/_php_index_php.html @@ -0,0 +1,75 @@ + + + + + + Docs for page index.php + + + + +
+

/php/index.php

+ + +
+
Description
+ +
+ +

Main handler.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ('./cfg/config.php') + (line 7) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/db.php') + (line 11) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:30:42 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_index_php.html b/docs/mirror/admin/_php_admin_index_php.html new file mode 100644 index 0000000..5ccf292 --- /dev/null +++ b/docs/mirror/admin/_php_admin_index_php.html @@ -0,0 +1,145 @@ + + + + + + Docs for page index.php + + + + +
+

/php/admin/index.php

+ + +
+
Description
+ +
+ +

Regions.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + include_once + (INC.'/forms/mirror.php') + (line 105) + +
+ + + +
+ +
+ +
+ + include_once + (INC.'/forms/mirror.php') + (line 41) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 37) + +
+ + + +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 72) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 109) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 47) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_locations_php.html b/docs/mirror/admin/_php_admin_locations_php.html new file mode 100644 index 0000000..580fdc5 --- /dev/null +++ b/docs/mirror/admin/_php_admin_locations_php.html @@ -0,0 +1,145 @@ + + + + + + Docs for page locations.php + + + + +
+

/php/admin/locations.php

+ + +
+
Description
+ +
+ +

File locations.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + include_once + (INC.'/forms/location.php') + (line 95) + +
+ + + +
+ +
+ +
+ + include_once + (INC.'/forms/location.php') + (line 41) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 37) + +
+ + + +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 66) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 99) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 47) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_login_php.html b/docs/mirror/admin/_php_admin_login_php.html new file mode 100644 index 0000000..5fb9b53 --- /dev/null +++ b/docs/mirror/admin/_php_admin_login_php.html @@ -0,0 +1,103 @@ + + + + + + Docs for page login.php + + + + +
+

/php/admin/login.php

+ + +
+
Description
+ +
+ +

Admin login.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 7) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/auth.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 23) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 41) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_logout_php.html b/docs/mirror/admin/_php_admin_logout_php.html new file mode 100644 index 0000000..23ead61 --- /dev/null +++ b/docs/mirror/admin/_php_admin_logout_php.html @@ -0,0 +1,75 @@ + + + + + + Docs for page logout.php + + + + +
+

/php/admin/logout.php

+ + +
+
Description
+ +
+ +

Admin logout.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 7) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/auth.php') + (line 8) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_mstats_php.html b/docs/mirror/admin/_php_admin_mstats_php.html new file mode 100644 index 0000000..7a8c630 --- /dev/null +++ b/docs/mirror/admin/_php_admin_mstats_php.html @@ -0,0 +1,89 @@ + + + + + + Docs for page mstats.php + + + + +
+

/php/admin/mstats.php

+ + +
+
Description
+ +
+ +

Mirror Statistics.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 12) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 31) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_os_php.html b/docs/mirror/admin/_php_admin_os_php.html new file mode 100644 index 0000000..f8d93d8 --- /dev/null +++ b/docs/mirror/admin/_php_admin_os_php.html @@ -0,0 +1,145 @@ + + + + + + Docs for page os.php + + + + +
+

/php/admin/os.php

+ + +
+
Description
+ +
+ +

Operating Systems.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + include_once + (INC.'/forms/os.php') + (line 95) + +
+ + + +
+ +
+ +
+ + include_once + (INC.'/forms/os.php') + (line 41) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 37) + +
+ + + +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 66) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 99) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 47) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_products_php.html b/docs/mirror/admin/_php_admin_products_php.html new file mode 100644 index 0000000..d370b59 --- /dev/null +++ b/docs/mirror/admin/_php_admin_products_php.html @@ -0,0 +1,145 @@ + + + + + + Docs for page products.php + + + + +
+

/php/admin/products.php

+ + +
+
Description
+ +
+ +

Products.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + include_once + (INC.'/forms/product.php') + (line 95) + +
+ + + +
+ +
+ +
+ + include_once + (INC.'/forms/product.php') + (line 41) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 37) + +
+ + + +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 66) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 99) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 47) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_pstats_php.html b/docs/mirror/admin/_php_admin_pstats_php.html new file mode 100644 index 0000000..0ad4f4e --- /dev/null +++ b/docs/mirror/admin/_php_admin_pstats_php.html @@ -0,0 +1,89 @@ + + + + + + Docs for page pstats.php + + + + +
+

/php/admin/pstats.php

+ + +
+
Description
+ +
+ +

Product Statistics.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 12) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 28) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_regions_php.html b/docs/mirror/admin/_php_admin_regions_php.html new file mode 100644 index 0000000..a90e209 --- /dev/null +++ b/docs/mirror/admin/_php_admin_regions_php.html @@ -0,0 +1,145 @@ + + + + + + Docs for page regions.php + + + + +
+

/php/admin/regions.php

+ + +
+
Description
+ +
+ +

Regions.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + include_once + (INC.'/forms/region.php') + (line 96) + +
+ + + +
+ +
+ +
+ + include_once + (INC.'/forms/region.php') + (line 41) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 37) + +
+ + + +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 66) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 100) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 47) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/admin/_php_admin_users_php.html b/docs/mirror/admin/_php_admin_users_php.html new file mode 100644 index 0000000..fd347e9 --- /dev/null +++ b/docs/mirror/admin/_php_admin_users_php.html @@ -0,0 +1,145 @@ + + + + + + Docs for page users.php + + + + +
+

/php/admin/users.php

+ + +
+
Description
+ +
+ +

Users.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + include_once + (INC.'/forms/user.php') + (line 99) + +
+ + + +
+ +
+ +
+ + include_once + (INC.'/forms/user.php') + (line 41) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 37) + +
+ + + +
+ +
+ +
+ + require_once + ('../cfg/init.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (HEADER) + (line 68) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 103) + +
+ + + +
+ +
+ +
+ + require_once + (FOOTER) + (line 47) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/cfg/_php_cfg_admin_init_php.html b/docs/mirror/cfg/_php_cfg_admin_init_php.html new file mode 100644 index 0000000..904abc5 --- /dev/null +++ b/docs/mirror/cfg/_php_cfg_admin_init_php.html @@ -0,0 +1,89 @@ + + + + + + Docs for page admin_init.php + + + + +
+

/php/cfg/admin_init.php

+ + +
+
Description
+ +
+ +

Admin initialization.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + (LIB.'/auth.php') + (line 7) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/forms.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/list.php') + (line 9) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/cfg/_php_cfg_config-dist_php.html b/docs/mirror/cfg/_php_cfg_config-dist_php.html new file mode 100644 index 0000000..d4e6b53 --- /dev/null +++ b/docs/mirror/cfg/_php_cfg_config-dist_php.html @@ -0,0 +1,201 @@ + + + + + + Docs for page config-dist.php + + + + +
+

/php/cfg/config-dist.php

+ + +
+
Description
+ +
+ +

Mirror configuration document.

+ +
+
+ + + + +
+
Constants
+ +
+ +
+ +
+ + DBHOST = '' + (line 13) + +
+ + + + +
+ +
+ +
+ + DBNAME = '' + (line 14) + +
+ + + + +
+ +
+ +
+ + DBPASS = '' + (line 16) + +
+ + + + +
+ +
+ +
+ + DBUSER = '' + (line 15) + +
+ + + + +
+ +
+ +
+ + FILEPATH = '/var/www/download' + (line 7) + +
+ + + + +
+ +
+ +
+ + FOOTER = INC.'/footer.php' + (line 12) + +
+ + + + +
+ +
+ +
+ + HEADER = INC.'/header.php' + (line 11) + +
+ + + + +
+ +
+ +
+ + INC = FILEPATH.'/inc' + (line 10) + +
+ + + + +
+ +
+ +
+ + LIB = FILEPATH.'/lib' + (line 9) + +
+ + + + +
+ +
+ +
+ + LOGGING = 1 + (line 17) + +
+ + + + +
+ +
+ +
+ + WEBPATH = '' + (line 8) + +
+ + + + +
+
+
+ + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/cfg/_php_cfg_init_php.html b/docs/mirror/cfg/_php_cfg_init_php.html new file mode 100644 index 0000000..1166cbe --- /dev/null +++ b/docs/mirror/cfg/_php_cfg_init_php.html @@ -0,0 +1,117 @@ + + + + + + Docs for page init.php + + + + +
+

/php/cfg/init.php

+ + +
+
Description
+ +
+ +

Init.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ('config.php') + (line 7) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/util.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/mirror.php') + (line 10) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/db.php') + (line 11) + +
+ + + +
+ +
+ +
+ + require_once + ('admin_init.php') + (line 15) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/forms/_php_inc_forms_location_php.html b/docs/mirror/forms/_php_inc_forms_location_php.html new file mode 100644 index 0000000..4450a8f --- /dev/null +++ b/docs/mirror/forms/_php_inc_forms_location_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page location.php + + + + +
+

/php/inc/forms/location.php

+ + +
+
Description
+ +
+ +

File location form.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/forms/_php_inc_forms_mirror_php.html b/docs/mirror/forms/_php_inc_forms_mirror_php.html new file mode 100644 index 0000000..89399af --- /dev/null +++ b/docs/mirror/forms/_php_inc_forms_mirror_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page mirror.php + + + + +
+

/php/inc/forms/mirror.php

+ + +
+
Description
+ +
+ +

Region form.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/forms/_php_inc_forms_os_php.html b/docs/mirror/forms/_php_inc_forms_os_php.html new file mode 100644 index 0000000..6def3e7 --- /dev/null +++ b/docs/mirror/forms/_php_inc_forms_os_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page os.php + + + + +
+

/php/inc/forms/os.php

+ + +
+
Description
+ +
+ +

OS form.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/forms/_php_inc_forms_product_php.html b/docs/mirror/forms/_php_inc_forms_product_php.html new file mode 100644 index 0000000..5d7b5d4 --- /dev/null +++ b/docs/mirror/forms/_php_inc_forms_product_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page product.php + + + + +
+

/php/inc/forms/product.php

+ + +
+
Description
+ +
+ +

Product form.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/forms/_php_inc_forms_region_php.html b/docs/mirror/forms/_php_inc_forms_region_php.html new file mode 100644 index 0000000..0796126 --- /dev/null +++ b/docs/mirror/forms/_php_inc_forms_region_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page region.php + + + + +
+

/php/inc/forms/region.php

+ + +
+
Description
+ +
+ +

Region form.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/forms/_php_inc_forms_user_php.html b/docs/mirror/forms/_php_inc_forms_user_php.html new file mode 100644 index 0000000..f4b527c --- /dev/null +++ b/docs/mirror/forms/_php_inc_forms_user_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page user.php + + + + +
+

/php/inc/forms/user.php

+ + +
+
Description
+ +
+ +

User form.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/inc/_php_inc_admin_nav_php.html b/docs/mirror/inc/_php_inc_admin_nav_php.html new file mode 100644 index 0000000..34c8f45 --- /dev/null +++ b/docs/mirror/inc/_php_inc_admin_nav_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page admin_nav.php + + + + +
+

/php/inc/admin_nav.php

+ + +
+
Description
+ +
+ +

Admin navigation.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/inc/_php_inc_footer_php.html b/docs/mirror/inc/_php_inc_footer_php.html new file mode 100644 index 0000000..5ec21f7 --- /dev/null +++ b/docs/mirror/inc/_php_inc_footer_php.html @@ -0,0 +1,35 @@ + + + + + + Docs for page footer.php + + + + +
+

/php/inc/footer.php

+ + +
+
Description
+ +
+ +

Footer document.

+ +
+
+ + + + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/inc/_php_inc_header_php.html b/docs/mirror/inc/_php_inc_header_php.html new file mode 100644 index 0000000..9eabc3c --- /dev/null +++ b/docs/mirror/inc/_php_inc_header_php.html @@ -0,0 +1,61 @@ + + + + + + Docs for page header.php + + + + +
+

/php/inc/header.php

+ + +
+
Description
+ +
+ +

Header document.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ($nav) + (line 54) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/lib/_php_lib_auth_php.html b/docs/mirror/lib/_php_lib_auth_php.html new file mode 100644 index 0000000..b40ce29 --- /dev/null +++ b/docs/mirror/lib/_php_lib_auth_php.html @@ -0,0 +1,150 @@ + + + + + + Docs for page auth.php + + + + +
+

/php/lib/auth.php

+ + +
+
Description
+ +
+ +

Home-cooked auth libraries - because PEAR is fat.

+
    +
  • todo: re-enforce one-per-user session limit
  • +
+ +
+
+ + + + + + +
+
Functions
+ +
+ +
+ +
+ auth_create_session (line 56) +
+ + +

Start a valid session.

+ +
+ void + + auth_create_session + + (array $user, [mixed $secure = 0]) +
+ +
    +
  • + array + $user: array containing user information.
  • +
+ + +
+ +
+ +
+ auth_is_valid_session (line 13) +
+ + +

Check admin session against sessions table in database.

+ +
+ bool + + auth_is_valid_session + + () +
+ + + +
+ +
+ +
+ auth_logout (line 68) +
+ + +

Logout.

+ +
+ void + + auth_logout + + () +
+ + + +
+ +
+ +
+ auth_mysql (line 37) +
+ + +

Authentication a user.

+
    +
  • return: array containing user data or false on failure
  • +
+ +
+ array|bool + + auth_mysql + + (string $username, string $password) +
+ +
    +
  • + string + $username
  • +
  • + string + $password
  • +
+ + +
+
+
+ +

+ Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/lib/_php_lib_db_php.html b/docs/mirror/lib/_php_lib_db_php.html new file mode 100644 index 0000000..5b8ddbd --- /dev/null +++ b/docs/mirror/lib/_php_lib_db_php.html @@ -0,0 +1,527 @@ + + + + + + Docs for page db.php + + + + +
+

/php/lib/db.php

+ + +
+
Description
+ +
+ +

Minimal wrappers for core PHP mysql_* functions.

+ +
+
+ + + + + + +
+
Functions
+ +
+ +
+ +
+ db_close (line 258) +
+ + +

Close the db connection. If a dbh is not specified, assume the last opened link.

+ +
+ void + + db_close + + ([resource $dbh = null]) +
+ +
    +
  • + resource + $dbh: optional dbh to close
  • +
+ + +
+ +
+ +
+ db_connect (line 15) +
+ + +

Connect to a MySQL database server.

+
    +
  • return: dbh
  • +
+ +
+ resource + + db_connect + + ([string $host = 'localhost'], [string $user = null], [string $password = null]) +
+ +
    +
  • + string + $host: db server, defaults to localhost
  • +
  • + string + $user: db username
  • +
  • + string + $password: db password
  • +
+ + +
+ +
+ +
+ db_fetch (line 69) +
+ + +

Fetch a row as an array from a result.

+ +
+ array + + db_fetch + + ([string $result = null], [mixed $type = MYSQL_BOTH]) +
+ +
    +
  • + string + $result: (default to null)
  • +
+ + +
+ +
+ +
+ db_fieldnames (line 121) +
+ + +

Get all of the fieldnames for the specified table.

+
    +
  • return: array of column names, must be an array
  • +
+ +
+ array + + db_fieldnames + + (string $table) +
+ +
    +
  • + string + $table: name of table to describe
  • +
+ + +
+ +
+ +
+ db_get (line 96) +
+ + +

Fetch an array based on a query.

+
    +
  • return: array of database rows Example of returned array:
    1. db_get("SELECT * FROM table",MYSQL_ASSOC);
    2. +
    3. returns...
    4. +
    5. Array
    6. +
    7. (
    8. +
    9. [0] => Array
    10. +
    11. (
    12. +
    13. [id] => 1
    14. +
    15. [field1] => data1
    16. +
    17. [field2] => data2
    18. +
    19. )
    20. +
    21.  
    22. +
    23. )
    24. +
  • +
+ +
+ array + + db_get + + (string $query, [int $type = MYSQL_BOTH], [string $col_id = NULL]) +
+ +
    +
  • + string + $query: database query
  • +
  • + int + $type: result type
  • +
  • + string + $col_id: if passed it, the values of this column in the result set will be used as the array keys in the returned array
  • +
+ + +
+ +
+ +
+ db_get_one (line 268) +
+ + +

Get one record.

+ +
+ void + + db_get_one + + (string $query, [int $type = MYSQL_ASSOC]) +
+ +
    +
  • + string + $query: query
  • +
  • + int + $type: result type
  • +
+ + +
+ +
+ +
+ db_insert_id (line 237) +
+ + +

Since PHP's mysql_insert_id() sometimes throws an error, this is the replacement

+
    +
  • return: the return value of MySQL's last_insert_id()
  • +
+ +
+ int + + db_insert_id + + ([resource $dbh = null]) +
+ +
    +
  • + resource + $dbh: optional dbh to get the last inserted id from
  • +
+ + +
+ +
+ +
+ db_makeinsert (line 151) +
+ + +

Create a MySQL INSERT statement based on $_POST array generated by form submission.

+

  • does not work with mysql functions (PASSWORD, etc.) because there are forced double quotes
  • do not use clean_in() before this, or you'll have double the slashes
  • use the function only when it saves you time, not _always_
  • form items not set will not be processed (unchecked radios, checkboxes) - handle these manually, or don't use the func

+
    +
  • return: resulting MySQL insert string
  • +
+ +
+ string + + db_makeinsert + + (array $vars, string $table) +
+ +
    +
  • + array + $vars: array of posts
  • +
  • + string + $table: name of the table that fields will be inserted into
  • +
+ + +
+ +
+ +
+ db_makereplace (line 183) +
+ + +

Create a MySQL REPLACE statement based on $_POST array generated by form submission.

+

  • does not work with mysql functions (PASSWORD, etc.) because there are forced double quotes
  • do not use clean_in() before this, or you'll have double the slashes
  • use the function only when it saves you time, not _always_
  • form items not set will not be processed (unchecked radios, checkboxes) - handle these manually, or don't use the func

+
    +
  • return: resulting MySQL insert string
  • +
+ +
+ string + + db_makereplace + + (array $vars, string $table) +
+ +
    +
  • + array + $vars: array of posts
  • +
  • + string + $table: name of the table that fields will be inserted into
  • +
+ + +
+ +
+ +
+ db_makeupdate (line 215) +
+ + +

Create a MySQL UPDATE statement based on $_POST array generated by form submission.

+

  • does not work with mysql functions (PASSWORD, etc.) because there are forced double quotes
  • do not use clean_in() before this, or you'll have double the slashes
  • use the function only when it saves you time, not _always_
  • form items not set will not be processed (unchecked radios, checkboxes) - handle these manually, or don't use the func

+ +
+ void + + db_makeupdate + + (array $vars, string $table, string $where) +
+ +
    +
  • + array + $vars: array of posts
  • +
  • + string + $table: name of the table that fields will be inserted into
  • +
  • + string + $where: where clause, describing which records are to be updated
  • +
+ + +
+ +
+ +
+ db_name_to_id (line 280) +
+ + +

Get an ID based on name.

+ +
+ void + + db_name_to_id + + (string $table, string $id_col, string $name_col, string $name) +
+ +
    +
  • + string + $table
  • +
  • + string + $id_col
  • +
  • + string + $name_col
  • +
  • + string + $name
  • +
+ + +
+ +
+ +
+ db_numrows (line 249) +
+ + +

Determine number of rows in result.

+
    +
  • return: number of rows in query result
  • +
+ +
+ int + + db_numrows + + ([resource $result = null]) +
+ +
    +
  • + resource + $result: mysql result
  • +
+ + +
+ +
+ +
+ db_query (line 48) +
+ + +

Execute a MySQL query.

+ +
+ void + + db_query + + ([string $qry = null], [resource $dbh = null]) +
+ +
    +
  • + string + $qry: MySQL query
  • +
  • + resource + $dbh: valid dbh
  • +
+ + +
+ +
+ +
+ db_select (line 33) +
+ + +

Select database.

+
    +
  • return: success of command
  • +
+ +
+ bool + + db_select + + (string $database, [resource $dbh = null]) +
+ +
    +
  • + string + $database: name of the database to select
  • +
  • + resource + $dbh: valid dbh, null if not defined
  • +
+ + +
+ +
+ +
+ db_toggle_bool (line 294) +
+ + +

Sets enum booleans to their opposite

+ +
+ int + + db_toggle_bool + + (string $table, string $pri, string $col, array $id) +
+ +
    +
  • + string + $table
  • +
  • + string + $pri
  • +
  • + string + $col
  • +
  • + array + $id
  • +
+ + +
+
+
+ +

+ Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/lib/_php_lib_forms_php.html b/docs/mirror/lib/_php_lib_forms_php.html new file mode 100644 index 0000000..aadc7f2 --- /dev/null +++ b/docs/mirror/lib/_php_lib_forms_php.html @@ -0,0 +1,942 @@ + + + + + + Docs for page forms.php + + + + +
+

/php/lib/forms.php

+ + +
+
Description
+ +
+ +

Form functions for handling form input, output, and markup.

+ +
+
+ + + + + + +
+
Functions
+ +
+ +
+ +
+ array_days (line 76) +
+ + +

Get calendar days in array format.

+
    +
  • return: days from 1->[28-31] (zero-filled)
  • +
+ +
+ array + + array_days + + ([int $month = ''], [int $year = '']) +
+ +
    +
  • + int + $month: numeric representation of month (optional) default is empty, accepted range value is 1-12 inclusive, this affects the total number of days in given month
  • +
  • + int + $year: the year (optional) default is empty, this affects the total number of days in given month
  • +
+ + +
+ +
+ +
+ array_hours (line 159) +
+ + +

Get calendar hours in array format.

+
    +
  • return: hours (zero-filled)
  • +
+ +
+ array + + array_hours + + () +
+ + + +
+ +
+ +
+ array_minutes (line 187) +
+ + +

Get array of minutes.

+
    +
  • return: minutes (zero-filled)
  • +
+ +
+ array + + array_minutes + + ([int $interval = 15]) +
+ +
    +
  • + int + $interval: interval between minutes (optional) default is 15
  • +
+ + +
+ +
+ +
+ array_months (line 105) +
+ + +

Get calendar months in array format.

+
    +
  • return: months from 01-12 (zero-filled)
  • +
+ +
+ array + + array_months + + () +
+ + + +
+ +
+ +
+ array_states (line 203) +
+ + +

Get array of states.

+
    +
  • return: states (abbr=>fullname)
  • +
+ +
+ array + + array_states + + () +
+ + + +
+ +
+ +
+ array_years (line 130) +
+ + +

Get calendar years in array format.

+
    +
  • return: years
  • +
+ +
+ array + + array_years + + ([int $num = 5], [int $year = '']) +
+ +
    +
  • + int + $num: number of years to display (optional) default is 5, negative numbers change direction of array
  • +
  • + int + $year: starting year (optional) default is this year
  • +
+ + +
+ +
+ +
+ clean_in (line 41) +
+ + +

Cleans a string or an array of strings for DB input.

+
    +
  • return: slashes added, if necessary
  • +
+ +
+ mixed + + clean_in + + (mixed $str, [mixed $single_quotes = FALSE], [bool $decode = FALSE], bool $single_quote) +
+ +
    +
  • + mixed + $str: dirty
  • +
  • + bool + $single_quote: add single quotes around the string, optional
  • +
  • + bool + $decode: run html_entity_decode(), optional
  • +
+ + +
+ +
+ +
+ clean_out (line 14) +
+ + +

Cleans a string or an array of strings for HTML presentation.

+
    +
  • return: cleaned for HTML
  • +
+ +
+ mixed + + clean_out + + (mixed $str, [bool $slashes = FALSE]) +
+ +
    +
  • + mixed + $str: dirty
  • +
  • + bool + $slashes: default to false, this parameter indicate if stripslashes is desired, usually use for magic qoutes
  • +
+ + +
+ +
+ +
+ db_get_to_options (line 650) +
+ + +

Take a db_get result and return an array of options.

+
    +
  • return: array of options ($val=>$text)
  • +
+ +
+ array + + db_get_to_options + + (array $data, string $val_col, string $name_col) +
+ +
    +
  • + array + $data: db_get result
  • +
  • + string + $val_col: column containing the value for each option
  • +
  • + string + $name_col: column containing the text
  • +
+ + +
+ +
+ +
+ form_array_fix_dates (line 532) +
+ + +

Fix dates for form display, or proper db entry

+
    +
  • return: null, or the original array modified to have separated date values for the forms
  • +
+ +
+ mixed + + form_array_fix_dates + + (array $dates, array $datetimes, [int $way = 1], [array $orig = '']) +
+ +
    +
  • + array + $dates: array of date field names
  • +
  • + array + $datetimes: array of datetime field names
  • +
  • + int + $way: 1 is done after a post, 2 is done when selecting for forms
  • +
  • + array + $orig: for way 2, the array we need to add the separated date values to (usually $posts)
  • +
+ + +
+ +
+ +
+ form_array_get_date (line 587) +
+ + +

Get put a date back together after a POST.

+
    +
  • return: repaired date, as an array that corresponds to the form
  • +
+ +
+ array + + form_array_get_date + + (string $field, int $key) +
+ +
    +
  • + string + $field: name of post index of date field
  • +
  • + int + $key: index of form array that the field value belongs to
  • +
+ + +
+ +
+ +
+ form_array_get_datetime (line 603) +
+ + +

Get put a datetime back together after a POST.

+
    +
  • return: repaired datetime, as an array that corresponds to the form
  • +
+ +
+ array + + form_array_get_datetime + + (string $field, int $key) +
+ +
    +
  • + string + $field: name of post index of datetime field
  • +
  • + int + $key: index of form array that the field value belongs to
  • +
+ + +
+ +
+ +
+ form_checkbox (line 359) +
+ + +

Writes a checkbox input.

+ +
+ void + + form_checkbox + + (string $name, [string $id = null], [string $class = null], [string $value = null], [bool $checked = 0], [string $extra = null]) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $id: id of field, must be unique per page
  • +
  • + string + $class: css class
  • +
  • + string + $value: value
  • +
  • + bool + $checked: checked?
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_end (line 289) +
+ + +

Writes the ending form tag.

+ +
+ void + + form_end + + () +
+ + + +
+ +
+ +
+ form_hidden (line 454) +
+ + +

Writes a hidden field.

+ +
+ void + + form_hidden + + (string $name, [string $value = null], [string $extra = null]) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $value: value
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_label (line 301) +
+ + +

Writes a form input label.

+ +
+ void + + form_label + + ([string $text = null], [string $for = null], [string $class = null], [string $extra = null]) +
+ +
    +
  • + string + $text: label text
  • +
  • + string + $for: id of corresponding field
  • +
  • + string + $class: class css class of label
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_password (line 340) +
+ + +

Writes a password input.

+ +
+ void + + form_password + + (string $name, [string $id = null], [mixed $class = null], [int $size = '30'], [int $maxlength = '100'], [string $extra = null], string $css) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $id: id of field, must be unique per page
  • +
  • + string + $css: css class
  • +
  • + int + $size: size of field (optional) default is 30
  • +
  • + int + $maxlength: maxlength of field (optional)
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_radio (line 391) +
+ + +

Writes a radio input.

+ +
+ void + + form_radio + + (string $name, [string $id = null], [string $class = null], [string $value = null], [bool $checked = 0], [string $extra = null]) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $id: id of field, must be unique per page
  • +
  • + string + $class: css class
  • +
  • + string + $value: value
  • +
  • + bool + $checked: checked?
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_reset (line 439) +
+ + +

Writes a reset input.

+ +
+ void + + form_reset + + (string $name, [string $class = null], [string $value = 'Reset'], [string $extra = null]) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $class: css class
  • +
  • + string + $value: value (button text)
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_select (line 477) +
+ + +

Writes a select list with options.

+ +
+ void + + form_select + + (string $name, [string $id = null], [string $class = null], [array $options = null], [string $selected = null], [string $extra = null]) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $id: id of field, must be unique per page
  • +
  • + string + $class: css class
  • +
  • + array + $options: possible options, usually pulled from db, or array_* funcs
  • +
  • + string + $selected:

    if the value matches, it is selected

    Multiple selects based on sets come out of a database as val,val,val so the explode was intended to create the instance of an array based on the string regardless of whether or not it has val,val,val.

  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_start (line 276) +
+ + +

Writes the beginning form tag.

+ +
+ void + + form_start + + ([string $name = 'form'], [string $class = null], [string $method = 'post'], [string $action = null], [mixed $extra = null]) +
+ +
    +
  • + string + $name: form name
  • +
  • + string + $class: class name
  • +
  • + string + $method: method (post or get)
  • +
  • + string + $action: action
  • +
+ + +
+ +
+ +
+ form_submit (line 422) +
+ + +

Writes a submit input.

+ +
+ void + + form_submit + + (string $name, [string $id = null], [string $class = null], [string $value = 'Submit'], [string $extra = null]) +
+ +
    +
  • + string + $id: the id attribute
  • +
  • + string + $name: name name of field
  • +
  • + string + $class: css class
  • +
  • + string + $value: value (button text)
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_text (line 321) +
+ + +

Writes a text input.

+ +
+ void + + form_text + + (string $name, [string $id = null], [mixed $class = null], [string $value = null], [int $size = '30'], [int $maxlength = '100'], [string $extra = null], string $css) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $id: id of field, must be unique per page
  • +
  • + string + $css: css class
  • +
  • + string + $value: value
  • +
  • + int + $size: size of field
  • +
  • + int + $maxlength: maxlength of field
  • +
  • + string + $extra: any extra parameters (optional)
  • +
+ + +
+ +
+ +
+ form_textarea (line 513) +
+ + +

Writes a textarea

+ +
+ void + + form_textarea + + (string $name, [string $id = null], [string $class = null], [int $rows = '6'], [int $cols = '50'], [string $value = null], [string $extra = null]) +
+ +
    +
  • + string + $name: name of field
  • +
  • + string + $id: id of field, must be unique per page
  • +
  • + string + $class: css class
  • +
  • + int + $rows: number of rows (height)
  • +
  • + int + $cols: number of cols (width)
  • +
  • + string + $value: value of field
  • +
  • + string + $extra: any extra parameters
  • +
+ + +
+ +
+ +
+ is_email_address (line 618) +
+ + +

Validates email addresses

+ +
+ bool + + is_email_address + + (string $email) +
+ +
    +
  • + string + $email
  • +
+ + +
+ +
+ +
+ is_phone_number (line 628) +
+ + +

Validates phone number

+ +
+ bool + + is_phone_number + + (string $phone) +
+ +
    +
  • + string + $phone
  • +
+ + +
+ +
+ +
+ url_out (line 638) +
+ + +

Returns http:// and the string if the string does not begin with http://

+ +
+ string + + url_out + + (string $url) +
+ +
    +
  • + string + $url
  • +
+ + +
+
+
+ +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/lib/_php_lib_geo_php.html b/docs/mirror/lib/_php_lib_geo_php.html new file mode 100644 index 0000000..a441634 --- /dev/null +++ b/docs/mirror/lib/_php_lib_geo_php.html @@ -0,0 +1,204 @@ + + + + + + Docs for page geo.php + + + + +
+

/php/lib/geo.php

+ + +
+
Description
+ +
+ +

Functions for netgeo lookups.

+ +
+
+ + + + + + +
+
Functions
+ +
+ +
+ +
+ geo_get_coordinates (line 45) +
+ + +

Get longitude and latitude of an IP.

+
    +
  • return: array containing results or false on failure
  • +
+ +
+ array|false + + geo_get_coordinates + + (string $ip) +
+ +
    +
  • + string + $ip: an IP address
  • +
+ + +
+ +
+ +
+ geo_get_country (line 65) +
+ + +

Get country of an IP.

+
    +
  • return: array containing results or false on failure
  • +
+ +
+ string|false + + geo_get_country + + (string $ip) +
+ +
    +
  • + string + $ip: an IP address
  • +
+ + +
+ +
+ +
+ geo_get_distance (line 16) +
+ + +

Calculate the distance between two geo points.

+
    +
  • return: rounded distance in _km_ between these points
  • +
+ +
+ int + + geo_get_distance + + (int $lat1, int $lon1, int $lat2, int $lon2) +
+ +
    +
  • + int + $lat1: latitude of first point
  • +
  • + int + $lon1: longitude of first point
  • +
  • + int + $lat2: latitude of second point
  • +
  • + int + $lon2: longitude of second point
  • +
+ + +
+ +
+ +
+ geo_get_record (line 55) +
+ + +

Get complete record based on IP.

+
    +
  • return: array containing results or false on failure
  • +
+ +
+ array|false + + geo_get_record + + (string $ip) +
+ +
    +
  • + string + $ip: an IP address
  • +
+ + +
+ +
+ +
+ geo_query (line 27) +
+ + +

Query NetGeo based on API and parse results.

+
    +
  • return: array containing results or false on failure
  • +
+ +
+ array|false + + geo_query + + (string $ip, [string $method = 'getRecord']) +
+ +
    +
  • + string + $ip: an IP address
  • +
  • + string + $method: lookup method, based on NetGeo API.
  • +
+ + +
+
+
+ +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/lib/_php_lib_list_php.html b/docs/mirror/lib/_php_lib_list_php.html new file mode 100644 index 0000000..2e810d7 --- /dev/null +++ b/docs/mirror/lib/_php_lib_list_php.html @@ -0,0 +1,362 @@ + + + + + + Docs for page list.php + + + + +
+

/php/lib/list.php

+ + +
+
Description
+ +
+ +

List functions for lists of values.

+
    +
  • author:

    Mike Morgan <mike.morgan@oregonstate.edu>

    Usage example:

    1. $orderby=get_order();
    2. +
    3. $query="SELECT * FROM fic_courses $orderby";
    4. +
    5. $courses=db_get($query,MYSQL_ASSOC);
    6. +
    7. $headers=array(
    8. +
    9. 'course_id'=>'',
    10. +
    11. 'title'=>'Course Title',
    12. +
    13. 'date_start_course'=>'Start',
    14. +
    15. 'date_end_course'=>'End',
    16. +
    17. 'date_start_reg'=>'Reg Starts',
    18. +
    19. 'date_end_reg'=>'Reg Ends',
    20. +
    21. 'active'=>'Active?',
    22. +
    23. 'entry_date'=>'Created'
    24. +
    25. );
    26. +
    27. show_list($courses,$headers);
    28. +

    Accompanying CSS for table output:

    1. .list
    2. +
    3. {
    4. +
    5. border:1px solid #999;
    6. +
    7. }
    8. +
    9. .list th
    10. +
    11. {
    12. +
    13. background:#eee;
    14. +
    15. border:1px solid #000;
    16. +
    17. font-weight:bold;
    18. +
    19. }
    20. +
    21. .list th a
    22. +
    23. {
    24. +
    25. display:block;
    26. +
    27. padding:0 14px;
    28. +
    29. }
    30. +
    31. .list th a:hover
    32. +
    33. {
    34. +
    35. background-color:#fff;
    36. +
    37. }
    38. +
    39. .row1
    40. +
    41. {
    42. +
    43. background:#ddd;
    44. +
    45. }
    46. +
    47. .row2
    48. +
    49. {
    50. +
    51. background:#ccc;
    52. +
    53. }
    54. +
    55. .row1:hover, .row2:hover
    56. +
    57. {
    58. +
    59. background-color:#fec;
    60. +
    61. }
    62. +
    63. .current-sort
    64. +
    65. {
    66. +
    67. background:#fda;
    68. +
    69. }
    70. +
    71. .sort-desc
    72. +
    73. {
    74. +
    75. background:#fec url(../img/up.gif) no-repeat right;
    76. +
    77. }
    78. +
    79. .sort-asc
    80. +
    81. {
    82. +
    83. background:#fec url(../img/down.gif) no-repeat right;
    84. +
    85. }
    86. +
    Accompanying JavaScript for select all / inverse:
    1. <script type="text/javascript">
    2. +
    3. //<!--
    4. +
    5. function selectAll(formObj,invert)
    6. +
    7. {
    8. +
    9. for (var i=0;i < formObj.elements.length;i++)
    10. +
    11. {
    12. +
    13. fldObj = formObj.elements[i];
    14. +
    15. if (fldObj.type == 'checkbox')
    16. +
    17. {
    18. +
    19. if (invert==1)
    20. +
    21. {
    22. +
    23. fldObj.checked = (fldObj.checked) ? false : true;
    24. +
    25. }
    26. +
    27. else
    28. +
    29. {
    30. +
    31. fldObj.checked = true;
    32. +
    33. }
    34. +
    35. }
    36. +
    37. }
    38. +
    39. }
    40. +
    41. //-->
    42. +
    43. </script>
    44. +

  • +
+ +
+
+ + + + + + +
+
Functions
+ +
+ +
+ +
+ get_order (line 283) +
+ + +

Determine current sort order.

+ +
+ void + + get_order + + () +
+ + + +
+ +
+ +
+ get_orderby (line 293) +
+ + +

Determine whether or not list is currently sorted.

+
    +
  • return: cleaned orderby clause based on saved sort information or null if no orderby is set in the defined method
  • +
+ +
+ mixed + + get_orderby + + ([string $method = 'get']) +
+ +
    +
  • + string + $method: which http method to check for sort information
  • +
+ + +
+ +
+ +
+ list_edit_ids (line 334) +
+ + +

Parses $_POST for ids, shows edit forms for each id with populated data.

+

  • name will be used to retrieve an _array_ from $_POST of the same name
  • the form will be an include, with $posts[col_name] as the default for all values
  • try to keep your query simple (no crazy sorting, etc.) -- we're talking one record at a time here anyway
Example:
  1. list_edit_ids('course_id','../forms/course.php','SELECT * FROM fic_courses','1');
  2. +

+ +
+ void + + list_edit_ids + + (string $name, string $form, string $q_front, [string $q_where = '1'], [array $dates = null], [array $datetimes = null]) +
+ +
    +
  • + string + $name: name of id field
  • +
  • + string + $form: path to form to be used to items
  • +
  • + string + $q_front: front half of query
  • +
  • + string + $q_where: where statement
  • +
  • + array + $dates: array of date field names, so they can be fixed for forms
  • +
  • + array + $datetimes: array of datetime field names, so they can be fixed for forms
  • +
+ + +
+ +
+ +
+ list_update_ids (line 370) +
+ + +

Process a submitted list_edit_ids form.

+ +
+ void + + list_update_ids + + (array $name, string $table) +
+ +
    +
  • + array + $name: array of primary ids posted from the form, these are vital to the WHERE clause of the UPDATE statements.
  • +
  • + string + $table: name of table being affected
  • +
+ + +
+ +
+ +
+ show_headers (line 190) +
+ + +

Show table headers.

+ +
+ void + + show_headers + + (array $headers, string $type, [bool $sortable = true]) +
+ +
    +
  • + array + $headers: column name => column title (for table heads)
  • +
  • + string + $type: type of list that is being shown
  • +
  • + bool + $sortable: whether or not to show sortable column headers (links in th's)
  • +
+ + +
+ +
+ +
+ show_list (line 110) +
+ + +

Show a list of values, for forms.

+ +
+ void + + show_list + + (array $list, array $headers, [string $type = 'checkbox'], [mixed $actions = null], [string $form_id = null], [bool $sortable = true], [array|string $selected = null], array $array) +
+ +
    +
  • + array + $list: associative array
  • +
  • + array + $headers: column name => column title (for table heads)
  • +
  • + string + $type: checkbox, radio, simple
  • +
  • + array + $array: actions to display in actions select list
  • +
  • + string + $form_id: id of form holding list
  • +
  • + bool + $sortable: whether or not to show sortable column headers (links in th's)
  • +
  • + array|string + $selected: if type is checkbox, array otherwise string with one val
  • +
+ + +
+ +
+ +
+ show_row (line 245) +
+ + +

Show table data.

+ +
+ void + + show_row + + (array $headers, array $row, string $type, [mixed $num = null], [array|string $selected = null]) +
+ +
    +
  • + array + $headers: column name => column title (for knowing which ones to display)
  • +
  • + array + $row: table row, assoc
  • +
  • + string + $type: type of table, determines first column, which could be an input
  • +
  • + array|string + $selected: selected items; if type is checkbox, array otherwise string with one val
  • +
+ + +
+
+
+ +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/lib/_php_lib_mirror_php.html b/docs/mirror/lib/_php_lib_mirror_php.html new file mode 100644 index 0000000..1f6b576 --- /dev/null +++ b/docs/mirror/lib/_php_lib_mirror_php.html @@ -0,0 +1,1112 @@ + + + + + + Docs for page mirror.php + + + + +
+

/php/lib/mirror.php

+ + +
+
Description
+ +
+ +

Application functions. Dependent on lib/db.php!

+
    +
  • todo: add transactions once innodb table types are in place
  • +
+ +
+
+ + + + + + +
+
Functions
+ +
+ +
+ +
+ mirror_delete_location (line 340) +
+ + +

Delete a location.

+ +
+ bool + + mirror_delete_location + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_delete_mirror (line 130) +
+ + +

Delete mirror.

+ +
+ bool + + mirror_delete_mirror + + (mixed $mirror_id) +
+ + + +
+ +
+ +
+ mirror_delete_os (line 244) +
+ + +

Delete a os.

+ +
+ bool + + mirror_delete_os + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_delete_product (line 192) +
+ + +

Delete a product.

+ +
+ bool + + mirror_delete_product + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_delete_region (line 73) +
+ + +

Delete a region.

+ +
+ bool + + mirror_delete_region + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_delete_user (line 405) +
+ + +

Delete a user.

+ +
+ bool + + mirror_delete_user + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_get_locations (line 349) +
+ + +

Get locations.

+
    +
  • return: array containing all location information.
  • +
+ +
+ array + + mirror_get_locations + + () +
+ + + +
+ +
+ +
+ mirror_get_mirrors (line 149) +
+ + +

Get list of mirrors.

+ +
+ array + + mirror_get_mirrors + + () +
+ + + +
+ +
+ +
+ mirror_get_mirrors_select (line 82) +
+ + +

Get an alpha-list of mirrors for select list.

+ +
+ array + + mirror_get_mirrors_select + + () +
+ + + +
+ +
+ +
+ mirror_get_mirror_stats (line 443) +
+ + +

Get mirror statistics.

+ +
+ array + + mirror_get_mirror_stats + + () +
+ + + +
+ +
+ +
+ mirror_get_one_location (line 359) +
+ + +

Get one location.

+ +
+ array + + mirror_get_one_location + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_get_one_mirror (line 140) +
+ + +

Get one mirror record.

+
    +
  • return: mirror information
  • +
+ +
+ array + + mirror_get_one_mirror + + (int $mirror_id) +
+ +
    +
  • + int + $mirror_id
  • +
+ + +
+ +
+ +
+ mirror_get_one_os (line 234) +
+ + +

Get one os.

+ +
+ array + + mirror_get_one_os + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_get_one_product (line 182) +
+ + +

Get one product.

+ +
+ array + + mirror_get_one_product + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_get_one_region (line 63) +
+ + +

Get one region.

+ +
+ array + + mirror_get_one_region + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_get_one_user (line 424) +
+ + +

Get one user.

+ +
+ array + + mirror_get_one_user + + (int $id) +
+ +
    +
  • + int + $id
  • +
+ + +
+ +
+ +
+ mirror_get_oss (line 253) +
+ + +

Get operating systems.

+ +
+ array + + mirror_get_oss + + () +
+ + + +
+ +
+ +
+ mirror_get_oss_select (line 262) +
+ + +

Get an alpha-list of operating systems for select list.

+ +
+ array + + mirror_get_oss_select + + () +
+ + + +
+ +
+ +
+ mirror_get_oss_select_priority (line 275) +
+ + +

Get an priority-list of operating systems for select list.

+ +
+ array + + mirror_get_oss_select_priority + + () +
+ + + +
+ +
+ +
+ mirror_get_products (line 201) +
+ + +

Get products.

+ +
+ array + + mirror_get_products + + () +
+ + + +
+ +
+ +
+ mirror_get_products_select (line 288) +
+ + +

Get an alpha-list of products for select list.

+ +
+ array + + mirror_get_products_select + + () +
+ + + +
+ +
+ +
+ mirror_get_products_select_priority (line 301) +
+ + +

Get an priority-list of operating systems for select list.

+ +
+ array + + mirror_get_products_select_priority + + () +
+ + + +
+ +
+ +
+ mirror_get_product_stats (line 452) +
+ + +

Get product statistics.

+ +
+ array + + mirror_get_product_stats + + () +
+ + + +
+ +
+ +
+ mirror_get_regions (line 95) +
+ + +

Get regions.

+ +
+ array + + mirror_get_regions + + () +
+ + + +
+ +
+ +
+ mirror_get_regions_select (line 13) +
+ + +

Get an alpha-list of regions for select list.

+ +
+ array + + mirror_get_regions_select + + () +
+ + + +
+ +
+ +
+ mirror_get_regions_select_priority (line 26) +
+ + +

Get an priority-list of regions for select list.

+ +
+ array + + mirror_get_regions_select_priority + + () +
+ + + +
+ +
+ +
+ mirror_get_users (line 414) +
+ + +

Get users.

+
    +
  • return: array containing all user information.
  • +
+ +
+ array + + mirror_get_users + + () +
+ + + +
+ +
+ +
+ mirror_insert_location (line 317) +
+ + +

Insert a new location.

+ +
+ bool + + mirror_insert_location + + (int $product, int $os, string $path) +
+ +
    +
  • + int + $product
  • +
  • + int + $os
  • +
  • + string + $path
  • +
+ + +
+ +
+ +
+ mirror_insert_mirror (line 108) +
+ + +

Insert mirror.

+ +
+ bool + + mirror_insert_mirror + + (string $name, int $region_id, string $baseurl, int $rating) +
+ +
    +
  • + string + $name
  • +
  • + int + $region_id
  • +
  • + string + $baseurl
  • +
  • + int + $rating
  • +
+ + +
+ +
+ +
+ mirror_insert_os (line 212) +
+ + +

Insert os.

+ +
+ bool + + mirror_insert_os + + (string $name, int $priority) +
+ +
    +
  • + string + $name
  • +
  • + int + $priority
  • +
+ + +
+ +
+ +
+ mirror_insert_product (line 160) +
+ + +

Insert product.

+ +
+ bool + + mirror_insert_product + + (string $name, int $priority) +
+ +
    +
  • + string + $name
  • +
  • + int + $priority
  • +
+ + +
+ +
+ +
+ mirror_insert_region (line 41) +
+ + +

Insert region.

+ +
+ bool + + mirror_insert_region + + (string $name, int $priority) +
+ +
    +
  • + string + $name
  • +
  • + int + $priority
  • +
+ + +
+ +
+ +
+ mirror_insert_user (line 374) +
+ + +

Insert a new user.

+ +
+ bool + + mirror_insert_user + + (string $username, string $password, string $rpassword, string $firstname, string $lastname, string $email) +
+ +
    +
  • + string + $username
  • +
  • + string + $password
  • +
  • + string + $rpassword: (re-entered password)
  • +
  • + string + $firstname
  • +
  • + string + $lastname
  • +
  • + string + $email
  • +
+ + +
+ +
+ +
+ mirror_toggle (line 434) +
+ + +

Enable or disable a mirror.

+ +
+ bool + + mirror_toggle + + (int $mirror) +
+ +
    +
  • + int + $mirror
  • +
+ + +
+ +
+ +
+ mirror_update_location (line 330) +
+ + +

Update a location.

+ +
+ bool + + mirror_update_location + + (int $location, int $product, int $os, string $path) +
+ +
    +
  • + int + $location
  • +
  • + int + $product
  • +
  • + int + $os
  • +
  • + string + $path
  • +
+ + +
+ +
+ +
+ mirror_update_mirror (line 121) +
+ + +

Update mirror.

+ +
+ bool + + mirror_update_mirror + + (mixed $id, string $name, int $region_id, string $baseurl, int $rating) +
+ +
    +
  • + string + $name
  • +
  • + int + $region_id
  • +
  • + string + $baseurl
  • +
  • + int + $rating
  • +
+ + +
+ +
+ +
+ mirror_update_os (line 224) +
+ + +

Update os.

+ +
+ bool + + mirror_update_os + + (int $id, string $name, int $priority) +
+ +
    +
  • + int + $id
  • +
  • + string + $name
  • +
  • + int + $priority
  • +
+ + +
+ +
+ +
+ mirror_update_product (line 172) +
+ + +

Update product.

+ +
+ bool + + mirror_update_product + + (int $id, string $name, int $priority) +
+ +
    +
  • + int + $id
  • +
  • + string + $name
  • +
  • + int + $priority
  • +
+ + +
+ +
+ +
+ mirror_update_region (line 53) +
+ + +

Update region.

+ +
+ bool + + mirror_update_region + + (int $id, string $name, int $priority) +
+ +
    +
  • + int + $id
  • +
  • + string + $name
  • +
  • + int + $priority
  • +
+ + +
+ +
+ +
+ mirror_update_user (line 394) +
+ + +

Update a user.

+ +
+ bool + + mirror_update_user + + (int $user, string $username, string $password, string $rpassword, string $firstname, string $lastname, string $email) +
+ +
    +
  • + int + $user
  • +
  • + string + $username
  • +
  • + string + $password
  • +
  • + string + $rpassword: (re-entered password)
  • +
  • + string + $firstname
  • +
  • + string + $lastname
  • +
  • + string + $email
  • +
+ + +
+
+
+ +

+ Documentation generated on Mon, 8 Nov 2004 13:43:05 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/lib/_php_lib_util_php.html b/docs/mirror/lib/_php_lib_util_php.html new file mode 100644 index 0000000..98baab8 --- /dev/null +++ b/docs/mirror/lib/_php_lib_util_php.html @@ -0,0 +1,369 @@ + + + + + + Docs for page util.php + + + + +
+

/php/lib/util.php

+ + +
+
Description
+ +
+ +

Utility funcs.

+ +
+
+ + + + + + +
+
Functions
+ +
+ +
+ +
+ array_order_by (line 198) +
+ + +

Sort a two dimensional array based on a 'column' key

+
    +
  • return: the original array on argument errors, the sorted array on success
  • +
+ +
+ array + + array_order_by + + (array &$array, [mixed $key = null], [mixed $order = null], [bool $retain_keys = TRUE], [bool $case_sensitive = FALSE]) +
+ +
    +
  • + array + $array: the array to be sorted
  • +
  • + mixed + $key: the column key to be used for sorting, an array of keys are also acceptable
  • +
  • + mixed + $order: the order of the sort, either 'asc' (ascending) or 'desc' (descending), can also be an array (with matching array keys to the $key param)
  • +
  • + bool + $retain_keys: option to retain the original keys; default to true
  • +
  • + bool + $case_sensitive: option for a case sensitive sort; default to false
  • +
+ + +
+ +
+ +
+ debug_r (line 98) +
+ + +

Print out an varible enclosed by &lt;pre&gt; tags

+ +
+ void + + debug_r + + (mixed &$var) +
+ +
    +
  • + mixed + $var: the variable to print by print_r
  • +
+ + +
+ +
+ +
+ emptify_in_array (line 131) +
+ + +

This recursive function empty values in an 'multi-dimensional' array.

+
    +
  • return: false if an empty needle passed in, else a copy of the array with needle values replaced with empty strings
  • +
+ +
+ mixed + + emptify_in_array + + (mixed $array, mixed $needle) +
+ +
    +
  • + mixed + $needle: it accepts just one value or an array of values
  • +
+ + +
+ +
+ +
+ microtime_float (line 12) +
+ + +

determine float value of now

+
    +
  • return: value of current time in seconds
  • +
+ +
+ float + + microtime_float + + () +
+ + + +
+ +
+ +
+ password_gen (line 110) +
+ + +

Generate a random string good for passwords

+
    +
  • return: password
  • +
+ +
+ string + + password_gen + + ([in $len = 6]) +
+ +
    +
  • + in + $len: the length of the password string
  • +
+ + +
+ +
+ +
+ record_exists (line 158) +
+ + +

This function checks for the existence of a particular row in a particular table matching a value.

+

Use this with libdb, unless you want lots of problems. :)

+ +
+ void + + record_exists + + (string $table, string $column, string $val, [string $extra = NULL]) +
+ +
    +
  • + string + $table: name of table
  • +
  • + string + $column: name of column containing value to match
  • +
  • + string + $val: value to match against database (goes in WHERE clause)
  • +
  • + string + $extra: (optional) any AND or ORDER BY or LIMIT or anything you want to add.
  • +
+ + +
+ +
+ +
+ set_error (line 61) +
+ + +

Add an error message to SESSION['errors'] array.

+

The $_SESSION['errors'] array stores error messages.

+ +
+ void + + set_error + + ([string $str = null]) +
+ +
    +
  • + string + $str: message to add (optional)
  • +
+ + +
+ +
+ +
+ set_msg (line 23) +
+ + +

Add a message to SESSION['messages'] array.

+

The $_SESSION['messages'] array stores general or success messages.

+ +
+ void + + set_msg + + ([string $str = null]) +
+ +
    +
  • + string + $str: message to add (optional)
  • +
+ + +
+ +
+ +
+ show_error (line 74) +
+ + +

Show errors messages.

+

Iterates through $_SESSION['errors'] and displays them in a ul.

+ +
+ void + + show_error + + ([string $class = 'error']) +
+ +
    +
  • + string + $class: css class for message style
  • +
+ + +
+ +
+ +
+ show_msg (line 36) +
+ + +

Show messages.

+

Iterates through $_SESSION['messages'] and displays them in a ul.

+ +
+ void + + show_msg + + ([string $class = 'msg']) +
+ +
    +
  • + string + $class: css class for message style
  • +
+ + +
+ +
+ +
+ show_tabs (line 173) +
+ + +

Show user tabs, based on an array.

+ +
+ void + + show_tabs + + (array $tabs, string $current) +
+ +
    +
  • + array + $tabs: array of tabs (name=>href)
  • +
  • + string + $current: name of tab to highlight
  • +
+ + +
+
+
+ +

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/mirror/pub/_php_index_php.html b/docs/mirror/pub/_php_index_php.html new file mode 100644 index 0000000..3546d7f --- /dev/null +++ b/docs/mirror/pub/_php_index_php.html @@ -0,0 +1,75 @@ + + + + + + Docs for page index.php + + + + +
+

/php/index.php

+ + +
+
Description
+ +
+ +

Main handler.

+ +
+
+ + + +
+
Includes
+ +
+ +
+ +
+ + require_once + ('./cfg/config.php') + (line 8) + +
+ + + +
+ +
+ +
+ + require_once + (LIB.'/db.php') + (line 12) + +
+ + + +
+
+
+ + + + +

+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by phpDocumentor 1.3.0RC3 +

+
+ \ No newline at end of file diff --git a/docs/packages.html b/docs/packages.html new file mode 100644 index 0000000..dc8572f --- /dev/null +++ b/docs/packages.html @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/ric_README.html b/docs/ric_README.html new file mode 100644 index 0000000..d3d6790 --- /dev/null +++ b/docs/ric_README.html @@ -0,0 +1,88 @@ + + + + + + + + + + +

README

+
+-----------------------
+Mirror Project
+Open Source Lab
+Oregon State University
+-----------------------
+*Coding Standards
+
+    http://pear.php.net/manual/en/standards.php
+
+*PHP Documentation
+
+	PHP documentation generated by PHP Documentor can be found in /docs.  View index.html using file://.
+
+*Configuration
+
+    Application configuration is done using define() calls.  The configuration script is located in:
+    cfg/config-dist.php
+
+    Copy this config file to cfg/config.php and the init script (cfg/init.php) will process it as intended.
+
+    !! DO NOT store password information in config-dist.php and checkin !!
+
+*Apache
+
+    Don't forget to set up raw logs:
+    ErrorLog "|/usr/bin/cronolog /var/www/download/logs/%Y%m%d/error.log"
+    CustomLog "|/usr/bin/cronolog /var/www/download/logs/%Y%m%d/access.log"
+
+	DB-based logging is configurable by enabling the LOGGING constant in config.php.	
+
+*DB
+
+    DB information is stored in:
+    cfg/mirror.sql
+
+    DB connections are persistent (msyql_pconnect()).  For more info view the PHP manual:
+    http://php.oregonstate.edu/mysql_pconnect
+    http://php.oregonstate.edu/manual/en/features.persistent-connections.php
+
+	The DB server should optimally NOT be localhost (save cycles).
+
+*Questions
+
+    Send questions and rants to <mike dot morgan at oregonstate dot edu>
+
+*Output Buffering
+
+    This application uses output buffering.
+
+    ob_start() is called in inc/header.php.
+    ob_end_flush() is called in inc/footer.php.
+
+    No browser output (echo, print, etc.) should _ever_ happen outside of these boundaries.
+
+*Permissions
+
+    The project directory should be readable by the web server.
+
+*Benchmarking
+
+	!! ALL benchmark referencing /index.php should be done using ?print=true.	!!
+	!! This disables the actual redirects and avoids spamming mirrors.			!!
+
+*Developers
+
+	Scott Kveton <scott at osuosl dot org>
+    Mike Morgan <mike dot morgan at oregonstate dot edu>
+    Alex Polvi <polvi at osuosl dot org>
+    Danny Robert <robert at osuosl dot org>
+
+
+

+ Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3 +

+ + \ No newline at end of file diff --git a/docs/todolist.html b/docs/todolist.html new file mode 100644 index 0000000..533190c --- /dev/null +++ b/docs/todolist.html @@ -0,0 +1,25 @@ + + + + + + Todo List + + + + +

Todo List

+

mirror

+

auth.php

+
    +
  • re-enforce one-per-user session limit
  • +
+

mirror.php

+
    +
  • add transactions once innodb table types are in place
  • +
+

+ Documentation generated on Mon, 8 Nov 2004 13:43:06 -0800 by phpDocumentor 1.3.0RC3 +

+ + \ No newline at end of file diff --git a/php/admin/index.php b/php/admin/index.php new file mode 100644 index 0000000..8c3db5c --- /dev/null +++ b/php/admin/index.php @@ -0,0 +1,111 @@ +Edit Mirror'; + $posts = mirror_get_one_mirror($_POST['mirror_id']); + form_start(); + include_once(INC.'/forms/mirror.php'); + form_hidden('doit','1'); + form_hidden('action','edit'); + form_hidden('mirror_id',$_POST['mirror_id']); + form_submit('submit','','button1','Update'); + form_end(); + require_once(FOOTER); + exit; + } + break; + case 'delete': + if (mirror_delete_mirror($_POST['mirror_id'])) { + set_msg('Mirror deleted successfully.'); + } else { + set_error('Mirror could not be deleted.'); + } + break; + case 'toggle': + if (mirror_toggle($_POST['mirror_id'])) { + set_msg('Mirror enabled/disabled.'); + } else { + set_error('Mirror could not be enabled/disabled.'); + } + } + } else { + set_error('You must select a mirror to continue.'); + } +} + +$title = 'Mirrors'; +$nav = INC.'/admin_nav.php'; +require_once(HEADER); +echo '

Mirrors

'; + +show_error(); +show_msg(); + +$mirrors = mirror_get_mirrors(); + +$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'mirror_active'; +$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC'; +$mirrors=array_order_by($mirrors,$_GET['sort'],$_GET['order']); + +$headers = array( + 'mirror_id'=>'', + 'mirror_active'=>'Status', + 'mirror_rating'=>'Rating', + 'mirror_name'=>'Host Name', + 'mirror_baseurl'=>'Address', + 'region_name'=>'Region', + 'mirror_count'=>'Hits' +); + +$actions = array( + 'toggle'=>'Enable/Disable', + 'edit'=>'Edit', + 'delete'=>'Delete' +); + +form_start(); +show_list($mirrors,$headers,'radio',$actions); +form_end(); + +echo '

Add a Mirror

'; +form_start(); +include_once(INC.'/forms/mirror.php'); +form_submit('add-submit','','button1','Add Mirror'); +form_end(); + +require_once(FOOTER); +?> diff --git a/php/admin/locations.php b/php/admin/locations.php new file mode 100644 index 0000000..f1bb456 --- /dev/null +++ b/php/admin/locations.php @@ -0,0 +1,100 @@ +Edit Location'; + $posts = mirror_get_one_location($_POST['location_id']); + form_start(); + include_once(INC.'/forms/location.php'); + form_hidden('doit','1'); + form_hidden('action','edit'); + form_hidden('location_id',$_POST['location_id']); + form_submit('submit','','button1','Update'); + form_end(); + require_once(FOOTER); + exit; + } + break; + case 'delete': + if (mirror_delete_location($_POST['location_id'])) { + set_msg('Location deleted successfully.'); + } else { + set_error('Location could not be deleted.'); + } + break; + } + } else { + set_error('You must select a mirror to continue.'); + } +} + +$title = 'Locations'; +$nav = INC.'/admin_nav.php'; +require_once(HEADER); +echo '

Locations

'; +show_error(); +show_msg(); + +$locations = mirror_get_locations(); + +$_GET['sort'] = (!empty($_GET['sort']))?$_GET['sort']:'product_name'; +$_GET['order'] = (!empty($_GET['order']))?$_GET['order']:'ASC'; +$locations = array_order_by($locations,$_GET['sort'],$_GET['order']); + +$headers = array( + 'location_id'=>'', + 'product_name'=>'Product', + 'os_name'=>'OS', + 'location_path'=>'Path' +); + +$actions = array( + 'edit'=>'Edit', + 'delete'=>'Delete' +); + +form_start(); +show_list($locations,$headers,'radio',$actions); +form_end(); + +echo '

Add a Location

'; +form_start(); +include_once(INC.'/forms/location.php'); +form_submit('add-submit','','button1','Add Location'); +form_end(); + +require_once(FOOTER); +?> diff --git a/php/admin/login.php b/php/admin/login.php new file mode 100644 index 0000000..5e9d4c3 --- /dev/null +++ b/php/admin/login.php @@ -0,0 +1,42 @@ + +

Gentoo Mirror Manager Login

+'.$msg.'':null; ?> +
+
+ + +
+
+
+ + +
+
+ +
+ diff --git a/php/admin/logout.php b/php/admin/logout.php new file mode 100644 index 0000000..d980d9d --- /dev/null +++ b/php/admin/logout.php @@ -0,0 +1,12 @@ + diff --git a/php/admin/lstats.php b/php/admin/lstats.php new file mode 100644 index 0000000..f7f1900 --- /dev/null +++ b/php/admin/lstats.php @@ -0,0 +1,59 @@ +'Status', + 'mirror_name'=>'Host Name', + 'mirror_baseurl'=>'Address', + 'location_path'=>'Path' +); + +// should we export to csv? +if (!empty($_GET['csv'])) { + $csv = array(); + $csv[] = $headers; + foreach ($stats as $row) { + $csv[] = $row; + } + csv_send_csv($csv); + exit; +} + +$title = 'Location Statistics'; +$nav = INC.'/admin_nav.php'; +require_once(HEADER); +echo '

Location Statistics

'; + +echo '

This shows whether or not a server is serving up a certain file.

'; + +show_list($stats,$headers,'simple'); + +echo '

Save this page as CSV »

'; + +require_once(FOOTER); +?> diff --git a/php/admin/mirror-list.php b/php/admin/mirror-list.php new file mode 100644 index 0000000..c161efd --- /dev/null +++ b/php/admin/mirror-list.php @@ -0,0 +1,74 @@ +Mirror List'; + echo '

Use this form to get a list of all mirrors serving up active files + for the selected Product/OS.

'; + form_start('list','list','get','./mirror-list.php'); + echo '
'; + form_label('Product', 'product','label-small'); + form_select('product_id','product','',mirror_get_products_select(),$posts['product_id']); + echo ' [edit products]'; + echo '

'; + + echo '
'; + form_label('OS', 'os','label-small'); + form_select('os_id','os','',mirror_get_oss_select(),$posts['os_id']); + echo ' [edit operating systems]'; + echo '

'; + form_submit('submit','','button1','Update'); + form_end(); + require_once(FOOTER); +} +?> diff --git a/php/admin/mstats.php b/php/admin/mstats.php new file mode 100644 index 0000000..5778d16 --- /dev/null +++ b/php/admin/mstats.php @@ -0,0 +1,32 @@ +Mirror Statistics'; + +$stats = mirror_get_mirror_stats(); + +$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'count'; +$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'DESC'; +$stats=array_order_by($stats,$_GET['sort'],$_GET['order']); + +$headers = array( + 'count'=>'Hits', + 'mirror_rating'=>'Rating', + 'mirror_name'=>'Host Name', + 'mirror_baseurl'=>'Address', + 'region_name'=>'Region' +); + +show_list($stats,$headers,'simple'); + +require_once(FOOTER); +?> diff --git a/php/admin/os.php b/php/admin/os.php new file mode 100644 index 0000000..b150245 --- /dev/null +++ b/php/admin/os.php @@ -0,0 +1,100 @@ +Edit OS'; + $posts = mirror_get_one_os($_POST['os_id']); + form_start(); + include_once(INC.'/forms/os.php'); + form_hidden('doit','1'); + form_hidden('action','edit'); + form_hidden('os_id',$_POST['os_id']); + form_submit('submit','','button1','Update'); + form_end(); + require_once(FOOTER); + exit; + } + break; + case 'delete': + if (!record_exists('mirror_locations','os_id',$_POST['os_id'])&&mirror_delete_os($_POST['os_id'])) { + set_msg('OS deleted successfully.'); + } else { + set_error('OS cannot be deleted because it is being used by a file location.'); + } + break; + } + } else { + set_error('You must select a os to continue.'); + } +} + +$title = 'Operating Systems'; +$nav = INC.'/admin_nav.php'; +require_once(HEADER); +echo '

Operating Systems

'; + +show_error(); +show_msg(); + +$oss = mirror_get_oss(); + +$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'os_name'; +$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC'; +$oss=array_order_by($oss,$_GET['sort'],$_GET['order']); + +$headers = array( + 'os_id'=>'', + 'os_name'=>'OS Name', + 'os_priority'=>'Priority' +); + +$actions = array( + 'edit'=>'Edit', + 'delete'=>'Delete' +); + +form_start(); +show_list($oss,$headers,'radio',$actions); +form_end(); + +echo '

Add a OS

'; +form_start(); +include_once(INC.'/forms/os.php'); +form_submit('add-submit','','button1','Add OS'); +form_end(); + +require_once(FOOTER); +?> diff --git a/php/admin/products.php b/php/admin/products.php new file mode 100644 index 0000000..e93686f --- /dev/null +++ b/php/admin/products.php @@ -0,0 +1,101 @@ +Edit Product'; + $posts = mirror_get_one_product($_POST['product_id']); + form_start(); + include_once(INC.'/forms/product.php'); + form_hidden('doit','1'); + form_hidden('action','edit'); + form_hidden('product_id',$_POST['product_id']); + form_submit('submit','','button1','Update'); + form_end(); + require_once(FOOTER); + exit; + } + break; + case 'delete': + if (!record_exists('mirror_locations','product_id',$_POST['product_id'])&&mirror_delete_product($_POST['product_id'])) { + set_msg('Product deleted successfully.'); + } else { + set_error('Product cannot be deleted because it is being used by a file location.'); + } + break; + } + } else { + set_error('You must select a product to continue.'); + } +} + +$title = 'Products'; +$nav = INC.'/admin_nav.php'; +require_once(HEADER); +echo '

Products

'; + +show_error(); +show_msg(); + +$products = mirror_get_products(); + +$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'product_name'; +$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC'; +$products=array_order_by($products,$_GET['sort'],$_GET['order']); + +$headers = array( + 'product_id'=>'', + 'product_name'=>'Product Name', + 'product_priority'=>'Priority', + 'product_count'=>'Downloads' +); + +$actions = array( + 'edit'=>'Edit', + 'delete'=>'Delete' +); + +form_start(); +show_list($products,$headers,'radio',$actions); +form_end(); + +echo '

Add a Product

'; +form_start(); +include_once(INC.'/forms/product.php'); +form_submit('add-submit','','button1','Add Product'); +form_end(); + +require_once(FOOTER); +?> diff --git a/php/admin/pstats.php b/php/admin/pstats.php new file mode 100644 index 0000000..e0b4aff --- /dev/null +++ b/php/admin/pstats.php @@ -0,0 +1,29 @@ +Product Statistics'; + +$stats = mirror_get_product_stats(); + +$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'count'; +$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'DESC'; +$stats=array_order_by($stats,$_GET['sort'],$_GET['order']); + +$headers = array( + 'count'=>'Hits', + 'product_name'=>'Product' +); + +show_list($stats,$headers,'simple'); + +require_once(FOOTER); +?> diff --git a/php/admin/regions.php b/php/admin/regions.php new file mode 100644 index 0000000..f42c0da --- /dev/null +++ b/php/admin/regions.php @@ -0,0 +1,101 @@ +Edit Region'; + $posts = mirror_get_one_region($_POST['region_id']); + form_start(); + include_once(INC.'/forms/region.php'); + form_hidden('doit','1'); + form_hidden('action','edit'); + form_hidden('region_id',$_POST['region_id']); + form_submit('submit','','button1','Update'); + form_end(); + require_once(FOOTER); + exit; + } + break; + case 'delete': + if (!record_exists('mirror_mirror_region_map','region_id',$_POST['region_id'])&&mirror_delete_region($_POST['region_id'])) { + set_msg('Region deleted successfully.'); + } else { + set_error('Region cannot be deleted because it is linked to a mirror.'); + } + break; + } + } else { + set_error('You must select a region to continue.'); + } +} + +$title = 'Regions'; +$nav = INC.'/admin_nav.php'; +require_once(HEADER); +echo '

Regions

'; + +show_error(); +show_msg(); + +$regions = mirror_get_regions(); + +$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'region_name'; +$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC'; +$regions=array_order_by($regions,$_GET['sort'],$_GET['order']); + +$headers = array( + 'region_id'=>'', + 'region_name'=>'Region Name', + 'mirrors'=>'Mirrors', + 'region_priority'=>'Priority' +); + +$actions = array( + 'edit'=>'Edit', + 'delete'=>'Delete' +); + +form_start(); +show_list($regions,$headers,'radio',$actions); +form_end(); + +echo '

Add a Region

'; +form_start(); +include_once(INC.'/forms/region.php'); +form_submit('add-submit','','button1','Add Region'); +form_end(); + +require_once(FOOTER); +?> diff --git a/php/admin/users.php b/php/admin/users.php new file mode 100644 index 0000000..3017c49 --- /dev/null +++ b/php/admin/users.php @@ -0,0 +1,104 @@ +Edit User'; + $posts = mirror_get_one_user($_POST['user_id']); + form_start(); + include_once(INC.'/forms/user.php'); + form_hidden('doit','1'); + form_hidden('action','edit'); + form_hidden('user_id',$_POST['user_id']); + form_submit('submit','','button1','Update'); + form_end(); + require_once(FOOTER); + exit; + } + break; + case 'delete': + if ($_POST['user_id']==$_SESSION['user']['user_id']) { + set_error('You cannot delete yourself.'); + } elseif (mirror_delete_user($_POST['user_id'])) { + set_msg('User deleted successfully.'); + } else { + set_error('User could not be deleted because of an error.'); + } + break; + } + } else { + set_error('You must select a user to continue.'); + } +} + +$title = 'Users'; +$nav = INC.'/admin_nav.php'; +require_once(HEADER); +echo '

Users

'; + +show_error(); +show_msg(); + +$users = mirror_get_users(); + +$_GET['sort'] = (!empty($_GET['sort']))?$_GET['sort']:'user_lastname'; +$_GET['order'] = (!empty($_GET['order']))?$_GET['order']:'ASC'; +$users = array_order_by($users,$_GET['sort'],$_GET['order']); + +$headers = array( + 'user_id'=>'', + 'user_lastname'=>'Last', + 'user_firstname'=>'First', + 'user_email'=>'Email', + 'username'=>'Username' +); + +$actions = array( + 'edit'=>'Edit', + 'delete'=>'Delete' +); + +form_start(); +show_list($users,$headers,'radio',$actions); +form_end(); + +echo '

Add a User

'; +form_start(); +include_once(INC.'/forms/user.php'); +form_submit('add-submit','','button1','Add User'); +form_end(); + +require_once(FOOTER); +?> diff --git a/php/cfg/admin_init.php b/php/cfg/admin_init.php new file mode 100644 index 0000000..7d22ab3 --- /dev/null +++ b/php/cfg/admin_init.php @@ -0,0 +1,15 @@ + diff --git a/php/cfg/config-dist.php b/php/cfg/config-dist.php new file mode 100644 index 0000000..308e844 --- /dev/null +++ b/php/cfg/config-dist.php @@ -0,0 +1,18 @@ + diff --git a/php/cfg/init.php b/php/cfg/init.php new file mode 100644 index 0000000..4eb6ed0 --- /dev/null +++ b/php/cfg/init.php @@ -0,0 +1,18 @@ + diff --git a/php/css/print.css b/php/css/print.css new file mode 100644 index 0000000..e69de29 diff --git a/php/css/screen.css b/php/css/screen.css new file mode 100644 index 0000000..e2e67c9 --- /dev/null +++ b/php/css/screen.css @@ -0,0 +1,84 @@ +/* nav */ +ul#nav li a { + font-weight:bold; +} +ul#nav li ul li a { + font-weight:normal; +} +.logout { + color:#f00; +} + +/* forms */ +.label-small { + display: inline; + float: left; + width: 8em; + padding-right: 1ex; + text-align:right; +} +.label-medium{ + display: inline; + float: left; + width: 14em; + padding-right: 1ex; + text-align:right; +} +.label-large{ + display: inline; + float: left; + width: 20em; + padding-right: 1ex; + text-align:right; +} +.button1 { + background-color:#9c9; + cursor:pointer; +} +.button1:hover { + background-color:#fff; + border:inset 2px #999; +} + +/* lists */ +.list { + margin-top:.5em; +} +.list td { + padding:.2em; + text-align:left; +} +.list td label { + border-bottom:1px dashed #999; + font-weight:normal; +} +.list th { + background:#eee; + border:1px solid #000; + font-weight:bold; + padding:0; +} +.list th a { + display:block; + padding:.2em 1.2em .2em .2em; + text-align:left; +} +.list th a:hover { + background-color:#fff; +} +.row1 { + background:#ddd; +} +.row2 { + background:#ccc; +} +.row1:hover, .row2:hover { + background-color:#fff; +} +.sort-desc { + background:#ccf url(../img/up.gif) no-repeat right; +} +.sort-asc { + background:#ccf url(../img/down.gif) no-repeat right; +} + diff --git a/php/images/gridtest.gif b/php/images/gridtest.gif new file mode 100644 index 0000000..6dd05dc Binary files /dev/null and b/php/images/gridtest.gif differ diff --git a/php/images/gtop-www.jpg b/php/images/gtop-www.jpg new file mode 100644 index 0000000..4122618 Binary files /dev/null and b/php/images/gtop-www.jpg differ diff --git a/php/img/down.gif b/php/img/down.gif new file mode 100644 index 0000000..2813965 Binary files /dev/null and b/php/img/down.gif differ diff --git a/php/img/up.gif b/php/img/up.gif new file mode 100644 index 0000000..6d5a795 Binary files /dev/null and b/php/img/up.gif differ diff --git a/php/inc/admin_nav.php b/php/inc/admin_nav.php new file mode 100644 index 0000000..073ab0a --- /dev/null +++ b/php/inc/admin_nav.php @@ -0,0 +1,27 @@ + + diff --git a/php/inc/footer.php b/php/inc/footer.php new file mode 100644 index 0000000..efa17e7 --- /dev/null +++ b/php/inc/footer.php @@ -0,0 +1,24 @@ + + +
+ +'; +} +?> + + + + + diff --git a/php/inc/forms/location.php b/php/inc/forms/location.php new file mode 100644 index 0000000..60e35cb --- /dev/null +++ b/php/inc/forms/location.php @@ -0,0 +1,23 @@ +'; +form_label('Product', 'product','label-small'); +form_select('product_id','product','',mirror_get_products_select(),$posts['product_id']); +echo ' [edit products]'; +echo '
'; + +echo '
'; +form_label('OS', 'os','label-small'); +form_select('os_id','os','',mirror_get_oss_select(),$posts['os_id']); +echo ' [edit operating systems]'; +echo '

'; + +echo '
'; +form_label('File Location', 'floc','label-small'); +form_text('location_path', 'floc', '', $posts['location_path'], 30, 100); +echo '

'; +?> diff --git a/php/inc/forms/mirror.php b/php/inc/forms/mirror.php new file mode 100644 index 0000000..c1e7dcb --- /dev/null +++ b/php/inc/forms/mirror.php @@ -0,0 +1,27 @@ +'; +form_label('Mirror Name', 'mname','label-small'); +form_text('mirror_name', 'mname', '', $posts['mirror_name'], 30, 100); +echo '
'; + +echo '
'; +form_label('Region', 'mregion','label-small'); +form_select('region_id','mregion','',mirror_get_regions_select(),$posts['region_id']); +echo ' [edit regions]'; +echo '

'; + +echo '
'; +form_label('Base URL', 'murl','label-small'); +form_text('mirror_baseurl', 'murl', '', $posts['mirror_baseurl'], 30, 100); +echo '

'; + +echo '
'; +form_label('Rating', 'mrating','label-small'); +form_text('mirror_rating', 'mrating', '', $posts['mirror_rating'], 30, 100); +echo '

'; +?> diff --git a/php/inc/forms/os.php b/php/inc/forms/os.php new file mode 100644 index 0000000..63a7643 --- /dev/null +++ b/php/inc/forms/os.php @@ -0,0 +1,16 @@ +'; +form_label('OS Name', 'oname','label-small'); +form_text('os_name', 'oname', '', $posts['os_name'], 30, 100); +echo '
'; + +echo '
'; +form_label('Priority', 'p','label-small'); +form_text('os_priority', 'p', '', $posts['os_priority'], 30, 100); +echo '

'; +?> diff --git a/php/inc/forms/product.php b/php/inc/forms/product.php new file mode 100644 index 0000000..0dc3c04 --- /dev/null +++ b/php/inc/forms/product.php @@ -0,0 +1,16 @@ +'; +form_label('Product Name', 'pname','label-small'); +form_text('product_name', 'pname', '', $posts['product_name'], 30, 100); +echo '
'; + +echo '
'; +form_label('Priority', 'pty','label-small'); +form_text('product_priority', 'pty', '', $posts['product_priority'], 30, 100); +echo '

'; +?> diff --git a/php/inc/forms/region.php b/php/inc/forms/region.php new file mode 100644 index 0000000..9262809 --- /dev/null +++ b/php/inc/forms/region.php @@ -0,0 +1,16 @@ +'; +form_label('Region Name', 'rname','label-small'); +form_text('region_name', 'rname', '', $posts['region_name'], 30, 100); +echo '
'; + +echo '
'; +form_label('Priority', 'rp','label-small'); +form_text('region_priority', 'rp', '', $posts['region_priority'], 30, 100); +echo '

'; +?> diff --git a/php/inc/forms/user.php b/php/inc/forms/user.php new file mode 100644 index 0000000..bfd92bc --- /dev/null +++ b/php/inc/forms/user.php @@ -0,0 +1,37 @@ +'; +form_label('Username', 'uname','label-small'); +form_text('username', 'uname', '', $posts['username'], 30, 100); +echo '
'; + +echo '
'; +form_label('Password', 'password','label-small'); +form_password('password', 'password', '', 30, 100); +echo '

'; + +echo '
'; +form_label('Re-enter Password', 'rpassword','label-small'); +form_password('rpassword', 'rpassword', '', 30, 100); +echo '

'; + +echo '
'; +form_label('First Name', 'fname','label-small'); +form_text('user_firstname', 'fname', '', $posts['user_firstname'], 30, 100); +echo '

'; + +echo '
'; +form_label('Last Name', 'lname','label-small'); +form_text('user_lastname', 'lname', '', $posts['user_lastname'], 30, 100); +echo '

'; + +echo '
'; +form_label('Email', 'email','label-small'); +form_text('user_email', 'email', '', $posts['user_email'], 30, 100); +echo '

'; + +?> diff --git a/php/inc/header.php b/php/inc/header.php new file mode 100644 index 0000000..dbe97b2 --- /dev/null +++ b/php/inc/header.php @@ -0,0 +1,55 @@ + + + + + + + + + + +<?php echo $title; ?> + + + + +> +
+