Example #1
0
    } else {
        if ($cmd == 'edit_action') {
            $user = get_logged_in_user();
            require_founder_login($user, $team);
            check_tokens($user->authenticator);
            $forum = BoincForum::lookup("parent_type=1 and category={$teamid}");
            if (!$forum) {
                error_page("No forum");
            }
            edit_action($forum);
        } else {
            if ($cmd == "remove_confirm") {
                $user = get_logged_in_user();
                require_founder_login($user, $team);
                remove_confirm($user, $team);
            } else {
                if ($cmd == "remove") {
                    $user = get_logged_in_user();
                    require_founder_login($user, $team);
                    remove($team);
                } else {
                    if ($cmd != "") {
                        error_page("unknown command {$cmd}");
                    } else {
                        show_forum($team);
                    }
                }
            }
        }
    }
}
Example #2
0
	<td class="right">
		<input type="hidden" name="id" value="<?php 
echo $forum->id;
?>
">
		<?php 
echo select_from_array("sort", $forum_sort_styles, $sort_style);
?>
		<input type="submit" value="Sort">
	</td>
	</tr>
</table>
</form>

<?php 
echo show_forum($forum, $start, $sort_style, $user);
echo '<p>This message board is available as an
	<a href="forum_rss.php?forumid=' . $forum->id . '&amp;setup=1">RSS feed
	<img src="img/feed_logo.png"></a></p>';
page_tail();
// This function shows the threads for the given forum
// Starting from $start,
// using the given $sort_style (as defined in forum.php)
// and using the features for the logged in user in $user.
//
function show_forum($forum, $start, $sort_style, $user)
{
    $gotoStr = "";
    $nav = show_page_nav($forum, $start);
    if ($nav) {
        $gotoStr = "<div align=\"right\">{$nav}</div><br />";
Example #3
0
    if(document.getElementById('reject').checked) {
        return confirm('Are you sure you want to reject this submission?');
<?php 
                if ($submission["status"] === 'pending') {
                    ?>
    } else if(document.getElementById('accept').checked) {
        return confirm('Are you sure you want to accept this submission?');
<?php 
                }
                ?>
    }
    return confirm('Are you sure you want to reject this '+
        'submission with prejudice?');
}
</script><input type=submit value="Apply" id=apply disabled onclick="return confirmapply()"></td>
</tr></table>
</form>
<?php 
            }
        }
        ?>
</div>
</td></tr>
<?php 
    }
    ?>
</table>

<?php 
    show_forum("subm{$id}", $projinfo['name']);
}
Example #4
0
/**
 * @brief display unit resources
 * @global type $tool_content
 * @global type $langUnknownResType
 * @global type $is_editor
 * @param type $info
 * @return type
 */
function show_resource($info)
{
    global $tool_content, $langUnknownResType, $is_editor;
    if ($info->visible == 0 and !$is_editor) {
        return;
    }
    switch ($info->type) {
        case 'doc':
            $tool_content .= show_doc($info->title, $info->comments, $info->id, $info->res_id);
            break;
        case 'text':
            $tool_content .= show_text($info->comments, $info->id, $info->visible);
            break;
        case 'description':
            $tool_content .= show_description($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'lp':
            $tool_content .= show_lp($info->title, $info->comments, $info->id, $info->res_id);
            break;
        case 'video':
        case 'videolink':
            $tool_content .= show_video($info->type, $info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'videolinkcategory':
            $tool_content .= show_videocat($info->type, $info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'exercise':
            $tool_content .= show_exercise($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'work':
            $tool_content .= show_work($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'topic':
        case 'forum':
            $tool_content .= show_forum($info->type, $info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'wiki':
            $tool_content .= show_wiki($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'poll':
            $tool_content .= show_poll($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'link':
            $tool_content .= show_link($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'linkcategory':
            $tool_content .= show_linkcat($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'ebook':
            $tool_content .= show_ebook($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'section':
            $tool_content .= show_ebook_section($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        case 'subsection':
            $tool_content .= show_ebook_subsection($info->title, $info->comments, $info->id, $info->res_id, $info->visible);
            break;
        default:
            $tool_content .= $langUnknownResType;
    }
}
Example #5
0
            print date("Y-m-d H:i T", $history[$i]["time"]);
            print "</span> ";
            if ($history[$i]["action"] == 'accept') {
                print "<span class=accepted>[ACCEPTED]</span> ";
            } else {
                if ($history[$i]["action"] == 'reject') {
                    print "<span class=rejected>[REJECTED]</span> ";
                }
            }
            print "<a href='" . projurl($id, "post=" . $history[$i]['postid']) . "' onClick='return fold3(\"reqmts{$id}\",\"" . $ancestry . "\")'>";
            print htmlentities($history[$i]['subject']) . "</a>";
            print "</li>\n";
        }
        print "</ul>\n";
    }
    show_forum("reqmts{$id}", $projinfo['name'], 0);
} else {
    if ($tab == 'disputes') {
        include_once "disputelist.php";
        show_dispute($id);
    } else {
        if ($tab == 'subprojects') {
            include_once 'allot.php';
        } else {
            if ($tab == 'sponsors') {
                include_once 'sponsors.php';
            } else {
                if ($tab == 'submissions') {
                    include_once 'submissions.php';
                } else {
                    if ($tab == 'start') {
Example #6
0
</p>
<?php 
            } else {
                if ($disputeinfo["type"] == 'badreject') {
                    ?>
<input id=plaintiff type=radio name=decision value=accept>&nbsp;<label for="plaintiff">Accept the submission</label>
<p class=help>
If the submission fully met all project requirements at the time it
was submitted, then it should be accepted.
</p>
<?php 
                }
            }
        }
        ?>
</td>
</tr>
</table>
<input type=submit value="Submit Decision" onclick="return confirm('Are you sure you want to submit your decision?')">
<input type=hidden name='id' value='<?php 
        echo $id;
        ?>
'>
</div>
</form>
<?php 
    }
}
include_once "forum.php";
show_forum("spect{$id}", "");
Example #7
0
Fossfactory-src 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Fossfactory-src.  If not, see <http://www.gnu.org/licenses/>.
*/
$tab = scrub($_REQUEST["tab"]);
if (!$tab) {
    $tab = 'general';
}
apply_template("Feedback", array(array("name" => "Feedback", "href" => "feedback.php")));
?>
<h1>FOSS Factory Feedback</h1>
<p>
Please use these forums to discuss anything about the site.
You can also <a href="contact.php">contact us</a> by email or snail mail.
</p>
<?php 
include_once "tabs.php";
$tabs = array("general" => "General", "bugs" => "Bugs", "features" => "Feature Requests");
tab_header($tabs, "feedback.php", $tab, "general");
include_once "forum.php";
$forum = "feedback";
if ($tab != "general") {
    $forum .= "{$tab}";
}
show_forum($forum, $tabs[$tab]);
tab_footer();