Exemple #1
0
">Logout</a></li> 
                    </ul>
                  </li>
                <?php 
}
?>
              </ul>
            </div>

          </div>
        </nav>
    </head>

    <div class="container">
      <?php 
echo $_content_;
?>
    </div>

    <script>console.log(<?php 
encode_quotes(round(microtime(true) - TIME_START, 3));
?>
 + 'sec');</script>
    <script src="/bootstrap/js/jquery-2.1.4.min.js"></script>
    <script src="/bootstrap/js/bootstrap.js"></script>


  </body>
  
</html>
<div style='float:right; font-size:15px; font-weight:900'><a class="btn btn-medium btn-primary" name="logout" href="<?php 
encode_quotes(url('thread/logout'));
?>
">Logout</a></div>
<h2><?php 
encode_quotes($thread->title);
?>
</h2>
            
<p class="alert alert-success">
  You successfully created.                
</p>
                        
<a href="<?php 
encode_quotes(url('comment/view', array('thread_id' => $thread->id)));
?>
">
  &larr; Go to thread                    
</a>
Exemple #3
0

<hr>
<form class="well" method="post" action="<?php 
encode_quotes(url('thread/write'));
?>
">
  <label>Your name</label>
  <input type="text" class="span2" name="username" value="<?php 
echo $_SESSION['username'];
?>
" disabled>
  <label>Comment</label>
  <textarea name="body"><?php 
encode_quotes(Param::get('body'));
?>
</textarea>
  <br/>
  <input type="hidden" name="thread_id" value="<?php 
encode_quotes($thread->id);
?>
">
  <input type="hidden" name="page_next" value="write_end">
   <div style="float:right; font-size:20px">&larr;Back to All <a href="<?php 
encode_quotes(url('thread/index'));
?>
">Threads</a><br></div>
  <button type="submit" class="btn btn-primary">Submit</button>
</form>
<div>
Exemple #4
0
/**
 * Get Main Navigation
 *
 * This will return unordered list of main navigation
 * This function uses the menu opitions listed within the 'Edit Page' control panel screen
 *
 * @since 1.0
 * @uses GSDATAOTHERPATH
 * @uses getXML
 * @uses subval_sort
 * @uses find_url
 * @uses strip_quotes 
 * @uses exec_filter 
 *
 * @param string $currentpage This is the ID of the current page the visitor is on
 * @return string 
 */
function get_navigation($currentpage)
{
    $menu = '';
    global $pagesArray;
    $pagesSorted = subval_sort($pagesArray, 'menuOrder');
    if (count($pagesSorted) != 0) {
        foreach ($pagesSorted as $page) {
            $sel = '';
            $classes = '';
            $url_nav = $page['url'];
            if ($page['menuStatus'] == 'Y') {
                if ("{$currentpage}" == "{$url_nav}") {
                    $classes = "current active " . $page['parent'] . " " . $url_nav;
                } else {
                    $classes = trim($page['parent'] . " " . $url_nav);
                }
                if ($page['menu'] == '') {
                    $page['menu'] = $page['title'];
                }
                if ($page['title'] == '') {
                    $page['title'] = $page['menu'];
                }
                $menu .= '<li class="' . $classes . '"><a href="' . find_url($page['url'], $page['parent']) . '" title="' . encode_quotes(cl($page['title'])) . '">' . strip_decode($page['menu']) . '</a></li>' . "\n";
            }
        }
    }
    echo exec_filter('menuitems', $menu);
}
/**
 * Get Main Navigation
 *
 * This will return unordered list of main navigation
 * This function uses the menu opitions listed within the 'Edit Page' control panel screen
 *
 * @since 1.0
 * @uses GSDATAOTHERPATH
 * @uses getXML
 * @uses subval_sort
 * @uses find_url
 * @uses strip_quotes 
 * @uses exec_filter 
 *
 * @param string $currentpage This is the ID of the current page the visitor is on
 * @param string $classPrefix Prefix that gets added to the parent and slug classnames
 * @return string 
 */
