• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP util_make_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中util_make_url函数的典型用法代码示例。如果您正苦于以下问题:PHP util_make_url函数的具体用法?PHP util_make_url怎么用?PHP util_make_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了util_make_url函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: CallHook

 function CallHook($hookname, $params)
 {
     global $G_SESSION, $HTML;
     if ($hookname == "headermenu") {
         $guide = util_make_url('/plugins/online_help/');
         $user_guide = array('user' => 'ug_user.html', 'login' => 'ug_getting_started_login.html', 'trove' => 'ug_sitewide_trove.html', 'snippet' => 'ug_sitewide_snippet.html', 'people' => 'ug_sitewide_project_help.html', 'home' => 'ug_project.html', 'admin' => 'ug_project_project_admin.html', 'activity' => 'ug_project_activity.html', 'forums' => 'ug_project_forums.html', 'tracker' => 'ug_project_tracker.html', 'mail' => 'ug_project_mailing_lists.html', 'pm' => 'ug_project_task_manager.html', 'docman' => 'ug_project_docman.html', 'surveys' => 'ug_project_surveys.html', 'news' => 'ug_project_news.html', 'scm' => 'ug_project_subversion.html', 'frs' => 'ug_project_file_releases.html', 'wiki' => 'ug_project_wiki.html');
         if (strstr($_SERVER['REQUEST_URI'], 'softwaremap')) {
             $guide .= $user_guide['trove'];
         } elseif (strstr($_SERVER['REQUEST_URI'], '/my/')) {
             $guide .= $user_guide['user'];
         } elseif (strstr($_SERVER['REQUEST_URI'], '/account/login.php')) {
             $guide .= $user_guide['login'];
         } elseif (strstr($_SERVER['REQUEST_URI'], '/account/')) {
             $guide .= $user_guide['user'];
         } elseif (strstr($_SERVER['REQUEST_URI'], '/snippet/')) {
             $guide .= $user_guide['snippet'];
         } elseif (strstr($_SERVER['REQUEST_URI'], '/people/')) {
             $guide .= $user_guide['people'];
         } elseif (isset($params['toptab']) && isset($user_guide[$params['toptab']])) {
             $guide .= $user_guide[$params['toptab']];
         } else {
             $guide .= 'index.html';
         }
         $guide = '<a href="javascript:help_window(\'' . $guide . '\')">' . _('Get Help') . '</a>';
         $template = isset($params['template']) ? $params['template'] : ' | {menu}';
         echo str_replace('{menu}', $guide, $template);
     }
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:28,代码来源:online_helpPlugin.class.php


示例2: util_make_url_g

/**
 * Create URL for a project's page
 *
 * @param string $groupame
 * @param int $group_id
 * @return string
 */
function util_make_url_g($groupame, $group_id)
{
    if (isset($GLOBALS['sys_noforcetype']) && $GLOBALS['sys_noforcetype']) {
        return util_make_url("/project/?group_id={$group_id}");
    } else {
        return util_make_url("/projects/{$groupame}/");
    }
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:15,代码来源:utils.php


示例3: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     for ($i = 0; $i < $rowsCount; $i++) {
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td width="50%"><a href="' . util_make_url('/forum/message.php?msg_id=' . db_result($result, $i, 'msg_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'subject') . '</a></td>' . '<td width="30%">' . db_result($result, $i, 'realname') . '</td>' . '<td width="20%">' . date($dateFormat, db_result($result, $i, 'post_date')) . '</td></tr>';
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:16,代码来源:ForumHtmlSearchRenderer.class.php


示例4: is_allowed

 function is_allowed($action = "read", &$options)
 {
     $method = 'may_' . $action;
     if (method_exists($this, $method)) {
         if (!$this->{$method}($action, $options)) {
             header('Location: ' . util_make_url('/account/login.php?return_to=' . $_SERVER['SCRIPT_URI']));
             exit;
         }
     }
     return 1;
 }
开发者ID:ahastudio,项目名称:moniwiki,代码行数:11,代码来源:nforge.php


示例5: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $groupId = $this->groupId;
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     for ($i = 0; $i < $rowsCount; $i++) {
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td>' . db_result($result, $i, 'artifact_id') . '</td>' . '<td><a href="' . util_make_url('/tracker/?group_id=' . $groupId . '&amp;atid=' . db_result($result, $i, 'group_artifact_id') . '&amp;func=detail&aid=' . db_result($result, $i, 'artifact_id')) . '"> ' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'summary') . '</a></td>' . '<td>' . db_result($result, $i, 'realname') . "</td>" . '<td>' . date($dateFormat, db_result($result, $i, 'open_date')) . '</td></tr>';
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:17,代码来源:ArtifactHtmlSearchRenderer.class.php


示例6: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $return = '';
     for ($i = 0; $i < $rowsCount; $i++) {
         if (db_result($result, $i, 'type') == 2) {
             $what = 'foundry';
         } else {
             $what = 'projects';
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td width="30%"><a href="' . util_make_url('/' . $what . '/' . db_result($result, $i, 'unix_group_name') . '/') . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . $this->highlightTargetWords(db_result($result, $i, 'group_name')) . '</a></td>' . '<td width="70%">' . $this->highlightTargetWords(db_result($result, $i, 'short_description')) . '</td></tr>';
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:20,代码来源:ProjectHtmlSearchRenderer.class.php


示例7: docman_recursive_display

function docman_recursive_display($docgroup)
{
    global $nested_groups, $nested_docs, $group_id;
    if (is_array(@$nested_groups[$docgroup])) {
        foreach ($nested_groups[$docgroup] as $dg) {
            echo "\n\t\t['" . '<span class="JSCookTreeFolderClosed"><i><img alt="" src="\' + ctThemeXPBase + \'folder1.gif" /></i></span><span class="JSCookTreeFolderOpen"><i><img alt="" src="\' + ctThemeXPBase + \'folderopen1.gif"></i></span>' . "', '" . $dg->getName() . "', '#', '', '',";
            docman_recursive_display($dg->getID());
            if (isset($nested_docs[$dg->getID()]) && is_array($nested_docs[$dg->getID()])) {
                foreach ($nested_docs[$dg->getID()] as $d) {
                    $docurl = util_make_url('/docman/view.php/' . $group_id . '/' . $d->getID() . '/' . $d->getFileName());
                    $docname = addslashes($d->getName()) . " (" . $d->getFileName() . ")";
                    $docdesc = addslashes($d->getDescription());
                    echo ",['','" . $docname . "','" . $docurl . "','','" . $docdesc . "' ]";
                }
            }
            echo ",\n\t\t],";
        }
    }
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:19,代码来源:index.php


示例8: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $rowColor = 0;
     $lastForumName = null;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentForumName = db_result($result, $i, 'forum_name');
         if ($lastForumName != $currentForumName) {
             $return .= '<tr><td colspan="4">' . $currentForumName . '</td></tr>';
             $lastForumName = $currentForumName;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . '<td width="5%">&nbsp;</td>' . '<td><a href="' . util_make_url('/forum/message.php?msg_id=' . db_result($result, $i, 'msg_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'subject') . '</a></td>' . '<td width="15%">' . db_result($result, $i, 'realname') . '</td>' . '<td width="15%">' . date($dateFormat, db_result($result, $i, 'post_date')) . '</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:ForumsHtmlSearchRenderer.class.php


示例9: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $rowColor = 0;
     $lastProjectName = null;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentProjectName = db_result($result, $i, 'project_name');
         if ($lastProjectName != $currentProjectName) {
             $return .= '<tr><td colspan="7">' . $currentProjectName . '</td></tr>';
             $lastProjectName = $currentProjectName;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . ' <td width="5%">&nbsp;</td>' . ' <td>' . db_result($result, $i, 'project_task_id') . '</td>' . ' <td>' . '<a href="' . util_make_url('/pm/task.php?func=detailtask&project_task_id=' . db_result($result, $i, 'project_task_id') . '&group_id=' . $this->groupId . '&group_project_id=' . db_result($result, $i, 'group_project_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'summary') . '</a></td>' . ' <td width="15%">' . date($dateFormat, db_result($result, $i, 'start_date')) . '</td>' . ' <td width="15%">' . date($dateFormat, db_result($result, $i, 'end_date')) . '</td>' . ' <td width="15%">' . db_result($result, $i, 'realname') . '</td>' . ' <td width="8%">' . db_result($result, $i, 'percent_complete') . ' %</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:TasksHtmlSearchRenderer.class.php


示例10: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $lastDocGroup = null;
     $rowColor = 0;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentDocGroup = db_result($result, $i, 'groupname');
         if ($lastDocGroup != $currentDocGroup) {
             $return .= '<tr><td colspan="4">' . $currentDocGroup . '</td></tr>';
             $lastDocGroup = $currentDocGroup;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . '<td width="5%">&nbsp;</td>' . '<td>' . db_result($result, $i, 'docid') . '</td>' . '<td><a href="' . util_make_url('/docman/view.php/' . $this->groupId . '/' . db_result($result, $i, 'docid') . '/' . db_result($result, $i, 'title')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'title') . '</a></td>' . '<td>' . db_result($result, $i, 'description') . '</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:DocsHtmlSearchRenderer.class.php


示例11: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $rowColor = 0;
     $lastTracker = null;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentTracker = db_result($result, $i, 'name');
         if ($lastTracker != $currentTracker) {
             $return .= '<tr><td colspan="5">' . $currentTracker . '</td></tr>';
             $lastTracker = $currentTracker;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . '<td width="5%">&nbsp;</td>' . '<td>' . db_result($result, $i, 'artifact_id') . '</td>' . '<td>' . '<a href="' . util_make_url('/tracker/?func=detail&group_id=' . $this->groupId . '&aid=' . db_result($result, $i, 'artifact_id') . '&atid=' . db_result($result, $i, 'group_artifact_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'summary') . '</a></td>' . '<td width="15%">' . db_result($result, $i, 'realname') . '</td>' . '<td width="15%">' . date($dateFormat, db_result($result, $i, 'open_date')) . '</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:TrackersHtmlSearchRenderer.class.php


示例12: form_release_key

        form_release_key(getStringFromRequest('form_key'));
        exit_error('Error', $u->getErrorMessage());
    }
    if (!$u->setNewEmailAndHash($newemail, $confirm_hash)) {
        form_release_key(getStringFromRequest('form_key'));
        exit_error('Could Not Complete Operation', $u->getErrorMessage());
    }
    $message = stripcslashes(sprintf(_('You have requested a change of email address on %1$s.
Please visit the following URL to complete the email change:

%2$s

 -- the %1$s staff'), $GLOBALS['sys_name'], util_make_url('/account/change_email-complete.php?ch=_' . $confirm_hash)));
    util_send_message($newemail, sprintf(_('%1$s Verification'), $GLOBALS['sys_name']), $message);
    site_user_header(array('title' => _('Email Change Confirmation')));
    printf(_('<p>An email has been sent to the new address. Follow the instructions in the email to complete the email change. </p><a href="%1$s">[ Home ]</a>'), util_make_url('/'));
    site_user_footer(array());
    exit;
}
site_user_header(array('title' => _('Email change')));
echo _('<p>Changing your email address will require confirmation from your new email address, so that we can ensure we have a good email address on file.</p><p>We need to maintain an accurate email address for each user due to the level of access we grant via this account. If we need to reach a user for issues arriving from a shell or project account, it is important that we be able to do so.</p>  <p>Submitting the form below will mail a confirmation URL to the new email address. Visiting this link will complete the email change.</p>');
?>

<form action="<?php 
echo getStringFromServer('PHP_SELF');
?>
" method="post">
<input type="hidden" name="form_key" value="<?php 
echo form_generate_key();
?>
"/>
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:change_email.php


示例13: exit_error

if (!$group || !is_object($group)) {
    exit_error(_('Error'), _('Error creating group'));
} else {
    if ($group->isError()) {
        exit_error(_('Error'), $group->getErrorMessage());
    }
}
// Snapshot can be downloaded only if anon SCM is enabled or if the
// logged in user belongs the group
$permission = $group->enableAnonSCM();
if (session_loggedin()) {
    $perm =& $group->getPermission(session_get_user());
    if ($perm && is_object($perm) && !$perm->isError() && $perm->isMember()) {
        $permission = true;
    }
}
if (!$permission) {
    exit_permission_denied();
}
// Download file
$group_name = $group->getUnixName();
$filename = $group_name . '-scm-latest.tar.gz';
if (file_exists($sys_scm_snapshots_path . '/' . $filename)) {
    Header('Content-disposition: filename="' . str_replace('"', '', $filename) . '"');
    Header('Content-type: application/x-gzip');
    $length = filesize($sys_scm_snapshots_path . '/' . $filename);
    Header('Content-length: ' . $length);
    readfile_chunked($sys_scm_snapshots_path . '/' . $filename);
} else {
    session_redirect(util_make_url('/404.php'));
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:snapshots.php


示例14: CallHook

 function CallHook($hookname, &$params)
 {
     if (isset($params['group_id'])) {
         $group_id = $params['group_id'];
     } elseif (isset($params['group'])) {
         $group_id = $params['group'];
     } else {
         $group_id = null;
     }
     if ($hookname == "groupmenu") {
         $project = group_get_object($group_id);
         if (!$project || !is_object($project)) {
             return;
         }
         if ($project->isError()) {
             return;
         }
         if (!$project->isProject()) {
             return;
         }
         if ($project->usesPlugin($this->name)) {
             $params['TITLES'][] = $this->text;
             $params['DIRS'][] = util_make_url('/plugins/mediawiki/wiki/' . $project->getUnixName() . '/index.php');
             $params['ADMIN'][] = '';
             $params['TOOLTIPS'][] = _('Mediawiki Space');
         }
         $params['toptab'] == $this->name ? $params['selected'] = count($params['TITLES']) - 1 : '';
     } elseif ($hookname == "groupisactivecheckbox") {
         //Check if the group is active
         // this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
         $group = group_get_object($group_id);
         echo "<tr>";
         echo "<td>";
         echo ' <input type="checkbox" name="use_mediawikiplugin" value="1" ';
         // checked or unchecked?
         if ($group->usesPlugin($this->name)) {
             echo "checked";
         }
         echo " /><br/>";
         echo "</td>";
         echo "<td>";
         echo "<strong>Use " . $this->text . " Plugin</strong>";
         echo "</td>";
         echo "</tr>";
     } elseif ($hookname == "groupisactivecheckboxpost") {
         // this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
         $group = group_get_object($group_id);
         $use_mediawikiplugin = getStringFromRequest('use_mediawikiplugin');
         if ($use_mediawikiplugin == 1) {
             $group->setPluginUse($this->name);
         } else {
             $group->setPluginUse($this->name, false);
         }
     } elseif ($hookname == "project_public_area") {
         $project = group_get_object($group_id);
         if (!$project || !is_object($project)) {
             return;
         }
         if ($project->isError()) {
             return;
         }
         if (!$project->isProject()) {
             return;
         }
         if ($project->usesPlugin($this->name)) {
             echo '<div class="public-area-box">';
             print '<a href="' . util_make_url('/plugins/mediawiki/wiki/' . $project->getUnixName() . '/index.php') . '">';
             print html_abs_image(util_make_url('/plugins/mediawiki/wiki/' . $project->getUnixName() . '/skins/fusionforge/wiki.png'), '20', '20', array('alt' => 'Mediawiki'));
             print ' Mediawiki';
             print '</a>';
             echo '</div>';
         }
     } elseif ($hookname == "role_get") {
         $role =& $params['role'];
         // Read access
         $right = new PluginSpecificRoleSetting($role, 'plugin_mediawiki_read');
         $right->SetAllowedValues(array('0', '1'));
         $right->SetDefaultValues(array('Admin' => '1', 'Senior Developer' => '1', 'Junior Developer' => '1', 'Doc Writer' => '1', 'Support Tech' => '1'));
         // Edit privileges
         $right = new PluginSpecificRoleSetting($role, 'plugin_mediawiki_edit');
         $right->SetAllowedValues(array('0', '1', '2', '3'));
         $right->SetDefaultValues(array('Admin' => '3', 'Senior Developer' => '2', 'Junior Developer' => '1', 'Doc Writer' => '3', 'Support Tech' => '0'));
         // File upload privileges
         $right = new PluginSpecificRoleSetting($role, 'plugin_mediawiki_upload');
         $right->SetAllowedValues(array('0', '1', '2'));
         $right->SetDefaultValues(array('Admin' => '2', 'Senior Developer' => '2', 'Junior Developer' => '1', 'Doc Writer' => '2', 'Support Tech' => '0'));
         // Administrative tasks
         $right = new PluginSpecificRoleSetting($role, 'plugin_mediawiki_admin');
         $right->SetAllowedValues(array('0', '1'));
         $right->SetDefaultValues(array('Admin' => '1', 'Senior Developer' => '0', 'Junior Developer' => '0', 'Doc Writer' => '0', 'Support Tech' => '0'));
     } elseif ($hookname == "role_normalize") {
         $role =& $params['role'];
         $new_sa =& $params['new_sa'];
         $new_pa =& $params['new_pa'];
         $projects = $role->getLinkedProjects();
         foreach ($projects as $p) {
             $role->normalizePermsForSection($new_pa, 'plugin_mediawiki_read', $p->getID());
             $role->normalizePermsForSection($new_pa, 'plugin_mediawiki_edit', $p->getID());
             $role->normalizePermsForSection($new_pa, 'plugin_mediawiki_upload', $p->getID());
             $role->normalizePermsForSection($new_pa, 'plugin_mediawiki_admin', $p->getID());
//.........这里部分代码省略.........
开发者ID:pombredanne,项目名称:tuleap,代码行数:101,代码来源:mediawikiPlugin.class.php


示例15: sendAttachNotice

 /**
  *	sendAttachNotice - contains the logic to send out email attachement followups when a message is posted.
  *
  *	@param int	attach_id	- The id of the file that has been attached
  *
  *	@return boolean success.
  */
 function sendAttachNotice($attach_id)
 {
     if ($attach_id) {
         $ids =& $this->Forum->getMonitoringIDs();
         //
         //	See if there is anyone to send messages to
         //
         if (!count($ids) > 0 && !$this->Forum->getSendAllPostsTo()) {
             return true;
         }
         $body = "\nRead and respond to this message at: " . "\n" . util_make_url('/forum/message.php?msg_id=' . $this->getID()) . "\nBy: " . $this->getPosterRealName() . "\n\n";
         $body .= "A file has been uploaded to this message, you can download it at: " . "\n" . util_make_url('/forum/attachment.php?attachid=' . $attach_id . "&group_id=" . $this->Forum->Group->getID() . "&forum_id=" . $this->Forum->getID()) . "\n\n";
         $body .= "\n\n______________________________________________________________________" . "\nYou are receiving this email because you elected to monitor this forum." . "\nTo stop monitoring this forum, login to " . $GLOBALS['sys_name'] . " and visit: " . "\n" . util_make_url('/forum/monitor.php?forum_id=' . $this->Forum->getID() . '&group_id=' . $this->Forum->Group->getID() . '&stop=1');
         $extra_headers = "Return-Path: <noreply@" . $GLOBALS['sys_default_domain'] . ">\n";
         $extra_headers .= "Errors-To: <noreply@" . $GLOBALS['sys_default_domain'] . ">\n";
         $extra_headers .= "Sender: <noreply@" . $GLOBALS['sys_default_domain'] . ">\n";
         $extra_headers .= "Reply-To: " . $this->Forum->getReturnEmailAddress() . "\n";
         $extra_headers .= "Precedence: Bulk\n" . "List-Id: " . $this->Forum->getName() . " <forum" . $this->Forum->getId() . "@" . $GLOBALS['sys_default_domain'] . ">\n" . "List-Help: " . util_make_url('/forum/forum.php?id=' . $this->Forum->getId()) . "\n" . "Message-Id: <forumpost" . $this->getId() . "@" . $GLOBALS['sys_default_domain'] . ">";
         $parentid = $this->getParentId();
         if (!empty($parentid)) {
             $extra_headers .= "\nIn-Reply-To: " . $this->Forum->getReturnEmailAddress() . "\n" . "References: <forumpost" . $this->getParentId() . "@" . $GLOBALS['sys_default_domain'] . ">";
         }
         $subject = "[" . $this->Forum->getUnixName() . "][" . $this->getID() . "] " . util_unconvert_htmlspecialchars($this->getSubject());
         if (count($ids) != 0) {
             $sql = "SELECT email FROM users WHERE status='A' AND user_id IN ('" . implode($ids, '\',\'') . "')";
             $bccres = db_query($sql);
         }
         ($BCC =& implode(util_result_column_to_array($bccres), ',')) . ',' . $this->Forum->getSendAllPostsTo();
         $User = user_get_object($this->getPosterID());
         util_send_message('', $subject, $body, "noreply@" . $GLOBALS['sys_default_domain'], $BCC, 'Forum', $extra_headers);
         return true;
     }
     return false;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:41,代码来源:ForumMessage.class.php


示例16: _

	{
		autoOpen: false,
		width: 350,
		modal: true,
		buttons: [
			{
				text : "<?php 
            echo _("Create task");
            ?>
",
				id: "new-task-dialog-submit-button",
				click : function () {
					jQuery.ajax({
						type: 'POST',
						url: '<?php 
            echo util_make_url('/plugins/taskboard/ajax.php');
            ?>
',
						dataType: 'json',
						data : {
							action : 'add',
							group_id : gGroupId,
							tracker_id : jQuery('#tracker_id').val(),
							user_story_id : jQuery('#user_story_id').val(), 
							title : jQuery('#tracker-summary').val(),
							desc : jQuery('#tracker-description').val(),
							release : jQuery('select[name="_release"]').val()
						},
						async: true
					}).done(function( answer ) {
						jQuery('#new-task-dialog').dialog( "close" );
开发者ID:vpylypv,项目名称:taskboard,代码行数:31,代码来源:index.php


示例17: _

} else {
    echo '<p>' . _('Choose a tracker and you can browse/edit/add items to it.') . '<p>';
    /*
    Put the result set (list of trackers for this group) into a column with folders
    */
    $tablearr = array(_('Tracker'), _('Description'), _('Open'), _('Total'));
    echo $HTML->listTableTop($tablearr);
    for ($j = 0; $j < count($at_arr); $j++) {
        if (!is_object($at_arr[$j])) {
            //just skip it
        } elseif ($at_arr[$j]->isError()) {
            echo $at_arr[$j]->getErrorMessage();
        } else {
            echo '
		<tr ' . $HTML->boxGetAltRowStyle($j) . '>
			<td><a href="' . util_make_url('/tracker/?atid=' . $at_arr[$j]->getID() . '&amp;group_id=' . $group_id . '&func=browse') . '">' . html_image("ic/tracker20w.png", "20", "20", array("border" => "0")) . ' &nbsp;' . $at_arr[$j]->getName() . '</a>
			</td>
			<td>' . $at_arr[$j]->getDescription() . '
			</td>
			<td style="text-align:center">' . (int) $at_arr[$j]->getOpenCount() . '
			</td>
			<td style="text-align:center">' . (int) $at_arr[$j]->getTotalCount() . '
			</td>
		</tr>';
        }
    }
    echo $HTML->listTableBottom();
}
echo site_project_footer(array());
// Local Variables:
// mode: php
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:ind.php


示例18: getIntFromRequest

 *
 */
require_once '../env.inc.php';
require_once $gfwww . 'include/pre.php';
require_once $gfwww . 'docman/include/doc_utils.php';
require_once $gfcommon . 'docman/Document.class.php';
$docid = getIntFromRequest('docid');
if ($docid) {
    $group_id = getIntFromRequest('group_id');
    $g =& group_get_object($group_id);
    if (!$g || !is_object($g)) {
        exit_no_group();
    } elseif ($g->isError()) {
        exit_error('Error', $g->getErrorMessage());
    }
    $d = new Document($g, $docid);
    if (!$d || !is_object($d)) {
        exit_error('Document unavailable', 'Document is not available.');
    } elseif ($d->isError()) {
        exit_error('Error', $d->getErrorMessage());
    }
    docman_header($d->getName(), $d->getName());
    printf(_('This document was moved to <a href="%1$s">this new location</a>'), util_make_url("/docman/view.php/{$group_id}/{$docid}"));
    docman_footer(array());
} else {
    exit_error(_('No document data'), _('No document to display - invalid or inactive document number.'));
}
// Local Variables:
// mode: php
// c-file-style: "bsd"
// End:
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:display_doc.php


示例19: sendNotice

 /**
  *   sendNotice - Notifies of document submissions
  */
 function sendNotice($new = true)
 {
     $BCC = $this->Group->getDocEmailAddress();
     if (strlen($BCC) > 0) {
         $subject = '[' . $this->Group->getPublicName() . '] New document - ' . $this->getName();
         $body = "Project: " . $this->Group->getPublicName() . "\n";
         $body .= "Group: " . $groupname . "\n";
         $body .= "Document title: " . $this->getName() . "\n";
         $body .= "Document description: " . util_unconvert_htmlspecialchars($this->getDescription()) . "\n";
         $body .= "Submitter: " . $this->getCreatorRealName() . " (" . $this->getCreatorUserName() . ") \n";
         $body .= "\n\n-------------------------------------------------------" . "\nFor more info, visit:" . "\n\n" . util_make_url('/docman/index.php?group_id=' . $this->Group->getID());
         util_send_message('', $subject, $body, '', $BCC);
     }
     return true;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:18,代码来源:Document.class.php


示例20: getIntFromRequest

 *
 * GForge is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * GForge is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GForge; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
require_once $gfwww . 'include/pre.php';
$group_id = getIntFromRequest('group_id');
$sub_group_id = getIntFromRequest('sub_group_id');
session_require(array('group' => $group_id, 'admin_flags' => 'A'));
//plugin webcal
$params[0] = $sub_group_id;
$params[1] = $group_id;
plugin_hook('del_cal_link_father', $params);
//del link between two projects
$sql = "DELETE FROM plugin_projects_hierarchy WHERE project_id  = '" . $group_id . "' AND sub_project_id = '" . $sub_group_id . "'";
//print "<br>".$sql;
db_begin();
db_query($sql) or die(db_error());
db_commit();
header("Location: " . util_make_url('/project/admin/index.php?group_id=' . $sub_group_id));
开发者ID:neymanna,项目名称:fusionforge,代码行数:30,代码来源:del_father.php



注:本文中的util_make_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP util_redirect函数代码示例发布时间:2022-05-23
下一篇:
PHP util_make_link函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap