functions.php File ReferenceAll of the functions we use on our website. More...
Go to the source code of this file.
|
Classes |
class | menu_tree_node |
| The class that holds all the information about a menu node. More...
|
Functions |
| cookie_check () |
| echos some debug info for testing cookies
|
| linky ($url) |
| Prints the php for a simple link.
|
| thumbnailer ($file_name, $image_title, $caption=NULL) |
| Creates a thumbnail based upon my conventions.
|
| rightThumbnailer ($file_name, $image_title, $caption=NULL) |
| Similar to Thumbnailer, but align=right for the image.
|
| leftThumbnailer ($file_name, $image_title, $caption=NULL) |
| Similar to Thumbnailer, but align=left for the image.
|
| print_standard_top ($title) |
| Prints the php for the standard top of prestopnik.com.
|
| print_dox_top () |
| Prints the php for the standard top of prestopnik.com.
|
| print_prev_next_day_begin ($prev_link, $title, $next_link) |
| Prints links to the previous and next page.
|
| print_prev_next_day_end ($prev_link, $title, $next_link) |
| Prints links to the previous and next page.
|
| print_standard_bottom () |
| Prints the php for the standard bottom of prestopnik.com.
|
| print_main_table_bgcolor () |
| Prints the main table bgcolor based upon the users cookie.
|
| print_color_test () |
| A simple test of php colors.
|
| tqbf () |
| prints a standard typing line
|
| print_node ($root) |
| Pretty-prints a node.
|
| clean_print_node ($root) |
| Prints just the info from a node with no details.
|
| load_tree ($file_name) |
| Loads a tree of menu nodes from a file.
|
| read_and_add_node (&$lines, &$root) |
| A helper function for load_tree.
|
| print_full_tree ($root) |
| Pretty-prints each node of a tree.
|
| clean_print_full_tree ($root) |
| Prints each node of a tree.
|
| get_parent_n ($root, $node) |
| If node is in the subtree of root, its parent is returned.
|
| get_parent ($root, $url) |
| Gets the parent of the node based upon url.
|
| create_menu_tree () |
| Creates an antiquated menu tree.
|
| create_tn_link ($image_dir, $file_name, $title) |
| Creates a thumbnail with a link to the displayImage page of the larger image.
|
| create_and_print_menu () |
| Calls create_menu_tree and then print_menu on the returned tree.
|
| print_menu ($real_root, $root, $num_spaces=0) |
| Recursively prints the menu for this page.
|
| getNodesFromURL ($root, $url) |
| Returns an array of the nodes that have the specified URL.
|
| getNodeFromURL ($root, $url) |
| Returns the first node found that has the specified URL.
|
| display_menu_node ($root, $node, $num_spaces) |
| Prints the node if it meets one of four tests.
|
| is_parent ($node_p, $node) |
| Returns true if node_p is the parent of node, false otherwise.
|
| is_sibling ($root, $node1, $node2) |
| Returns true if node1 & node2 are siblings in the tree rooted by root.
|
| is_child ($node_p, $node_c) |
| Returns true if node_p is the parent of node_c, false otherwise.
|
| is_ancestor ($node, $node_a) |
| Returns true if node_a is an ancestor of node, false otherwise.
|
| is_descendent ($node, $node_d) |
| Returns true if node_d is an descendent of node, false otherwise.
|
| in_path ($node, $node_top, $node_bottom) |
| Returns true if $node_bottom is a descendent of $node and a $node_top is an ancestor of $node).
|
| print_node_link ($node, $num_spaces) |
| Prints a menu link for a node.
|
| print_unfinished_link ($name, $url) |
| Prints a link to $url with $name as the text.
|
| print_link ($name, $url) |
| Prints a link to $url with $name as the text.
|
| get_this_parent ($root) |
| Finds the node that is the parent of the page we are on.
|
| print_wedding_gallery_top () |
| A simple function to print the top of a wedding gallery.
|
| print_wed_gal_4_row ($num1, $num2, $num3, $num4) |
| A function to print a row of 4 landscape wedding photo thumbnails with appropriate links.
|
| print_wedding_gallery_4_row ($filename1, $imageTitle1, $tn_filename1, $filename2, $imageTitle2, $tn_filename2, $filename3, $imageTitle3, $tn_filename3, $filename4, $imageTitle4, $tn_filename4) |
| A more complicated function to print a row of 4 landscape wedding photo thumbnails with appropriate links.
|
| print_wed_gal_6_row ($num1, $num2, $num3, $num4, $num5, $num6) |
| A function to print a row of 6 portrait wedding photo thumbnails with appropriate links.
|
| print_wedding_gallery_6_row ($filename1, $imageTitle1, $tn_filename1, $filename2, $imageTitle2, $tn_filename2, $filename3, $imageTitle3, $tn_filename3, $filename4, $imageTitle4, $tn_filename4, $filename5, $imageTitle5, $tn_filename5, $filename6, $imageTitle6, $tn_filename6) |
| A more complicated function to print a row of 6 portrait wedding photo thumbnails with appropriate links.
|
| print_wedding_gallery_bottom () |
| Just a stub that does nothing.
|
| load_and_print_menu ($file_name) |
| Loads the tree from the text file, decides what to print, and prints it.
|
| determine_print_values (&$root, $set_children) |
| Determines which nodes in the menu tree should be printed.
|
| smart_print_menu ($real_root, $root, $num_spaces=0) |
| Recursively traverses the list and print any node that has print_value > 0.
|
Variables |
| $GlobalSerial = 0 |
| A global variable that is used to differentiate between different instances of classes that have the same state.
|
Detailed Description
All of the functions we use on our website.
This file contains functions for creating the menu, generating the standard top and bottom of the page, creating various types of links, etc.
Definition in file functions.php.
Function Documentation
clean_print_full_tree |
( |
$ |
root |
) |
|
|
clean_print_node |
( |
$ |
root |
) |
|
|
|
Prints just the info from a node with no details.
- Parameters:
-
[in] | root | - the node to be printed |
Definition at line 508 of file functions.php.
Referenced by clean_print_full_tree(). 00509 {
00510 echo $root->url;
00511 echo "<br>";
00512 echo $root->menu_name;
00513 echo "<br>";
00514 if ($root->hidden == true)
00515 echo "true";
00516 else
00517 echo "false";
00518 echo "<br>";
00519 echo $root->font_size;
00520 echo "<br>";
00521 echo $root->icon;
00522 echo "<br>";
00523 echo count($root->children_pages);
00524 echo "<br>";
00525 }
|
|
Creates an antiquated menu tree.
- Deprecated:
- This function has been replaced by load_menu_tree This is the original manner in which menu trees were created. Now they should be loaded from a text file with load_menu_tree.
Definition at line 685 of file functions.php.
Referenced by create_and_print_menu(). 00686 {
00687 $root = new menu_tree_node();
00688 $root->children_pages[0] = new menu_tree_node();
00689 $root->children_pages[0]->url = "index.php";
00690 $root->children_pages[0]->menu_name = "Front Page";
00691
00692 $root->children_pages[1] = new menu_tree_node();
00693 $root->children_pages[1]->url = "wedding/index.php";
00694 $root->children_pages[1]->menu_name = "Wedding";
00695
00696 $root->children_pages[1]->children_pages[1] = new menu_tree_node();
00697 $root->children_pages[1]->children_pages[1]->url = "wedding/planning_index.php";
00698 $root->children_pages[1]->children_pages[1]->menu_name = "Pre-Wedding";
00699
00700 $root->children_pages[1]->children_pages[1]->children_pages[3] = new menu_tree_node();
00701 $root->children_pages[1]->children_pages[1]->children_pages[3]->url = "wedding/photographers.php";
00702 $root->children_pages[1]->children_pages[1]->children_pages[3]->menu_name = "Photographer";
00703
00704 $root->children_pages[1]->children_pages[1]->children_pages[2] = new menu_tree_node();
00705 $root->children_pages[1]->children_pages[1]->children_pages[2]->url = "wedding/reception.php";
00706 $root->children_pages[1]->children_pages[1]->children_pages[2]->menu_name = "Reception";
00707
00708 $root->children_pages[1]->children_pages[1]->children_pages[1] = new menu_tree_node();
00709 $root->children_pages[1]->children_pages[1]->children_pages[1]->url = "wedding/ceremony.php";
00710 $root->children_pages[1]->children_pages[1]->children_pages[1]->menu_name = "Ceremony";
00711
00712 $root->children_pages[1]->children_pages[1]->children_pages[4] = new menu_tree_node();
00713 $root->children_pages[1]->children_pages[1]->children_pages[4]->url = "wedding/florist.php";
00714 $root->children_pages[1]->children_pages[1]->children_pages[4]->menu_name = "Flowers";
00715
00716 $root->children_pages[1]->children_pages[1]->children_pages[5] = new menu_tree_node();
00717 $root->children_pages[1]->children_pages[1]->children_pages[5]->url = "wedding/attire.php";
00718 $root->children_pages[1]->children_pages[1]->children_pages[5]->menu_name = "Attire";
00719
00720 $root->children_pages[1]->children_pages[1]->children_pages[6] = new menu_tree_node();
00721 $root->children_pages[1]->children_pages[1]->children_pages[6]->url = "wedding/entertainment.php";
00722 $root->children_pages[1]->children_pages[1]->children_pages[6]->menu_name = "Entertainment";
00723
00724 $root->children_pages[1]->children_pages[1]->children_pages[0] = new menu_tree_node();
00725 $root->children_pages[1]->children_pages[1]->children_pages[0]->url = "wedding/guest_info.php";
00726 $root->children_pages[1]->children_pages[1]->children_pages[0]->menu_name = "Guest Info";
00727
00728 $root->children_pages[1]->children_pages[1]->children_pages[7] = new menu_tree_node();
00729 $root->children_pages[1]->children_pages[1]->children_pages[7]->url = "wedding/budget.php";
00730 $root->children_pages[1]->children_pages[1]->children_pages[7]->menu_name = "Budget/Expense";
00731 $root->children_pages[1]->children_pages[1]->children_pages[7]->hidden = true;
00732
00733 $root->children_pages[1]->children_pages[1]->children_pages[8] = new menu_tree_node();
00734 $root->children_pages[1]->children_pages[1]->children_pages[8]->url = "wedding/invitations.php";
00735 $root->children_pages[1]->children_pages[1]->children_pages[8]->menu_name = "Invitations";
00736 $root->children_pages[1]->children_pages[1]->children_pages[8]->hidden = true;
00737
00738 $root->children_pages[1]->children_pages[0] = new menu_tree_node();
00739 $root->children_pages[1]->children_pages[0]->url = "wedding/photos.php";
00740 $root->children_pages[1]->children_pages[0]->menu_name = "Photos";
00741
00742 $root->children_pages[1]->children_pages[0]->children_pages[0] = new menu_tree_node();
00743 $root->children_pages[1]->children_pages[0]->children_pages[0]->url = "wedding/julie_hair_makeup_gallery.php";
00744 $root->children_pages[1]->children_pages[0]->children_pages[0]->menu_name ="1 - 34";
00745 $root->children_pages[1]->children_pages[0]->children_pages[0]->icon = "images/camera_icon.gif";
00746
00747 $root->children_pages[1]->children_pages[0]->children_pages[1] = new menu_tree_node();
00748 $root->children_pages[1]->children_pages[0]->children_pages[1]->url = "wedding/paul_getting_ready_gallery.php";
00749 $root->children_pages[1]->children_pages[0]->children_pages[1]->menu_name ="35 - 53";
00750 $root->children_pages[1]->children_pages[0]->children_pages[1]->icon = "images/camera_icon.gif";
00751
00752 $root->children_pages[1]->children_pages[0]->children_pages[2] = new menu_tree_node();
00753 $root->children_pages[1]->children_pages[0]->children_pages[2]->url = "wedding/julie_getting_dressed_gallery.php";
00754 $root->children_pages[1]->children_pages[0]->children_pages[2]->menu_name ="54 - 74";
00755 $root->children_pages[1]->children_pages[0]->children_pages[2]->icon = "images/camera_icon.gif";
00756
00757 $root->children_pages[1]->children_pages[0]->children_pages[3] = new menu_tree_node();
00758 $root->children_pages[1]->children_pages[0]->children_pages[3]->url = "wedding/pre_ceremony_gallery.php";
00759 $root->children_pages[1]->children_pages[0]->children_pages[3]->menu_name ="75 - 139";
00760 $root->children_pages[1]->children_pages[0]->children_pages[3]->icon = "images/camera_icon.gif";
00761
00762 $root->children_pages[1]->children_pages[0]->children_pages[4] = new menu_tree_node();
00763 $root->children_pages[1]->children_pages[0]->children_pages[4]->url = "wedding/pre_ceremony_gallery1.php";
00764 $root->children_pages[1]->children_pages[0]->children_pages[4]->menu_name =" (Pg 1)";
00765 $root->children_pages[1]->children_pages[0]->children_pages[4]->font_size ="small";
00766 $root->children_pages[1]->children_pages[0]->children_pages[4]->icon = "images/camera_icon.gif";
00767
00768 $root->children_pages[1]->children_pages[0]->children_pages[5] = new menu_tree_node();
00769 $root->children_pages[1]->children_pages[0]->children_pages[5]->url = "wedding/pre_ceremony_gallery2.php";
00770 $root->children_pages[1]->children_pages[0]->children_pages[5]->menu_name =" (Pg 2)";
00771 $root->children_pages[1]->children_pages[0]->children_pages[5]->font_size ="small";
00772 $root->children_pages[1]->children_pages[0]->children_pages[5]->icon = "images/camera_icon.gif";
00773
00774 $root->children_pages[1]->children_pages[0]->children_pages[6] = new menu_tree_node();
00775 $root->children_pages[1]->children_pages[0]->children_pages[6]->url = "wedding/ceremony_processional_gallery.php";
00776 $root->children_pages[1]->children_pages[0]->children_pages[6]->menu_name ="140 - 160";
00777 $root->children_pages[1]->children_pages[0]->children_pages[6]->icon = "images/camera_icon.gif";
00778
00779 $root->children_pages[1]->children_pages[0]->children_pages[7] = new menu_tree_node();
00780 $root->children_pages[1]->children_pages[0]->children_pages[7]->url = "wedding/ceremony_gallery.php";
00781 $root->children_pages[1]->children_pages[0]->children_pages[7]->menu_name ="161 - 244";
00782 $root->children_pages[1]->children_pages[0]->children_pages[7]->icon = "images/camera_icon.gif";
00783
00784 $root->children_pages[1]->children_pages[0]->children_pages[8] = new menu_tree_node();
00785 $root->children_pages[1]->children_pages[0]->children_pages[8]->url = "wedding/ceremony_gallery1.php";
00786 $root->children_pages[1]->children_pages[0]->children_pages[8]->menu_name =" (Pg 1)";
00787 $root->children_pages[1]->children_pages[0]->children_pages[8]->font_size ="small";
00788 $root->children_pages[1]->children_pages[0]->children_pages[8]->icon = "images/camera_icon.gif";
00789
00790 $root->children_pages[1]->children_pages[0]->children_pages[9] = new menu_tree_node();
00791 $root->children_pages[1]->children_pages[0]->children_pages[9]->url = "wedding/ceremony_gallery2.php";
00792 $root->children_pages[1]->children_pages[0]->children_pages[9]->menu_name =" (Pg 2)";
00793 $root->children_pages[1]->children_pages[0]->children_pages[9]->font_size ="small";
00794 $root->children_pages[1]->children_pages[0]->children_pages[9]->icon = "images/camera_icon.gif";
00795
00796 $root->children_pages[1]->children_pages[0]->children_pages[10] = new menu_tree_node();
00797 $root->children_pages[1]->children_pages[0]->children_pages[10]->url = "wedding/ceremony_recessional_gallery.php";
00798 $root->children_pages[1]->children_pages[0]->children_pages[10]->menu_name ="245 - 254";
00799 $root->children_pages[1]->children_pages[0]->children_pages[10]->icon = "images/camera_icon.gif";
00800
00801 $root->children_pages[1]->children_pages[0]->children_pages[11] = new menu_tree_node();
00802 $root->children_pages[1]->children_pages[0]->children_pages[11]->url = "wedding/post_ceremony_gallery.php";
00803 $root->children_pages[1]->children_pages[0]->children_pages[11]->menu_name ="255 - 273";
00804 $root->children_pages[1]->children_pages[0]->children_pages[11]->icon = "images/camera_icon.gif";
00805
00806 $root->children_pages[1]->children_pages[0]->children_pages[12] = new menu_tree_node();
00807 $root->children_pages[1]->children_pages[0]->children_pages[12]->url = "wedding/formal_family_gallery.php";
00808 $root->children_pages[1]->children_pages[0]->children_pages[12]->menu_name ="274 - 390";
00809 $root->children_pages[1]->children_pages[0]->children_pages[12]->icon = "images/camera_icon.gif";
00810
00811 $root->children_pages[1]->children_pages[0]->children_pages[13] = new menu_tree_node();
00812 $root->children_pages[1]->children_pages[0]->children_pages[13]->url = "wedding/formal_family_gallery1.php";
00813 $root->children_pages[1]->children_pages[0]->children_pages[13]->menu_name =" (Pg 1)";
00814 $root->children_pages[1]->children_pages[0]->children_pages[13]->font_size ="small";
00815 $root->children_pages[1]->children_pages[0]->children_pages[13]->icon = "images/camera_icon.gif";
00816
00817 $root->children_pages[1]->children_pages[0]->children_pages[14] = new menu_tree_node();
00818 $root->children_pages[1]->children_pages[0]->children_pages[14]->url = "wedding/formal_family_gallery2.php";
00819 $root->children_pages[1]->children_pages[0]->children_pages[14]->menu_name =" (Pg 2)";
00820 $root->children_pages[1]->children_pages[0]->children_pages[14]->font_size ="small";
00821 $root->children_pages[1]->children_pages[0]->children_pages[14]->icon = "images/camera_icon.gif";
00822
00823 $root->children_pages[1]->children_pages[0]->children_pages[15] = new menu_tree_node();
00824 $root->children_pages[1]->children_pages[0]->children_pages[15]->url = "wedding/formal_family_gallery3.php";
00825 $root->children_pages[1]->children_pages[0]->children_pages[15]->menu_name =" (Pg 3)";
00826 $root->children_pages[1]->children_pages[0]->children_pages[15]->font_size ="small";
00827 $root->children_pages[1]->children_pages[0]->children_pages[15]->icon = "images/camera_icon.gif";
00828
00829 $root->children_pages[1]->children_pages[0]->children_pages[16] = new menu_tree_node();
00830 $root->children_pages[1]->children_pages[0]->children_pages[16]->url = "wedding/formal_pj_gallery.php";
00831 $root->children_pages[1]->children_pages[0]->children_pages[16]->menu_name ="391 - 446";
00832 $root->children_pages[1]->children_pages[0]->children_pages[16]->icon = "images/camera_icon.gif";
00833
00834 $root->children_pages[1]->children_pages[0]->children_pages[17] = new menu_tree_node();
00835 $root->children_pages[1]->children_pages[0]->children_pages[17]->url = "wedding/formal_pj_gallery1.php";
00836 $root->children_pages[1]->children_pages[0]->children_pages[17]->menu_name =" (Pg 1)";
00837 $root->children_pages[1]->children_pages[0]->children_pages[17]->font_size ="small";
00838 $root->children_pages[1]->children_pages[0]->children_pages[17]->icon = "images/camera_icon.gif";
00839
00840 $root->children_pages[1]->children_pages[0]->children_pages[18] = new menu_tree_node();
00841 $root->children_pages[1]->children_pages[0]->children_pages[18]->url = "wedding/formal_pj_gallery2.php";
00842 $root->children_pages[1]->children_pages[0]->children_pages[18]->menu_name =" (Pg 2)";
00843 $root->children_pages[1]->children_pages[0]->children_pages[18]->font_size ="small";
00844 $root->children_pages[1]->children_pages[0]->children_pages[18]->icon = "images/camera_icon.gif";
00845
00846 $root->children_pages[1]->children_pages[0]->children_pages[19] = new menu_tree_node();
00847 $root->children_pages[1]->children_pages[0]->children_pages[19]->url = "wedding/arriving_reception_gallery.php";
00848 $root->children_pages[1]->children_pages[0]->children_pages[19]->menu_name ="447 - 466";
00849 $root->children_pages[1]->children_pages[0]->children_pages[19]->icon = "images/camera_icon.gif";
00850
00851 $root->children_pages[1]->children_pages[0]->children_pages[20] = new menu_tree_node();
00852 $root->children_pages[1]->children_pages[0]->children_pages[20]->url = "wedding/reception_gallery.php";
00853 $root->children_pages[1]->children_pages[0]->children_pages[20]->menu_name ="467 - 580";
00854 $root->children_pages[1]->children_pages[0]->children_pages[20]->icon = "images/camera_icon.gif";
00855
00856 $root->children_pages[1]->children_pages[0]->children_pages[21] = new menu_tree_node();
00857 $root->children_pages[1]->children_pages[0]->children_pages[21]->url = "wedding/reception_gallery1.php";
00858 $root->children_pages[1]->children_pages[0]->children_pages[21]->menu_name =" (Pg 1)";
00859 $root->children_pages[1]->children_pages[0]->children_pages[21]->font_size ="small";
00860 $root->children_pages[1]->children_pages[0]->children_pages[21]->icon = "images/camera_icon.gif";
00861
00862 $root->children_pages[1]->children_pages[0]->children_pages[22] = new menu_tree_node();
00863 $root->children_pages[1]->children_pages[0]->children_pages[22]->url = "wedding/reception_gallery2.php";
00864 $root->children_pages[1]->children_pages[0]->children_pages[22]->menu_name =" (Pg 2)";
00865 $root->children_pages[1]->children_pages[0]->children_pages[22]->font_size ="small";
00866 $root->children_pages[1]->children_pages[0]->children_pages[22]->icon = "images/camera_icon.gif";
00867
00868 $root->children_pages[1]->children_pages[0]->children_pages[23] = new menu_tree_node();
00869 $root->children_pages[1]->children_pages[0]->children_pages[23]->url = "wedding/reception_gallery3.php";
00870 $root->children_pages[1]->children_pages[0]->children_pages[23]->menu_name =" (Pg 3)";
00871 $root->children_pages[1]->children_pages[0]->children_pages[23]->font_size ="small";
00872 $root->children_pages[1]->children_pages[0]->children_pages[23]->icon = "images/camera_icon.gif";
00873
00874 $root->children_pages[1]->children_pages[0]->children_pages[24] = new menu_tree_node();
00875 $root->children_pages[1]->children_pages[0]->children_pages[24]->url = "wedding/saying_goodbye_gallery.php";
00876 $root->children_pages[1]->children_pages[0]->children_pages[24]->menu_name ="581 - 618";
00877 $root->children_pages[1]->children_pages[0]->children_pages[24]->icon = "images/camera_icon.gif";
00878
00879 $root->children_pages[1]->children_pages[0]->children_pages[25] = new menu_tree_node();
00880 $root->children_pages[1]->children_pages[0]->children_pages[25]->url = "wedding/engagement_shoot.php";
00881 $root->children_pages[1]->children_pages[0]->children_pages[25]->menu_name ="Engagement";
00882 $root->children_pages[1]->children_pages[0]->children_pages[25]->icon = "images/camera_icon.gif";
00883
00884 $root->children_pages[2] = new menu_tree_node();
00885 $root->children_pages[2]->url = "honeymoon/index.php";
00886 $root->children_pages[2]->menu_name = "Honeymoon";
00887
00888 $root->children_pages[2]->children_pages[0] = new menu_tree_node();
00889 $root->children_pages[2]->children_pages[0]->url = "honeymoon/calendar2.php";
00890 $root->children_pages[2]->children_pages[0]->menu_name = "Calendar";
00891 $root->children_pages[2]->children_pages[0]->hidden = false;
00892
00893 $root->children_pages[2]->children_pages[1] = new menu_tree_node();
00894 $root->children_pages[2]->children_pages[1]->url = "honeymoon/honeymoon_photo_gallery_index.php";
00895 $root->children_pages[2]->children_pages[1]->menu_name = "Photo Galleries";
00896
00897 $root->children_pages[2]->children_pages[2] = new menu_tree_node();
00898 $root->children_pages[2]->children_pages[2]->url = "honeymoon/04_05_17.php";
00899 $root->children_pages[2]->children_pages[2]->menu_name = "2004/05/17";
00900
00901 $root->children_pages[2]->children_pages[2]->children_pages[0] = new menu_tree_node();
00902 $root->children_pages[2]->children_pages[2]->children_pages[0]->url = "honeymoon/singel_gallery.php";
00903 $root->children_pages[2]->children_pages[2]->children_pages[0]->menu_name = "Singel Apt.";
00904 $root->children_pages[2]->children_pages[2]->children_pages[0]->icon = "images/camera_icon.gif";
00905
00906 $root->children_pages[2]->children_pages[3] = new menu_tree_node();
00907 $root->children_pages[2]->children_pages[3]->url = "honeymoon/04_05_18.php";
00908 $root->children_pages[2]->children_pages[3]->menu_name = "2004/05/18";
00909
00910 $root->children_pages[2]->children_pages[3]->children_pages[0] = new menu_tree_node();
00911 $root->children_pages[2]->children_pages[3]->children_pages[0]->url = "honeymoon/damsquare_gallery.php";
00912 $root->children_pages[2]->children_pages[3]->children_pages[0]->menu_name = "Dam Square";
00913 $root->children_pages[2]->children_pages[3]->children_pages[0]->icon = "images/camera_icon.gif";
00914
00915 $root->children_pages[2]->children_pages[3]->children_pages[1] = new menu_tree_node();
00916 $root->children_pages[2]->children_pages[3]->children_pages[1]->url = "honeymoon/oude_kerk_gallery.php";
00917 $root->children_pages[2]->children_pages[3]->children_pages[1]->menu_name = "Oude Kerk";
00918 $root->children_pages[2]->children_pages[3]->children_pages[1]->icon = "images/camera_icon.gif";
00919
00920 $root->children_pages[2]->children_pages[3]->children_pages[2] = new menu_tree_node();
00921 $root->children_pages[2]->children_pages[3]->children_pages[2]->url = "honeymoon/sex_museum_gallery_entrance.php";
00922 $root->children_pages[2]->children_pages[3]->children_pages[2]->menu_name = "Sex Museum";
00923 $root->children_pages[2]->children_pages[3]->children_pages[2]->icon = "images/camera_icon.gif";
00924
00925 $root->children_pages[2]->children_pages[3]->children_pages[3] = new menu_tree_node();
00926 $root->children_pages[2]->children_pages[3]->children_pages[3]->url = "honeymoon/sex_museum/gallery.php";
00927 $root->children_pages[2]->children_pages[3]->children_pages[3]->menu_name = "Sex Museum";
00928 $root->children_pages[2]->children_pages[3]->children_pages[3]->hidden = true;
00929 $root->children_pages[2]->children_pages[3]->children_pages[3]->icon = "images/camera_icon.gif";
00930
00931 $root->children_pages[2]->children_pages[3]->children_pages[3] = new menu_tree_node();
00932 $root->children_pages[2]->children_pages[3]->children_pages[3]->url = "honeymoon/04_05_18_misc_gallery.php";
00933 $root->children_pages[2]->children_pages[3]->children_pages[3]->menu_name = "Miscellaneous";
00934 $root->children_pages[2]->children_pages[3]->children_pages[3]->icon = "images/camera_icon.gif";
00935
00936 $root->children_pages[2]->children_pages[4] = new menu_tree_node();
00937 $root->children_pages[2]->children_pages[4]->url = "honeymoon/04_05_19.php";
00938 $root->children_pages[2]->children_pages[4]->menu_name = "2004/05/19";
00939
00940 $root->children_pages[2]->children_pages[4]->children_pages[0] = new menu_tree_node();
00941 $root->children_pages[2]->children_pages[4]->children_pages[0]->url = "honeymoon/keukenhof_gallery.php";
00942 $root->children_pages[2]->children_pages[4]->children_pages[0]->menu_name = "Keukenhof";
00943 $root->children_pages[2]->children_pages[4]->children_pages[0]->icon = "images/camera_icon.gif";
00944
00945 $root->children_pages[2]->children_pages[4]->children_pages[1] = new menu_tree_node();
00946 $root->children_pages[2]->children_pages[4]->children_pages[1]->url = "honeymoon/leiden_gallery.php";
00947 $root->children_pages[2]->children_pages[4]->children_pages[1]->menu_name = "Leiden";
00948 $root->children_pages[2]->children_pages[4]->children_pages[1]->icon = "images/camera_icon.gif";
00949
00950 $root->children_pages[2]->children_pages[5] = new menu_tree_node();
00951 $root->children_pages[2]->children_pages[5]->url = "honeymoon/04_05_20.php";
00952 $root->children_pages[2]->children_pages[5]->menu_name = "2004/05/20";
00953
00954 $root->children_pages[2]->children_pages[5]->children_pages[0] = new menu_tree_node();
00955 $root->children_pages[2]->children_pages[5]->children_pages[0]->url = "honeymoon/begijnhof_gallery.php";
00956 $root->children_pages[2]->children_pages[5]->children_pages[0]->menu_name = "Begijnhof";
00957 $root->children_pages[2]->children_pages[5]->children_pages[0]->icon = "images/camera_icon.gif";
00958
00959 $root->children_pages[2]->children_pages[5]->children_pages[1] = new menu_tree_node();
00960 $root->children_pages[2]->children_pages[5]->children_pages[1]->url = "honeymoon/04_05_20_misc_gallery.php";
00961 $root->children_pages[2]->children_pages[5]->children_pages[1]->menu_name = "Miscellaneous";
00962 $root->children_pages[2]->children_pages[5]->children_pages[1]->icon = "images/camera_icon.gif";
00963
00964 $root->children_pages[2]->children_pages[6] = new menu_tree_node();
00965 $root->children_pages[2]->children_pages[6]->url = "honeymoon/04_05_21.php";
00966 $root->children_pages[2]->children_pages[6]->menu_name = "2004/05/21";
00967
00968 $root->children_pages[2]->children_pages[6]->children_pages[0] = new menu_tree_node();
00969 $root->children_pages[2]->children_pages[6]->children_pages[0]->url = "honeymoon/kalvertoren_gallery.php";
00970 $root->children_pages[2]->children_pages[6]->children_pages[0]->menu_name = "Kalvertoren";
00971 $root->children_pages[2]->children_pages[6]->children_pages[0]->icon = "images/camera_icon.gif";
00972
00973 $root->children_pages[2]->children_pages[7] = new menu_tree_node();
00974 $root->children_pages[2]->children_pages[7]->url = "honeymoon/04_05_22.php";
00975 $root->children_pages[2]->children_pages[7]->menu_name = "2004/05/22";
00976
00977 $root->children_pages[2]->children_pages[7]->children_pages[0] = new menu_tree_node();
00978 $root->children_pages[2]->children_pages[7]->children_pages[0]->url = "honeymoon/04_05_22_misc_gallery.php";
00979 $root->children_pages[2]->children_pages[7]->children_pages[0]->menu_name = "Miscellaneous";
00980 $root->children_pages[2]->children_pages[7]->children_pages[0]->icon = "images/camera_icon.gif";
00981
00982 $root->children_pages[2]->children_pages[8] = new menu_tree_node();
00983 $root->children_pages[2]->children_pages[8]->url = "honeymoon/04_05_23.php";
00984 $root->children_pages[2]->children_pages[8]->menu_name = "2004/05/23";
00985
00986 $root->children_pages[2]->children_pages[9] = new menu_tree_node();
00987 $root->children_pages[2]->children_pages[9]->url = "honeymoon/04_05_24.php";
00988 $root->children_pages[2]->children_pages[9]->menu_name = "2004/05/24";
00989
00990 $root->children_pages[2]->children_pages[10] = new menu_tree_node();
00991 $root->children_pages[2]->children_pages[10]->url = "honeymoon/04_05_25.php";
00992 $root->children_pages[2]->children_pages[10]->menu_name = "2004/05/25";
00993
00994 $root->children_pages[2]->children_pages[11] = new menu_tree_node();
00995 $root->children_pages[2]->children_pages[11]->url = "honeymoon/04_05_26.php";
00996 $root->children_pages[2]->children_pages[11]->menu_name = "2004/05/26";
00997
00998 $root->children_pages[2]->children_pages[12] = new menu_tree_node();
00999 $root->children_pages[2]->children_pages[12]->url = "honeymoon/04_05_27.php";
01000 $root->children_pages[2]->children_pages[12]->menu_name = "2004/05/27";
01001
01002 $root->children_pages[2]->children_pages[13] = new menu_tree_node();
01003 $root->children_pages[2]->children_pages[13]->url = "honeymoon/04_05_28.php";
01004 $root->children_pages[2]->children_pages[13]->menu_name = "2004/05/28";
01005
01006 $root->children_pages[2]->children_pages[14] = new menu_tree_node();
01007 $root->children_pages[2]->children_pages[14]->url = "honeymoon/04_05_29.php";
01008 $root->children_pages[2]->children_pages[14]->menu_name = "2004/05/29";
01009
01010 $root->children_pages[2]->children_pages[15] = new menu_tree_node();
01011 $root->children_pages[2]->children_pages[15]->url = "honeymoon/04_05_30.php";
01012 $root->children_pages[2]->children_pages[15]->menu_name = "2004/05/30";
01013
01014 $root->children_pages[2]->children_pages[16] = new menu_tree_node();
01015 $root->children_pages[2]->children_pages[16]->url = "honeymoon/04_05_31.php";
01016 $root->children_pages[2]->children_pages[16]->menu_name = "2004/05/31";
01017
01018 $root->children_pages[2]->children_pages[17] = new menu_tree_node();
01019 $root->children_pages[2]->children_pages[17]->url = "honeymoon/04_06_01.php";
01020 $root->children_pages[2]->children_pages[17]->menu_name = "2004/06/01";
01021
01022 $root->children_pages[2]->children_pages[18] = new menu_tree_node();
01023 $root->children_pages[2]->children_pages[18]->url = "honeymoon/04_06_02.php";
01024 $root->children_pages[2]->children_pages[18]->menu_name = "2004/06/02";
01025
01026 $root->children_pages[2]->children_pages[19] = new menu_tree_node();
01027 $root->children_pages[2]->children_pages[19]->url = "honeymoon/planning_index.php";
01028 $root->children_pages[2]->children_pages[19]->menu_name = "Pre-Trip";
01029
01030 $root->children_pages[2]->children_pages[19]->children_pages[0] = new menu_tree_node();
01031 $root->children_pages[2]->children_pages[19]->children_pages[0]->url = "honeymoon/calendar.php";
01032 $root->children_pages[2]->children_pages[19]->children_pages[0]->menu_name = "Calendar";
01033
01034 $root->children_pages[2]->children_pages[19]->children_pages[1] = new menu_tree_node();
01035 $root->children_pages[2]->children_pages[19]->children_pages[1]->url = "honeymoon/amsterdam.php";
01036 $root->children_pages[2]->children_pages[19]->children_pages[1]->menu_name = "Amsterdam";
01037
01038 $root->children_pages[2]->children_pages[19]->children_pages[2] = new menu_tree_node();
01039 $root->children_pages[2]->children_pages[19]->children_pages[2]->url = "honeymoon/germany.php";
01040 $root->children_pages[2]->children_pages[19]->children_pages[2]->menu_name = "Germany";
01041
01042 $root->children_pages[2]->children_pages[19]->children_pages[3] = new menu_tree_node();
01043 $root->children_pages[2]->children_pages[19]->children_pages[3]->url = "honeymoon/paris.php";
01044 $root->children_pages[2]->children_pages[19]->children_pages[3]->menu_name = "Paris";
01045
01046 $root->children_pages[2]->children_pages[19]->children_pages[4] = new menu_tree_node();
01047 $root->children_pages[2]->children_pages[19]->children_pages[4]->url = "honeymoon/travel.php";
01048 $root->children_pages[2]->children_pages[19]->children_pages[4]->menu_name = "Trains & Cars";
01049
01050 $root->children_pages[2]->children_pages[19]->children_pages[5] = new menu_tree_node();
01051 $root->children_pages[2]->children_pages[19]->children_pages[5]->url = "honeymoon/flights.php";
01052 $root->children_pages[2]->children_pages[19]->children_pages[5]->menu_name = "Air Travel";
01053
01054 $root->children_pages[3] = new menu_tree_node();
01055 $root->children_pages[3]->url = "pets/index.php";
01056 $root->children_pages[3]->menu_name = "Animals";
01057
01058 $root->children_pages[4] = new menu_tree_node();
01059 $root->children_pages[4]->url = "new.php";
01060 $root->children_pages[4]->menu_name = "What's New?";
01061
01062 $root->children_pages[5] = new menu_tree_node();
01063 $root->children_pages[5]->url = "displayImage.php";
01064 $root->children_pages[5]->menu_name = "DisplayImage";
01065 $root->children_pages[5]->hidden = true;
01066
01067 return $root;
01068 }
|
create_tn_link |
( |
$ |
image_dir, |
|
|
$ |
file_name, |
|
|
$ |
title |
|
) |
|
|
|
Creates a thumbnail with a link to the displayImage page of the larger image.
- Parameters:
-
[in] | image_dir | - The directory the image & its thumbnail are in. |
[in] | file_name | - The name of the image (also, the thumbnail name w/o the tn_ ). |
[in] | title | - The title to be used on the displayImage page. |
Definition at line 1075 of file functions.php. 01076 {
01077 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$image_dir/$file_name&imageTitle=$title\">");
01078 print("<img src=\"images/tn_keukenhof1.jpg\" alt=\"\" align=center vspace=5 hspace=10 border=0></a>");
01079 }
|
determine_print_values |
( |
&$ |
root, |
|
|
$ |
set_children |
|
) |
|
|
|
Determines which nodes in the menu tree should be printed.
- Parameters:
-
[in] | root | - the top level root of the entire menu tree. |
[in] | set_children | - a flag that determines if children print_value is set to 1. Used internally for children of the top root. |
Limitation - no two nodes can have the same URL if one is descendent from the other.
A four part test is used to determine if a node should be printed. If any part is true, the print_value is set to > 0.
1) Is the node a child of the root.
2) Does the node have the same URL as the web page this is being run on.
3) Is this node in the path between the root and the web page this is being run on.
4) Is this node a child of the node for the web page this is being run on.
Definition at line 1519 of file functions.php.
Referenced by load_and_print_menu(). 01520 {
01521 $thisURL = $GLOBALS["PATH_INFO"];
01522 $thisURL = substr($thisURL,1);
01523
01524 if ($thisURL == $root->url)
01525 {
01526
01527
01528 for($k = 0; $k < count($root->children_pages); $k++)
01529 {
01530 $root->children_pages[$k]->print_value = 1;
01531
01532
01533 }
01534 $root->print_value = 1;
01535
01536 }
01537 else
01538 for($i = 0; $i < count($root->children_pages); $i++)
01539 {
01540 if ($set_children)
01541 {
01542 $root->children_pages[$i]->print_value = 2;
01543
01544 }
01545
01546 determine_print_values($root->children_pages[$i], false);
01547 if($root->children_pages[$i]->print_value > 0)
01548 {
01549
01550
01551 $root->print_value = ($root->children_pages[$i]->print_value) + 1;
01552
01553 if ($root->children_pages[$i]->print_value == 1)
01554 for($j = 0; $j < count($root->children_pages); $j++)
01555 {
01556 $root->children_pages[$j]->print_value = 2;
01557
01558 }
01559 }
01560 }
01561 }
|
display_menu_node |
( |
$ |
root, |
|
|
$ |
node, |
|
|
$ |
num_spaces |
|
) |
|
|
|
Prints the node if it meets one of four tests.
- Parameters:
-
[in] | root | - The top level root of the entire menu tree. |
[in] | node | - The node that we are thinking of printing. |
[in] | num_spaces | - The number of spaces to indent this node if we decide to print it. |
- Deprecated:
- This function is no longer used because it was too slow. As the menu tree approached 100 nodes this function was taking several seconds to complete. determine_print_values() and smart_print_menu() now fulfil the same role that this function did. Please see those functions for more details.
Definition at line 1178 of file functions.php.
References getNodesFromURL(), in_path(), is_child(), is_parent(), is_sibling(), and print_node_link().
Referenced by print_menu(). 01179 {
01180 $thisURL = $GLOBALS["PATH_INFO"];
01181 $thisURL = substr($thisURL,1);
01182 $thisNodes = getNodesFromURL($root, $thisURL);
01183
01184
01185
01186 $toPrint = false;
01187 if( is_parent($root,$node))
01188 $toPrint = true;
01189
01190 for($i = 0; $i < count($thisNodes); $i++)
01191 {
01192
01193 if( is_sibling($root, $node, $thisNodes[$i]))
01194 $toPrint = true;
01195
01196 if (is_child($thisNodes[$i],$node))
01197 $toPrint = true;
01198
01199
01200 if ( in_path($node,$root,$thisNodes[$i]))
01201 $toPrint = true;
01202
01203
01204 }
01205 if($toPrint)
01206 print_node_link($node,$num_spaces);
01207 }
|
get_parent |
( |
$ |
root, |
|
|
$ |
url |
|
) |
|
|
|
Gets the parent of the node based upon url.
- Parameters:
-
[in] | root | - The root of the tree to be searched. |
[in] | url | - The url of the node we are looking for. |
Definition at line 659 of file functions.php.
Referenced by get_this_parent(). 00660 {
00661 for($i = 0; $i < count($root->children_pages); $i++)
00662 {
00663 $node = $root->children_pages[$i];
00664
00665 if($url == $node->url)
00666 {
00667
00668 return $root;
00669 }
00670 $tmpURL = get_parent($node, $url);
00671 if ($tmpURL != NULL)
00672 {
00673
00674 return $tmpURL;
00675 }
00676 }
00677 return NULL;
00678 }
|
get_parent_n |
( |
$ |
root, |
|
|
$ |
node |
|
) |
|
|
|
If node is in the subtree of root, its parent is returned.
- Parameters:
-
[in] | root | - The root of the tree to be searched. |
[in] | node | - The node to look for. |
Definition at line 631 of file functions.php.
References is_parent().
Referenced by is_sibling(). 00632 {
00633 if ($root == NULL)
00634 return NULL;
00635 if (is_parent($root,$node))
00636 {
00637
00638 return $root;
00639 }
00640 for($i = 0; $i < count($root->children_pages); $i++)
00641 {
00642 $prNode = $root->children_pages[$i];
00643
00644 $tmpNode = get_parent_n($root->children_pages[$i], $node);
00645 if ($tmpNode != NULL)
00646 {
00647
00648 return $tmpNode;
00649 }
00650 }
00651 return NULL;
00652 }
|
get_this_parent |
( |
$ |
root |
) |
|
|
|
Finds the node that is the parent of the page we are on.
- Parameters:
-
[in] | root | - The top root of the entire menu tree. |
Definition at line 1382 of file functions.php.
References get_parent(). 01383 {
01384 $thisPage = $GLOBALS["PATH_INFO"];
01385 $thisPage = substr($thisPage,1);
01386 return get_parent($root, $thisPage);
01387 }
|
getNodeFromURL |
( |
$ |
root, |
|
|
$ |
url |
|
) |
|
|
|
Returns the first node found that has the specified URL.
- Parameters:
-
[in] | root | - Originally the top level root of the menu tree, but in recursion will be roots of sub-trees. |
[in] | url | - The URL we are looking for. |
This is the original more limited version of getNodesFromURL.
Definition at line 1152 of file functions.php. 01153 {
01154 if($root->url == $url)
01155 return $root;
01156
01157 $tmpNode == NULL;
01158
01159 for($i = 0; $i < count($root->children_pages); $i++)
01160 {
01161 if($tmpNode == NULL)
01162 $tmpNode = getNodeFromURL($root->children_pages[$i], $url);
01163 }
01164
01165 return $tmpNode;
01166 }
|
getNodesFromURL |
( |
$ |
root, |
|
|
$ |
url |
|
) |
|
|
|
Returns an array of the nodes that have the specified URL.
- Parameters:
-
[in] | root | - Originally the top level root of the menu tree, but in recursion will be roots of sub-trees. |
[in] | url | - The URL we are looking for. |
Definition at line 1126 of file functions.php.
Referenced by display_menu_node(). 01127 {
01128 $nodes = array();
01129 $tmpNodes = array();
01130
01131 if($root->url == $url)
01132 {
01133 $nodes[0] = new menu_tree_node();
01134 $nodes[0] = $root;
01135 }
01136
01137 for($i = 0; $i < count($root->children_pages); $i++)
01138 {
01139 $tmpNodes = getNodesFromURL($root->children_pages[$i], $url);
01140 $nodes = array_merge($nodes,$tmpNodes);
01141 }
01142
01143 return $nodes;
01144 }
|
in_path |
( |
$ |
node, |
|
|
$ |
node_top, |
|
|
$ |
node_bottom |
|
) |
|
|
|
Returns true if $node_bottom is a descendent of $node and a $node_top is an ancestor of $node).
- Parameters:
-
[in] | node | - The node we are concerned with.. |
[in] | node_top | - The prospective ancestor. |
[in] | node_bottom | - The prospective descendent. |
Definition at line 1296 of file functions.php.
References is_ancestor(), and is_descendent().
Referenced by display_menu_node().
|
is_ancestor |
( |
$ |
node, |
|
|
$ |
node_a |
|
) |
|
|
|
Returns true if node_a is an ancestor of node, false otherwise.
- Parameters:
-
[in] | node_a | - The prospective ancestor. |
[in] | node | - The prospective descendent. |
Definition at line 1260 of file functions.php.
References is_descendent().
Referenced by in_path().
|
is_child |
( |
$ |
node_p, |
|
|
$ |
node_c |
|
) |
|
|
|
Returns true if node_p is the parent of node_c, false otherwise.
- Parameters:
-
[in] | node_p | - The prospective parent. |
[in] | node_c | - The prospective child. |
Definition at line 1246 of file functions.php.
Referenced by display_menu_node(), and is_descendent(). 01247 {
01248 for($i = 0; $i < count($node_p->children_pages); $i++)
01249 if ($node_p->children_pages[$i] == $node_c)
01250 return true;
01251
01252 return false;
01253 }
|
is_descendent |
( |
$ |
node, |
|
|
$ |
node_d |
|
) |
|
|
|
Returns true if node_d is an descendent of node, false otherwise.
- Parameters:
-
[in] | node | - The prospective ancestor. |
[in] | node_d | - The prospective descendent. |
Definition at line 1269 of file functions.php.
References is_child().
Referenced by in_path(), and is_ancestor(). 01270 {
01271 if($node == NULL)
01272 return false;
01273
01274 if($node_d == NULL)
01275 return false;
01276
01277 if ($node == $node_d)
01278 return true;
01279
01280 if(is_child($node,$node_d))
01281 return true;
01282
01283 for($i = 0; $i < count($node->children_pages); $i++)
01284 if( is_descendent($node->children_pages[$i], $node_d))
01285 return true;
01286
01287 return false;
01288 }
|
is_parent |
( |
$ |
node_p, |
|
|
$ |
node |
|
) |
|
|
|
Returns true if node_p is the parent of node, false otherwise.
- Parameters:
-
[in] | node_p | - The prospective parent. |
[in] | node | - The prospective child. |
Definition at line 1213 of file functions.php.
Referenced by display_menu_node(), and get_parent_n(). 01214 {
01215 for($i = 0; $i < count($node_p->children_pages); $i++)
01216 if($node_p->children_pages[$i] == $node)
01217 return true;
01218
01219 return false;
01220 }
|
is_sibling |
( |
$ |
root, |
|
|
$ |
node1, |
|
|
$ |
node2 |
|
) |
|
|
|
Returns true if node1 & node2 are siblings in the tree rooted by root.
- Parameters:
-
[in] | root | - The root of the tree we are examining. |
[in] | node1 | - A prospective sibling. |
[in] | node2 | - A prospective sibling. |
Definition at line 1228 of file functions.php.
References get_parent_n().
Referenced by display_menu_node(). 01229 {
01230 $parent1 = get_parent_n($root,$node1);
01231
01232 $parent2 = get_parent_n($root,$node2);
01233
01234
01235 if($parent1 == $parent2)
01236 return true;
01237 else
01238 return false;
01239 }
|
leftThumbnailer |
( |
$ |
file_name, |
|
|
$ |
image_title, |
|
|
$ |
caption = NULL |
|
) |
|
|
|
Similar to Thumbnailer, but align=left for the image.
- Parameters:
-
[in] | file_name | is used for the image file name and its thumbnail. |
[in] | image_title | is the title used when you visit the displayImage.php page |
[in] | caption | is printed below the thumbnail (default = NULL) |
Definition at line 119 of file functions.php. 00120 {
00121
00122 echo "<a href=\"http://prestopnik.com/displayImage.php?fileName=";
00123
00124 $thisURL = $GLOBALS["PATH_INFO"];
00125 $pos = strrpos($thisURL,'/');
00126
00127 $filenamePath = substr($thisURL,0,$pos) . "/images/" . $file_name;
00128
00129 echo $filenamePath;
00130
00131 echo "&imageTitle=";
00132
00133 echo urlencode($image_title);
00134 echo "\">\n";
00135
00136 echo "<img src=\"images/tn_" . $file_name . "\" alt=\"\" align=left vspace=5 hspace=10 border=0>\n";
00137 if ($caption)
00138 {
00139 echo "<h4 align=center>" . $caption . "</h4>";
00140 }
00141 echo "</a>\n";
00142 }
|
|
Prints the php for a simple link.
- Parameters:
-
[in] | url | is used as both the URL and the link text. |
Definition at line 50 of file functions.php. 00051 {
00052 print "<a href=\"http://$url\">$url</a>";
00053 }
|
load_and_print_menu |
( |
$ |
file_name |
) |
|
|
load_tree |
( |
$ |
file_name |
) |
|
|
|
Loads a tree of menu nodes from a file.
- Parameters:
-
[in] | file_name | is the file to be loaded |
Definition at line 530 of file functions.php.
References read_and_add_node().
Referenced by load_and_print_menu(). 00531 {
00532 $lines = file($file_name);
00533 for($i = 0; $i<count($lines); $i++)
00534 $lines[$i] = rtrim($lines[$i]);
00535
00536 $root = new menu_tree_node();
00537 read_and_add_node($lines, $root);
00538
00539 return $root;
00540 }
|
|
Prints the php for the standard top of prestopnik.com.
- Parameters:
-
[in] | title | is the title of the page, and is displayed in a header, and on the title bar. |
The title of the page, as well as the customized background colors and style sheet selection is handled by this function. The last thing it prints is a "<table><tr><td>" so after calling this function you are ready to put the content of the page.
Definition at line 234 of file functions.php.
References load_and_print_menu(), and print_main_table_bgcolor(). 00235 {
00236
00237 $title = "Doxygen Documentation";
00238
00239 global $prestop_custom_style;
00240
00241 print "<!DOCTYPE php PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n";
00242 print " \"http://www.w3.org/TR/xphp1/DTD/transitional.dtd\">\n";
00243
00244
00245 print "<php>\n";
00246
00247 print "<head>\n";
00248 print "<link rel=\"icon\" href=\"/favicon.ico\"";
00249 print "type=\"image/x-icon\">";
00250 print "<link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\">";
00251 print "<title>\n";
00252 print "$title\n";
00253 print "</title>\n";
00254
00255
00256 switch ($prestop_custom_style) {
00257 case "1":
00258 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle.css";
00259 break;
00260 case "2":
00261 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00262 break;
00263 case "3":
00264 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle3.css";
00265 break;
00266 case "4":
00267 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle4.css";
00268 break;
00269 case "5":
00270 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle5.css";
00271 break;
00272 case "6":
00273 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle6.css";
00274 break;
00275 default:
00276 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00277 break;
00278 }
00279
00280 print "<link rel=\"stylesheet\" href=\"$style_sheet_location\">\n";
00281 print "</head>\n";
00282 print "<body>\n";
00283 print "<center><h1>\n";
00284 print "$title\n";
00285 print "</h1></center>\n";
00286
00287 print "<br /><br /><br />\n";
00288
00289 print "<table width=\"100%\" valign=top>\n";
00290 print "<tr>\n";
00291 print "<td width=150 valign=\"top\">\n";
00292 $menu_dat_location = "http://" . $GLOBALS["SERVER_NAME"] . "/menu.dat";
00293 load_and_print_menu($menu_dat_location);
00294
00295 print "</td>\n";
00296
00297 print "<td valign=top>\n";
00298 print " <!--keep cellpadding=1 and cellspacing=1 for the border around the table-->\n";
00299 print " <table width=800 cellpadding=1 cellspacing=1 border=0 align=left valign=top ";
00300 print_main_table_bgcolor();
00301 print " <tr><td valign=top>\n";
00302
00303 print " <center>\n";
00304 print " <table width=100% cellpadding=0 cellspacing=0 border=0 valign=top ";
00305 print_main_table_bgcolor();
00306
00307
00308 print " align=left> <table width=\"100%\" cellspacing=\"2\" cellpadding=\"10\" border=\"1\" ";
00309 print_main_table_bgcolor();
00310
00311 print " align=left valign=top> <tr><td align=left valign=top>\n";
00312 }
|
print_full_tree |
( |
$ |
root |
) |
|
|
|
Pretty-prints each node of a tree.
- Parameters:
-
[in] | root | - the root node |
Definition at line 570 of file functions.php.
References print_node(). 00571 {
00572 print_node($root);
00573 for($i = 0; $i < count($root->children_pages); $i++)
00574 {
00575 print_full_tree($root->children_pages[$i]);
00576 }
00577 }
|
print_link |
( |
$ |
name, |
|
|
$ |
url |
|
) |
|
|
|
Prints a link to $url with $name as the text.
(same as print_unfinished_link??) - Parameters:
-
[in] | name | - The text to use as the link. |
[in] | url | - The URL to link to. |
The link is not printed if it is a link to the same page we are already on. In that case, only the text is printed, but not as a link.
Definition at line 1363 of file functions.php. 01364 {
01365 $test_string = "http://" . $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01366 if($url == $test_string)
01367 echo("$name");
01368 else
01369 {
01370 $trimmed_name = ltrim($name);
01371 $len1 = strlen($name);
01372 $len2 = strlen($trimmed_name);
01373 for($i=0; $i<($len1-$len2); $i++)
01374 echo(" ");
01375 echo("<a href=\"$url\">$trimmed_name</a>");
01376 }
01377 }
|
print_main_table_bgcolor |
( |
|
) |
|
|
|
Prints the main table bgcolor based upon the users cookie.
- Todo:
- Parse CSS file to get maintable bkgd color instead of setting it by hand here
Definition at line 411 of file functions.php.
Referenced by print_dox_top(), and print_standard_top(). 00412 {
00413 global $prestop_custom_style;
00414
00415 switch ($prestop_custom_style){
00416 case "2":
00417 print "bgcolor=\"#080808\"";
00418 break;
00419 case "3":
00420 print "bgcolor=\"#2D3140\"";
00421 break;
00422 case "4":
00423 print "bgcolor=\"#080808\"";
00424 break;
00425 case "5":
00426 print "bgcolor=\"#efc04a\"";
00427 break;
00428 case "6":
00429 print "bgcolor=\"#420000\"";
00430 break;
00431 case "1":
00432 print "bgcolor=\"#f9f9e3\"";
00433 break;
00434 default:
00435 print "bgcolor=\"#080808\"";
00436 break;
00437 }
00438 }
|
print_menu |
( |
$ |
real_root, |
|
|
$ |
root, |
|
|
$ |
num_spaces = 0 |
|
) |
|
|
|
Recursively prints the menu for this page.
- Parameters:
-
[in] | real_root | - The top root of the entire menu tree. |
[in] | root | - The root of the subtree that we are currently looking at. |
[in] | num_spaces | - How many spaces in we are at this level of the tree. |
Definition at line 1095 of file functions.php.
References display_menu_node().
Referenced by create_and_print_menu(). 01096 {
01097 if($real_root == NULL)
01098 {
01099 echo("print_menu() passed $real_root = NULL ");
01100 return;
01101 }
01102
01103 if ($root == NULL)
01104 return;
01105
01106 $main_URL = "http://prestopnik.com/";
01107 $test_string = $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01108
01109 $thisURL = $GLOBALS["PATH_INFO"];
01110
01111
01112
01113
01114 for($i = 0; $i < count($root->children_pages); $i++)
01115 {
01116 display_menu_node($real_root, $root->children_pages[$i],$num_spaces);
01117 print_menu($real_root, $root->children_pages[$i],$num_spaces+3);
01118 }
01119
01120 }
|
|
Pretty-prints a node.
- Parameters:
-
[in] | root | - the node to be printed |
Definition at line 485 of file functions.php.
Referenced by print_full_tree(). 00486 {
00487 echo "url: ".$root->url;
00488 echo "<br>";
00489 echo "menu_name: ".$root->menu_name;
00490 echo "<br>";
00491 echo "# of children_pages: ".count($root->children_pages);
00492 echo "<br>";
00493 echo "hidden: ";
00494 if ($root->hidden == true)
00495 echo "true";
00496 else
00497 echo "false";
00498 echo "<br>";
00499 echo "font_size: ".$root->font_size;
00500 echo "<br>";
00501 echo "icon: ".$root->icon;
00502 echo "<br>";
00503 }
|
print_node_link |
( |
$ |
node, |
|
|
$ |
num_spaces |
|
) |
|
|
|
Prints a menu link for a node.
- Parameters:
-
[in] | node | - The node we are printing a link for. |
[in] | num_spaces | - The number of spaces to the left of the link. |
The node structure supplies the font_size, menu_name, icon, & url for the link, and it's hidden attribute determines whether it will be printed at all.
Definition at line 1308 of file functions.php.
References print_unfinished_link().
Referenced by display_menu_node(), and smart_print_menu(). 01309 {
01310 if( $node == NULL)
01311 return;
01312
01313 $url = "http://" . $GLOBALS["SERVER_NAME"] . "/" . $node->url;
01314
01315
01316
01317
01318 if ($node->hidden == false)
01319 {
01320 echo("<$node->font_size>");
01321 for($j=0; $j<$num_spaces; $j++)
01322 echo(" ");
01323 print_unfinished_link($node->menu_name, $url);
01324 echo("</$node->font_size>");
01325 echo("</a>");
01326 if ($node->icon != "none")
01327 echo ("<img src=\"http://prestopnik.com/$node->icon\">");
01328
01329 echo("<br>\n");
01330 }
01331 }
|
print_prev_next_day_begin |
( |
$ |
prev_link, |
|
|
$ |
title, |
|
|
$ |
next_link |
|
) |
|
|
|
Prints links to the previous and next page.
A small table is created with only one row and three columns. The table is left unclosed. - Parameters:
-
[in] | prev_link | - the link to the previous day, and is displayed in the left column. |
[in] | title | - the title of the page, and is displayed in the middle column. |
[in] | next_link | - the link to the next day, and is displayed in the right column. |
Definition at line 321 of file functions.php. 00322 {
00323 print "<table width=100% valign=top><tr>\n";
00324 print "<td width=33% align=left valign=top>\n";
00325
00326 if($prev_link != NULL)
00327 print "<a href=\"$prev_link\">Previous Day</a>\n";
00328
00329 print "</td>\n";
00330 print "<td width=33% align=center valign=top><h3>$title</h3></td>\n";
00331 print "<td width=33% align=right valign=top>\n";
00332
00333 if($next_link != NULL)
00334 print "<a href=\"$next_link\">Next Day</a>\n";
00335
00336 print "</td></tr>\n";
00337 }
|
print_prev_next_day_end |
( |
$ |
prev_link, |
|
|
$ |
title, |
|
|
$ |
next_link |
|
) |
|
|
|
Prints links to the previous and next page.
- Parameters:
-
[in] | prev_link | - the link to the previous day, and is displayed in the left column. |
[in] | title | - the title of the page, and is displayed in the middle column. |
[in] | next_link | - the link to the next day, and is displayed in the right column. |
A small table is created with only one row and three columns. The table is closed, but is not opened.
Definition at line 348 of file functions.php. 00349 {
00350 print "<tr>\n";
00351 print "<td width=33% align=left>\n";
00352
00353 if($prev_link != NULL)
00354 print "<a href=\"$prev_link\">Previous Day</a>\n";
00355
00356 print "</td>\n";
00357 print "<td width=33% align=center><h3>$title</h3></td>\n";
00358 print "<td width=33% align=right>\n";
00359
00360 if($next_link != NULL)
00361 print "<a href=\"$next_link\">Next Day</a>\n";
00362
00363 print "</td></tr>\n";
00364 print "</table>\n";
00365 }
|
print_standard_bottom |
( |
|
) |
|
|
|
Prints the php for the standard bottom of prestopnik.com.
This just closes the tables opened by print_standard_top, and puts the correct email image at the bottom depending on the style.
Definition at line 372 of file functions.php. 00373 {
00374 global $prestop_custom_style;
00375 print " </td></tr>\n";
00376 print " </table>\n";
00377 print " </center>\n";
00378
00379 print " </td></tr>\n";
00380 print " </table>\n";
00381
00382
00383 print "</td></tr>\n";
00384 print "</table>\n";
00385 print "<br><br><img src=\"/images/";
00386 switch ($prestop_custom_style){
00387 case "1":
00388 case "2":
00389 case "3":
00390 case "5":
00391 print "emails.gif";
00392 break;
00393 case "4":
00394 case "6":
00395 print "emails_ltgray.gif";
00396 break;
00397 default:
00398 print "emails.gif";
00399 break;
00400 }
00401
00402 print"\">";
00403 print "</body>\n";
00404 print "</php>\n";
00405 }
|
print_standard_top |
( |
$ |
title |
) |
|
|
|
Prints the php for the standard top of prestopnik.com.
- Parameters:
-
[in] | title | is the title of the page, and is displayed in a header, and on the title bar. |
The title of the page, as well as the customized background colors and style sheet selection is handled by this function. The last thing it prints is a "<table><tr><td>" so after calling this function you are ready to put the content of the page.
Definition at line 153 of file functions.php.
References load_and_print_menu(), and print_main_table_bgcolor(). 00154 {
00155 global $prestop_custom_style;
00156 print "<!DOCTYPE php PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n";
00157 print " \"http://www.w3.org/TR/xphp1/DTD/transitional.dtd\">\n";
00158
00159
00160 print "<php>\n";
00161
00162 print "<head>\n";
00163 print "<link rel=\"icon\" href=\"/favicon.ico\"";
00164 print "type=\"image/x-icon\">";
00165 print "<link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\">";
00166 print "<title>\n";
00167 print "$title\n";
00168 print "</title>\n";
00169
00170 switch ($prestop_custom_style) {
00171 case "1":
00172 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle.css";
00173 break;
00174 case "2":
00175 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00176 break;
00177 case "3":
00178 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle3.css";
00179 break;
00180 case "4":
00181 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle4.css";
00182 break;
00183 case "5":
00184 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle5.css";
00185 break;
00186 case "6":
00187 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle6.css";
00188 break;
00189 default:
00190 $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00191 break;
00192 }
00193 print "<link rel=\"stylesheet\" href=\"$style_sheet_location\">\n";
00194 print "</head>\n";
00195 print "<body>\n";
00196 print "<center><h1>\n";
00197 print "$title\n";
00198 print "</h1></center>\n";
00199
00200 print "<br /><br /><br />\n";
00201
00202 print "<table width=\"100%\" valign=top>\n";
00203 print "<tr>\n";
00204 print "<td width=175 valign=\"top\">\n";
00205 $menu_dat_location = "http://" . $GLOBALS["SERVER_NAME"] . "/menu.dat";
00206 load_and_print_menu($menu_dat_location);
00207
00208 print "</td>\n";
00209
00210 print "<td valign=top>\n";
00211 print " <!--keep cellpadding=1 and cellspacing=1 for the border around the table-->\n";
00212 print " <table width=800 cellpadding=1 cellspacing=1 border=0 align=left valign=top ";
00213 print_main_table_bgcolor();
00214 print " <tr><td valign=top>\n";
00215
00216 print " <center>\n";
00217 print " <table width=100% cellpadding=0 cellspacing=0 border=0 valign=top ";
00218 print_main_table_bgcolor();
00219
00220 print " align=left> <table width=\"100%\" cellspacing=\"2\" cellpadding=\"10\" border=\"1\" ";
00221 print_main_table_bgcolor();
00222 print " align=left valign=top> <tr><td align=left valign=top>\n";
00223 }
|
print_unfinished_link |
( |
$ |
name, |
|
|
$ |
url |
|
) |
|
|
|
Prints a link to $url with $name as the text.
- Parameters:
-
[in] | name | - The text to use as the link. |
[in] | url | - The URL to link to. |
The link is not printed if it is a link to the same page we are already on. In that case, only the text is printed, but not as a link.
Definition at line 1340 of file functions.php.
Referenced by print_node_link(). 01341 {
01342 $test_string = "http://" . $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01343 if($url == $test_string)
01344 echo("$name");
01345 else
01346 {
01347 $trimmed_name = ltrim($name);
01348 $len1 = strlen($name);
01349 $len2 = strlen($trimmed_name);
01350 for($i=0; $i<($len1-$len2); $i++)
01351 echo(" ");
01352 echo("<a href=\"$url\">$trimmed_name");
01353 }
01354 }
|
print_wed_gal_4_row |
( |
$ |
num1, |
|
|
$ |
num2, |
|
|
$ |
num3, |
|
|
$ |
num4 |
|
) |
|
|
|
A function to print a row of 4 landscape wedding photo thumbnails with appropriate links.
- Parameters:
-
[in] | num1 | - The number of the first wedding photo |
[in] | num2 | - The number of the second wedding photo |
[in] | num3 | - The number of the third wedding photo |
[in] | num4 | - The number of the fourth wedding photo |
This is a wrapper for wedding_gallery_4_row.
Definition at line 1406 of file functions.php.
References print_wedding_gallery_4_row(). 01407 {
01408 print_wedding_gallery_4_row("/wedding/images/jp$num1.jpg","$num1","images/tn_jp$num1.jpg",
01409 "/wedding/images/jp$num2.jpg","$num2","images/tn_jp$num2.jpg",
01410 "/wedding/images/jp$num3.jpg","$num3","images/tn_jp$num3.jpg",
01411 "/wedding/images/jp$num4.jpg","$num4","images/tn_jp$num4.jpg");
01412 }
|
print_wed_gal_6_row |
( |
$ |
num1, |
|
|
$ |
num2, |
|
|
$ |
num3, |
|
|
$ |
num4, |
|
|
$ |
num5, |
|
|
$ |
num6 |
|
) |
|
|
|
A function to print a row of 6 portrait wedding photo thumbnails with appropriate links.
- Parameters:
-
[in] | num1 | - The number of the first wedding photo |
[in] | num2 | - The number of the second wedding photo |
[in] | num3 | - The number of the third wedding photo |
[in] | num4 | - The number of the fourth wedding photo |
[in] | num5 | - The number of the fifth wedding photo |
[in] | num6 | - The number of the sixth wedding photo |
This is the wrapper for wedding_gallery_6_row.
Definition at line 1449 of file functions.php.
References print_wedding_gallery_6_row(). 01450 {
01451 print_wedding_gallery_6_row("/wedding/images/jp$num1.jpg","$num1","images/tn_jp$num1.jpg",
01452 "/wedding/images/jp$num2.jpg","$num2","images/tn_jp$num2.jpg",
01453 "/wedding/images/jp$num3.jpg","$num3","images/tn_jp$num3.jpg",
01454 "/wedding/images/jp$num4.jpg","$num4","images/tn_jp$num4.jpg",
01455 "/wedding/images/jp$num5.jpg","$num5","images/tn_jp$num5.jpg",
01456 "/wedding/images/jp$num6.jpg","$num6","images/tn_jp$num6.jpg");
01457 }
|
read_and_add_node |
( |
&$ |
lines, |
|
|
&$ |
root |
|
) |
|
|
|
A helper function for load_tree.
- Parameters:
-
[in,out] | lines | - the remaining lines of the text file |
[in,out] | root | - the location of the node to be added |
Definition at line 547 of file functions.php.
Referenced by load_tree(). 00548 {
00549 $root->url = $lines[0];
00550 $root->menu_name = $lines[1];
00551 if($lines[2] == "true")
00552 $root->hidden = true;
00553 else
00554 $root->hidden = false;
00555 $root->font_size = $lines[3];
00556 $root->icon = $lines[4];
00557 $num_children = $lines[5];
00558 for($i = 0; $i < $num_children; $i++)
00559 {
00560
00561 $root->children_pages[$i] = new menu_tree_node();
00562 $lines = array_slice($lines,6);
00563 read_and_add_node($lines, $root->children_pages[$i]);
00564 }
00565 }
|
rightThumbnailer |
( |
$ |
file_name, |
|
|
$ |
image_title, |
|
|
$ |
caption = NULL |
|
) |
|
|
|
Similar to Thumbnailer, but align=right for the image.
- Parameters:
-
[in] | file_name | is used for the image file name and its thumbnail. |
[in] | image_title | is the title used when you visit the displayImage.php page |
[in] | caption | is printed below the thumbnail (default = NULL) |
Definition at line 89 of file functions.php. 00090 {
00091
00092 echo "<a href=\"http://prestopnik.com/displayImage.php?fileName=";
00093
00094 $thisURL = $GLOBALS["PATH_INFO"];
00095 $pos = strrpos($thisURL,'/');
00096
00097 $filenamePath = substr($thisURL,0,$pos) . "/images/" . $file_name;
00098
00099 echo $filenamePath;
00100
00101 echo "&imageTitle=";
00102
00103 echo urlencode($image_title);
00104 echo "\">\n";
00105
00106 echo "<img src=\"images/tn_" . $file_name . "\" alt=\"\" align=right vspace=5 hspace=10 border=0>\n";
00107 if ($caption)
00108 {
00109 echo "<h4 align=center>" . $caption . "</h4>";
00110 }
00111 echo "</a>\n";
00112 }
|
smart_print_menu |
( |
$ |
real_root, |
|
|
$ |
root, |
|
|
$ |
num_spaces = 0 |
|
) |
|
|
|
Recursively traverses the list and print any node that has print_value > 0.
- Parameters:
-
[in] | real_root | - the top root of the entire menu tree |
[in] | root | - the root of the current tree we are examining (recursive) |
[in] | num_spaces | - the number of spaces to print to the left of menu text at this tree level. |
Definition at line 1569 of file functions.php.
References print_node_link().
Referenced by load_and_print_menu(). 01570 {
01571 if($real_root == NULL)
01572 {
01573 echo("print_menu() passed $real_root = NULL ");
01574 return;
01575 }
01576
01577 if ($root == NULL)
01578 return;
01579
01580 $main_URL = "http://prestopnik.com/";
01581 $test_string = $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01582
01583 $thisURL = $GLOBALS["PATH_INFO"];
01584
01585
01586
01587
01588
01589 if($root->print_value > 0)
01590 print_node_link($root,$num_spaces);
01591
01592 for($i = 0; $i < count($root->children_pages); $i++)
01593 smart_print_menu($real_root, $root->children_pages[$i],$num_spaces+2);
01594 }
|
thumbnailer |
( |
$ |
file_name, |
|
|
$ |
image_title, |
|
|
$ |
caption = NULL |
|
) |
|
|
|
Creates a thumbnail based upon my conventions.
- Parameters:
-
[in] | file_name | is used for the image file name and its thumbnail. |
[in] | image_title | is the title used when you visit the displayImage.php page |
[in] | caption | is printed below the thumbnail (default = NULL) |
Definition at line 61 of file functions.php. 00062 {
00063 echo "<a href=\"http://prestopnik.com/displayImage.php?fileName=";
00064
00065 $thisURL = $GLOBALS["PATH_INFO"];
00066 $pos = strrpos($thisURL,'/');
00067
00068 $filenamePath = substr($thisURL,0,$pos) . "/images/" . $file_name;
00069
00070 echo $filenamePath;
00071 echo "&imageTitle=";
00072 echo urlencode($image_title);
00073 echo "\">\n";
00074 echo "<img src=\"images/tn_" . $file_name . "\" alt=\"\" align=center vspace=5 hspace=5 border=0>\n";
00075 if ($caption)
00076 {
00077 echo "<h4 align=center>" . $caption . "</h4>";
00078 }
00079 echo "</a>\n";
00080 }
|
Variable Documentation
|
A global variable that is used to differentiate between different instances of classes that have the same state.
This feature is built into PHP5, this is a workaround, because my web host has php4.0.6.
Definition at line 15 of file functions.php. |
|