function get_navigation($currentpage = "", $classPrefix = "")
{
    $menu = '';
    global $pagesArray;
    $pagesSorted = subval_sort($pagesArray, 'menuOrder');
    if (count($pagesSorted) != 0) {
        foreach ($pagesSorted as $page) {
            $sel = $classes = '';
            $url_nav = (string) $page['url'];
            if ($page['menuStatus'] == 'Y') {
                $parentClass = !empty($page['parent']) ? $classPrefix . $page['parent'] . " " : "";
                $classes = trim($parentClass . $classPrefix . $url_nav);
                if ((string) $currentpage == $url_nav) {
                    $classes .= " current active";
                }
                if ($page['menu'] == '') {
                    $page['menu'] = $page['title'];
                }
                if ($page['title'] == '') {
                    $page['title'] = $page['menu'];
                }
                $menu .= '<li class="' . $classes . '"><a href="' . find_url($page['url'], $page['parent']) . '" title="' . encode_quotes(cl($page['title'])) . '">' . strip_decode($page['menu']) . '</a></li>' . "\n";
            }
        }
    }
    echo exec_filter('menuitems', $menu);
    // @filter menuitems (str) menu items html in get_navigation
}
Exemple #6
0
                
<?php 
}
?>

                    
<form class="well" method="post" action="<?php 
encode_quotes(url(''));
?>
">
  <label>Title</label>
  <input type="text" class="span2" name="title" value="<?php 
encode_quotes(Param::get('title'));
?>
">
  <label>Your name</label>
  <input type="text" class="span2" name="username" value="<?php 
echo $username;
?>
" disabled>
  <label>Comment</label>
  <textarea name="body"><?php 
encode_quotes(Param::get('body'));
?>
</textarea>
  <br />
  <input type="hidden" name="page_next" value="create_end">
   <div style="float:right; font-size:20px">&larr;Back to All <a href="index">Threads</a><br></div>
  <button type="submit" class="btn btn-primary">Submit</button>
</form> 
Exemple #7
0
        ?>
" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                  <div class="modal-dialog" role="document">
                    <div class="modal-content">
                      <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel">Warning</h4>
                      </div>
                      <div class="modal-body">
                        Do you really want to delete this thread?
                        <br/><br/>
                      <div class="modal-footer">
                        <input type="hidden" name="page_next" value="delete_end">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                        <a class="btn btn-danger" href="<?php 
        encode_quotes(url('thread/delete', array('thread_id' => $thread->id, 'page' => 'profile')));
        ?>
">Delete</a>
                      </div>
                      </div>
                    </div>
                  </div>
                </div>
                <?php 
    }
    ?>
            </div>
        </div>
    <?php 
}
?>
<div class="row">
    <div class="col-xs-12">
        <div class="well well-large pagenotfound">
            <h1 class="">404 Page Not Found</h1>
            <br/><br/><br/><br/><br/>
            <a class="btn btn-lg btn-primary btn-block" href="<?php 
encode_quotes(url('user/registration'));
?>
">
            <span class="glyphicon glyphicon-share-alt"></span> Go to Classroom 
            </a>
        </div>
    </div>
</div>
Exemple #9
0
encode_quotes($user->specialization);
?>
">
                </div>
                <input type="hidden" name="process" value="profile">
                <button type="submit" class="btn btn-default">Save</button>
            </form>
        </div>
    </div>
    <div class="col-xs-12">
        <div class="well well-large">
            <div class="page-header">
              <h1>Password</h1>
            </div>
            <form method="post" action="<?php 
encode_quotes(url('user/edit'));
?>
">
                <div class="form-group">
                    <label for="old">Old Password: </label>
                    <input name="oldPassword" type="password" class="form-control" id="old" placeholder="Old Password">
                </div>
                <div class="form-group">
                    <label for="new">New Password: </label>
                    <input name="password" type="password" class="form-control" id="new" placeholder="New Password">
                </div>
                <div class="form-group">
                    <label for="confirm">Confirm Password: </label>
                    <input name="confirmPassword" type="password" class="form-control" id="confirm" placeholder="Confirm Password">
                </div>
                <input type="hidden" name="process" value="password">
Exemple #10
0
                                <li><a href="?thread_id=<?php echo $thread->id ?>
                                    &page=<?php echo $i ?>"?><?php echo $i ?>
                                </a></li>
                            <?php endif ?>
                        <?php endfor ?>

                        <?php if(!$pagination->is_last_page): ?>
                            <li><a href="?thread_id=<?php echo $thread->id ?>
                                &page=<?php echo $pagination->next ?>">Next</a></li>
                        <?php else: ?>
                            <li class="disabled"><a href="#">Next</a></li>
                        <?php endif ?>
                    </ul>
                </nav>
            </div>
        <?php endif ?>
    </div>
</div>

