File indexing completed on 2024-12-29 05:24:41
0001 <?php 0002 /** 0003 * ocs-webserver 0004 * 0005 * Copyright 2016 by pling GmbH. 0006 * 0007 * This file is part of ocs-webserver. 0008 * 0009 * This program is free software: you can redistribute it and/or modify 0010 * it under the terms of the GNU Affero General Public License as 0011 * published by the Free Software Foundation, either version 3 of the 0012 * License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU Affero General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Affero General Public License 0020 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 **/ 0022 0023 $helperUsers = new Default_View_Helper_NewUsers(); 0024 $users = $helperUsers->newUsers($limit = 216,'created_at','DESC'); 0025 $buildMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0026 $helperImage = new Default_View_Helper_Image(); 0027 ?> <!-- new code --> 0028 <style> 0029 header { 0030 display: none; 0031 } 0032 0033 main#reg-page section#register-wrap { 0034 top: 25%; 0035 } 0036 0037 .btn-action { 0038 background-color: #FA6914; 0039 border-color: #eea236; 0040 color: #fff; 0041 } 0042 0043 .btn-action.active, .btn-action.focus, .btn-action:active, .btn-action:focus, .btn-action:hover, .open > .dropdown-toggle.btn-action { 0044 background-color: #FF8A44; 0045 border-color: #FFA36D; 0046 color: #fff; 0047 } 0048 0049 #sitelinks:hover .err-menu { 0050 display: block; 0051 } 0052 0053 .err-menu { 0054 left: -310px; 0055 margin: 0; 0056 width: 410px; 0057 } 0058 0059 .err-menu ul { 0060 float: left; 0061 list-style: outside none none; 0062 margin-left: -20px; 0063 margin-right: 8px; 0064 max-height: 100px; 0065 overflow: hidden; 0066 font-size: 13px; 0067 } 0068 0069 .err-menu li:before { 0070 content: "ยป "; 0071 } 0072 </style> 0073 <main id="reg-page"> 0074 0075 <section class="wrapper absolute" id="register-wrap"> 0076 <div id="register" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 clearfix"> 0077 <div id="register-box" class=""> 0078 0079 <div> 0080 <h1><span class="text-danger">We're sorry.</span></h1> 0081 0082 <h4 class="text-danger"><?php echo $this->message ?></h4> 0083 0084 0085 <div class="col-lg-6 col-md-6"> 0086 <form id="search" class="" action="/search"> 0087 <div class="input-group"> 0088 <input type="text" 0089 class="form-control" 0090 placeholder="Search for..." 0091 name="projectSearchText"> 0092 <span class="input-group-btn"> 0093 <button class="btn btn-action" type="submit">Search!</button> 0094 </span> 0095 </div> 0096 <!-- /input-group --> 0097 </form> 0098 </div> 0099 <div class="col-lg-3 col-md-3"> 0100 <button class="btn btn-primary" onclick="window.location = '/'">Homepage</button> 0101 </div> 0102 0103 <?php /* 0104 <div id="sitelinks" class="col-lg-3 col-md-3"> 0105 <div class="btn-group"> 0106 <button type="button" 0107 class="btn btn-primary dropdown-toggle" 0108 data-toggle="dropdown" 0109 aria-haspopup="true" 0110 aria-expanded="false"> 0111 Site Links <span class="caret"></span> 0112 </button> 0113 <div class="dropdown-menu err-menu"> 0114 0115 <ul> 0116 <li><a href="/">Home</a></li> 0117 </ul> 0118 <ul> 0119 <li><a href="/content/contact">Contact Us</a></li> 0120 <li><a href="/content/privacy">Privacy Policy</a></li> 0121 <li><a href="/content/terms">Terms & Conditions</a></li> 0122 </ul> 0123 <ul> 0124 <li><a href="https://www.facebook.com/opendesktop.org" target="_blank">Facebook</a></li> 0125 <li><a href="https://twitter.com/opendesktop" target="_blank">Twitter</a></li> 0126 <li><a href="https://plus.google.com/115086171173715906631" target="_blank">Google+</a> 0127 </li> 0128 </ul> 0129 0130 </div> 0131 </div> 0132 </div> 0133 */ 0134 ?> 0135 0136 <?php 0137 $config = Zend_Registry::get('config'); 0138 $displayErrors = $config->phpSettings->display_errors; 0139 if (($displayErrors == 1) AND (isset($this->exception))): ?> 0140 0141 <div class="col-lg-12 col-md-12"> 0142 <h3>Exception information:</h3> 0143 <p> 0144 <b>Message:</b> <?php echo $this->exception->getMessage() ?> 0145 </p> 0146 0147 <h3>Stack trace:</h3> 0148 <pre><?php 0149 if (isset($this->exception->xdebug_message)) { 0150 echo $this->exception->xdebug_message; 0151 } else { 0152 echo $this->exception->getTraceAsString(); 0153 } 0154 ?></pre> 0155 0156 <h3>Request URI:</h3> 0157 <pre><?php echo Zend_Controller_Front::getInstance()->getRequest()->getRequestUri(); ?></pre> 0158 0159 <h3>Request Parameters:</h3> 0160 <pre><?php echo var_export($this->request->getParams(), true) ?></pre> 0161 </div> 0162 <?php endif ?> 0163 </div> 0164 <!-- /.container --> 0165 0166 </div> 0167 <!-- END #register-box --> 0168 </div> 0169 </section> 0170 0171 <section id="thumbs"> 0172 0173 <?php foreach ($users as $key => $user) { ?> 0174 0175 <div class="thumb"> 0176 <a href="<?php echo $buildMemberUrl->buildMemberUrl($user['username']); ?>"> 0177 <span></span> 0178 <img src="<?php echo $helperImage->Image($user['profile_image_url'],array('width' => 110, 'height' => 110, 'crop' => 2)); ?>"/> 0179 </a> 0180 </div> 0181 0182 <?php } ?> 0183 0184 </section> 0185 0186 </main> 0187 <!-- /new code --> 0188 0189 0190 <?php /* $this->inlineScript()->appendScript( 0191 ' $(document).ready(function(){ 0192 PartialJson.setup(); 0193 }); 0194 '); */ 0195