create_url = $where_am_i . "create.php3"; # used for mail-this-link bookmark $this->maillink_url = $where_am_i . "maillink.php3"; # the following wording is automatically added to all outgoing # mail-this-link email messages $this->site_footer = sprintf("--\nThis message sent from the bookmarker bookmark manager\nat %s\nPlease contact the server administrator at\n%s to report abuse of this service.", $where_am_i, $SERVER_ADMIN); # this var controls the headers that are added to the mail-this-link # email message. You may choose to bcc: yourself, record the senders IP... # the headers should be separated by a newline ("\n") $this->site_headers = sprintf("X-Sender: bookmarker at %s\nX-Sender-IP: $REMOTE_ADDR", $SERVER_NAME); } } # instantiate the bookmarker class so we can access # the variables. $bookmarker = new bookmarker_class (); # if the user's browser is a 5.0 or later version, then # use PNG images. otherwise use GIF images. $bookmarker->image_ext="gif"; if (ereg( "MSIE ([0-9]+)",$HTTP_USER_AGENT,$version)) { $ver=(int)$version[1]; if ($ver>=5) $bookmarker->image_ext="png"; } elseif (ereg( "Opera/([0-9]+)",$HTTP_USER_AGENT,$version)) { # $opera=true; } elseif (ereg( "Mozilla/([0-9]+)",$HTTP_USER_AGENT,$version)) { $ver=(int)$version[1]; if ($ver>=5) $bookmarker->image_ext="png"; } # every bookmarker page uses templates to generate HTML. $tpl = new bktemplate; $tpl->set_root(TEMPLATEDIR); $tpl->set_unknowns("remove"); # create an instance of the data validation class $validate = new Validator (); ?>