<form class="well" method="post" action="<?php encode_quotes(url('comment/write')) ?>">
    <div class="form-group">
        <label for="comment">Comment</label>
        <textarea id="comment" name="body" class="form-control"><?php encode_quotes(Param::get('body')) ?></textarea>
    </div>
    <input type="hidden" name="thread_id" value="<?php encode_quotes($thread->id) ?>">
    <input type="hidden" name="page_next" value="write_end">
    <div class="form-group">
        <button type="submit" class="btn btn-primary">Comment</button>
    </div>
</form>
/**
 * Get Page Header HTML
 *
 * This will return header html for a particular page. This will include the 
 * meta desriptions & keywords, canonical and title tags
 *
 * @since 1.0
 * @uses exec_action
 * @uses get_page_url
 * @uses strip_quotes
 * @uses get_page_meta_desc
 * @uses get_page_meta_keywords
 * @uses $metad
 * @uses $title
 * @uses $content
 * @uses $site_full_name from configuration.php
 * @uses GSADMININCPATH
 *
 * @return string HTML for template header
 */
function get_header($full = true)
{
    global $metad;
    global $title;
    global $content;
    include GSADMININCPATH . 'configuration.php';
    if (function_exists('mb_substr')) {
        $description = trim(mb_substr(strip_tags(strip_decode($content)), 0, 160));
    } else {
        $description = trim(substr(strip_tags(strip_decode($content)), 0, 160));
    }
    if ($metad != '') {
        $description = get_page_meta_desc(FALSE);
    } else {
        $description = str_replace('"', '', $description);
        $description = str_replace("'", '', $description);
        $description = preg_replace('/\\n/', " ", $description);
        $description = preg_replace('/\\r/', " ", $description);
        $description = preg_replace('/\\t/', " ", $description);
        $description = preg_replace('/ +/', " ", $description);
    }
    $keywords = get_page_meta_keywords(FALSE);
    echo '<meta name="description" content="' . encode_quotes($description) . '" />' . "\n";
    echo '<meta name="keywords" content="' . encode_quotes($keywords) . '" />' . "\n";
    if ($full) {
        echo '<meta name="generator" content="' . $site_full_name . '" />' . "\n";
        echo '<link rel="canonical" href="' . get_page_url(true) . '" />' . "\n";
    }
    exec_action('theme-header');
}
<div class="alert alert-success">
    <h1>Congratulations!</h1>
    <p>Your request to join has been approved.</p>
    <a href="<?php 
encode_quotes(url('user/login'));
?>
"> Proceed to login </a>
</div>
/**
 * Get Main Navigation
 *
 * This will return unordered list of main navigation
 * This function uses the menu opitions listed within the 'Edit Page' control panel screen
 *
 * @since 1.0
 * @uses GSDATAOTHERPATH
 * @uses getXML
 * @uses subval_sort
 * @uses find_url
 * @uses strip_quotes 
 * @uses exec_filter 
 *
 * @param string $currentpage This is the ID of the current page the visitor is on
 * @param string $classPrefix Prefix that gets added to the parent and slug classnames
 * @return string 
 */
function get_navigation($currentpage, $classPrefix = "")
{
    $menu = '';
    global $pagesArray;
    global $SITEURL;
    // Kevin F - Just initializing array and img tag outside the loops
    $imgExts = array('.png', '.jpg', '.gif');
    $imgTag = '';
    $pagesSorted = subval_sort($pagesArray, 'menuOrder');
    if (count($pagesSorted) != 0) {
        foreach ($pagesSorted as $page) {
            $sel = '';
            $classes = '';
            $url_nav = $page['url'];
            // Kevin F - Change the $icon variable to suit your directory needs
            foreach ($imgExts as $ext) {
                if (is_file(GSDATAUPLOADPATH . 'img/menu-icons/' . $page['url'] . $ext)) {
                    $icon = $SITEURL . 'data/uploads/img/menu-icons/' . $page['url'] . $ext;
                    $imgTag = '<img src="' . $icon . '" alt="' . $page['title'] . ' " width="65" height="65">';
                    break;
                    // File found! break out of loop...
                } else {
                    $imgTag = '';
                    // Add no img element as there is no image...
                }
            }
            if ($page['menuStatus'] == 'Y') {
                $parentClass = !empty($page['parent']) ? $classPrefix . $page['parent'] . " " : "";
                $classes = trim($parentClass . $classPrefix . $url_nav);
                if ("{$currentpage}" == "{$url_nav}") {
                    $classes .= " current active";
                }
                if ($page['menu'] == '') {
                    $page['menu'] = $page['title'];
                }
                if ($page['title'] == '') {
                    $page['title'] = $page['menu'];
                }
                // Kevin F - The menu variable below has been modified to cater for icons and alt name
                $menu .= '<li class="' . $classes . '"><a href="' . find_url($page['url'], $page['parent']) . '" title="' . encode_quotes(cl($page['title'])) . '">' . $imgTag . '<span class="link-title">' . strip_decode($page['menu']) . '</span></a></li>' . "\n";
            }
        }
    }
    echo exec_filter('menuitems', $menu);
}
Exemple #14
0
">
            Logout
        </a>
    </div>

        <h1>All Threads</h1>
        <?php 
