function getLoginUrl($change_array = null) { if (!isset($change_array)) { return PHP_SELF_QUERY(); } $vars = array_merge(AMP_Url_Values(), $change_array); return AMP_Url_AddVars($_SERVER['PHP_SELF'], $vars); }
function _listLink($options = array()) { if (!isset($options['_linked_uid'])) { return false; } $comment_count_lookup = FormLookup::instance('commentCounts'); $comment_count = isset($comment_count_lookup[$options['_linked_uid']]) ? $comment_count_lookup[$options['_linked_uid']] : 0; $link_text = ($comment_count ? $comment_count : AMP_TEXT_NO) . ' ' . AMP_pluralize(AMP_TEXT_COMMENT); $renderer =& $this->_get_renderer(); //current comment count $comments = $renderer->link(AMP_Url_AddAnchor(AMP_Url_AddVars(PHP_SELF_QUERY(), array('uid=' . $options['_linked_uid'])), 'comments'), $link_text); //add comment link $comments .= $renderer->separator() . $renderer->link(AMP_Url_AddVars(AMP_CONTENT_URL_COMMENT_ADD, array('userdata_id=' . $options['_linked_uid'])), AMP_TEXT_ADD); return $comments . $renderer->newline(2); }
function getLoginUrl() { return PHP_SELF_QUERY(); }
function init($name, $method = "POST", $action = null) { $this->formname = $name; if (!isset($action)) { $action = PHP_SELF_QUERY(); } $this->form =& new HTML_QuickForm($name, $method, $action); $this->template =& new AMPFormTemplate(); $this->_after_init(); }
function _HTML_startForm() { if (isset($this->suppress['form_tag']) && $this->suppress['form_tag']) { return false; } $url_value = PHP_SELF_QUERY(); //does not auto_add 'action' value to URL return '<form name="' . $this->formname . '" method="POST" action="' . $url_value . "\">\n"; }
<?php #$modid = "31"; $mod_name = "template"; require_once "Connections/freedomrising.php"; // *** Edit Operations: declare Tables $MM_editAction = PHP_SELF_QUERY(); $MM_editQuery = ""; if (!$_REQUEST['filename']) { $filename = "styles.css"; } else { $filename = basename($_REQUEST['filename']); } if ($_POST['cssedit']) { $fp = fopen(AMP_LOCAL_PATH . '/custom/' . $filename, "w+"); $test = fwrite($fp, $_REQUEST['cssedit']); fclose($fp); } if (file_exists_incpath($filename)) { if ($contents = file_get_contents($filename, true)) { $msg_action = " : " . basename($filename); } else { $msg_action = " : couldn't open " . basename($filename); } } else { $msg_action = " : New File : " . basename($filename); } include "header.php"; ?> <script language=JavaScript src="picker.js"></script> <h2><?php
function _HTML_startForm() { if (isset($this->suppress['form_tag']) && $this->suppress['form_tag']) { return false; } $url_value = PHP_SELF_QUERY(); if (!strpos($url_value, 'action')) { $url_value = AMP_URL_AddVars($url_value, array('action=list')); } return '<form name="' . $this->formname . '" method="POST" action="' . $url_value . "\">\n"; }