foreach ($threads as $v) {
    ?>
            <li><a href="<?php 
    encode_quotes(url('comment/view', array('thread_id' => $v->id)));
    ?>
">
                <?php 
    encode_quotes($v->title);
    ?>
</a></li>
        <?php 
}
?>
        </ul><br>

        <a class="btn btn-medium btn-primary" href="<?php 
encode_quotes(url('thread/create'));
?>
">Create</a><br><br>
        <?php 
echo $pagination['control'];
?>
    </div>
</fieldset>
Exemple #15
0
                <div><em>Title</em> cannot be spaces only.
                </div>
            <?php 
    }
    ?>

            <?php 
    if (!empty($comment->validation_errors['body']['length'])) {
        ?>
                <div><em>Comment</em> must be between
                    <?php 
        encode_quotes($comment->validation['body']['length'][1]);
        ?>
 and
                    <?php 
        encode_quotes($comment->validation['body']['length'][2]);
        ?>
 characters in length.
                </div>
            <?php 
    }
    ?>

            <?php 
    if (!empty($comment->validation_errors['body']['chars'])) {
        ?>
                <div><em>Comment</em> cannot be spaces only.
                </div>
            <?php 
    }
    ?>
Exemple #16
0
        </div>
    <?php 
    }
    ?>

</div>
<?php 
}
?>

<form class="well" method="post" action="<?php 
encode_quotes(url('comment/write'));
?>
">
    <div class="form-group">
        <label for="comment">Comment</label>
        <textarea id="comment" name="body" class="form-control"><?php 
encode_quotes(Param::get('body'));
?>
</textarea>
    </div>
    <input type="hidden" name="thread_id" value="<?php 
encode_quotes($thread->id);
?>
">
    <input type="hidden" name="page_next" value="write_end">
    <div class="form-group">
        <button type="submit" class="btn btn-primary">Comment</button>
    </div>
</form>
<!--
    User Registration Page
-->
<form class="well" action="<?php 
encode_quotes(url(''));
?>
" method="POST">
    <table border='0'>
        <tr><td><label>Username</label></td><td><input type="text" name='username' style="height:25px"></td></tr>
        <tr><td><label>Password</label></td><td><input type='password' name='pword' style="height:25px"></td></tr>
        <tr><td><label>Confirm Password&nbsp;</label></td><td><input type='password' name='pword_match' style="height:25px"></td></tr>
        <tr><td><label>First Name</label></td><td><input type='text' name='fname' style="height:25px"></td></tr>
        <tr><td><label>Last Name</label></td><td><input type='text' name='lname' style="height:25px"></td></tr>
        <tr><td><label>Email Address&nbsp;</label></td><td><input type='text' name='email' style="height:25px"></td></tr>
        <tr><td><button class="btn btn-medium btn-primary" type="submit">Register</button></td><td>Go to<a href="index" style="height:25px"> Login </a>Page</td></tr>
    </table>
</form>
<?php 
echo $status;
Exemple #18
0
    </div>
    <div class="col-xs-12  col-md-6 col-lg-5">
        <div class="well well-large">
            <div class="page-header">
              <h1><small>Trending Threads</small></h1>
            </div>
            <?php 
foreach ($trending_threads as $thread) {
    ?>
                <ul class="list-group">
                  <li class="list-group-item" onclick="location.href='<?php 
    encode_quotes(url('comment/view', array('thread_id' => $thread['thread_id'])));
    ?>
'" style="cursor:pointer;">
                    <span class="badge"><?php 
    encode_quotes($thread['count']);
    ?>
</span>
                    <?php 
    echo $thread['title'];
    ?>
                  </li>
                </ul>
            <?php 
}
?>
        </div>
    </div>
    <?php 
if ($pages > 1) {
    ?>