File indexing completed on 2024-12-29 05:24:37
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 $users = $this->newUsers($limit = 216,'created_at','DESC'); 0024 $buildMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0025 $url_param_redirect = isset($this->redirect) ? 'redirect/'.$this->redirect : null; 0026 $this->headMeta()->setName('robots', 'noindex, nofollow'); 0027 $imageHelper = new Default_View_Helper_Image(); 0028 0029 $regs=""; 0030 $ip = $_SERVER['REMOTE_ADDR']; 0031 0032 ?> 0033 0034 <script language="javascript"> 0035 0036 function test(data) { 0037 $(document).ready(function(){ 0038 $('#ipv4').val(data['ip']); 0039 }); 0040 0041 } 0042 0043 function test6(data) { 0044 $(document).ready(function(){ 0045 $('#ipv6').val(data['ip']); 0046 }); 0047 0048 } 0049 0050 </script> 0051 0052 <script type="application/javascript" src="https://ipify6.pling.com?format=jsonp&callback=test6"></script> 0053 <script type="application/javascript" src="https://ipify4.pling.com?format=jsonp&callback=test"></script> 0054 0055 <link href="/theme/flatui/css/bootstrap/social-buttons.css" rel="stylesheet" type="text/css"> 0056 <style> 0057 .btn-github { 0058 border: 1px solid; 0059 border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); 0060 } 0061 </style> 0062 <!-- new code --> 0063 <main id="reg-page"> 0064 0065 <section class="wrapper" id="register-wrap"> 0066 <div id="register" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 clearfix"> 0067 <div id="register-box" class="col-lg-8 col-md-8 col-sm-8 col-xs-8"> 0068 0069 <?= $this->render('authorization/partials/loginForm.phtml') ?> 0070 0071 </div> 0072 <!-- END #register-box --> 0073 <div id="social-register" class="col-lg-4 col-md-4 col-sm-4 col-xs-4"> 0074 <h3></h3> 0075 0076 <div id="social-login-elements"> 0077 <div class="bottom margin-top-15"> 0078 <a href="/login/ocs/<?= $url_param_redirect ?>" class="btn btn-block btn-social btn-github" rel="nofollow"> 0079 <span class="glyphicon glyphicon-log-in"></span> 0080 <span class="small" style="padding-left:2px;">openDesktop ID</span> 0081 </a> 0082 </div> 0083 0084 <div class="bottom margin-top-15"> 0085 <div id="show-login-description" class="small light lightgrey">New user?</div> 0086 <div class="login2"> 0087 <a href="/register/" id="show-login-form" class="btn btn-native btn-min-width" rel="nofollow"> 0088 <i class="icon-white icon-lock"></i> 0089 Register 0090 </a> 0091 </div> 0092 </div> 0093 </div> 0094 0095 </div> 0096 </section> 0097 0098 <section id="thumbs"> 0099 <?php foreach ($users as $key => $user) { ?> 0100 <div class="thumb"> 0101 <a href="<?php echo $buildMemberUrl->buildMemberUrl($user['username']); ?>" 0102 title="<?= $user['profile_image_url'] ?>"> 0103 <span></span> 0104 <img src="<?php echo $imageHelper->Image($user['profile_image_url'], array('width' => 110, 'height' => 110, 'crop' => 2)); ?>"/> 0105 </a> 0106 </div> 0107 <?php } ?> 0108 </section> 0109 0110 </main> 0111 <!-- /new code --> 0112 <script> 0113 var PartialJsonLogin = (function () { 0114 return { 0115 setup: function () { 0116 $('body').on("submit", 'form.partialjson', function (event) { 0117 event.preventDefault(); 0118 event.stopImmediatePropagation(); 0119 0120 var target = $(this).attr("data-target"); 0121 var trigger = $(this).attr("data-trigger"); 0122 var loadState = $(this).attr('data-load-state'); 0123 0124 $(target).find(loadState).prop('disabled', true); 0125 $(target).find(loadState).find('i').removeClass('hidden'); 0126 0127 jQuery.ajax({ 0128 data: $(this).serialize(), 0129 url: this.action, 0130 type: this.method, 0131 dataType: "json", 0132 error: function () { 0133 $(target).empty().html("<span class='error'>Service is temporarily unavailable. Our engineers are working quickly to resolve this issue. <br/>Find out why you may have encountered this error.</span>"); 0134 $(target).find(loadState).prop('disabled', false); 0135 $(target).find(loadState).find('i').addClass('hidden'); 0136 }, 0137 success: function (data, textStatus) { 0138 $(target).find(loadState).prop('disabled', false); 0139 $(target).find(loadState).find('i').addClass('hidden'); 0140 0141 if (data.redirect) { 0142 // data.redirect contains the string URL to redirect to 0143 window.location.href = data.redirect; 0144 return; 0145 } 0146 if (target) { 0147 // data.message contains the HTML for the replacement form 0148 $(target).empty().html(data.message); 0149 } 0150 if (trigger) { 0151 $(target).find(trigger).trigger('click'); 0152 } 0153 } 0154 }); 0155 0156 return false; 0157 }); 0158 } 0159 } 0160 })(); 0161 0162 </script> 0163 0164 0165 <?php 0166 $session = new Zend_Session_Namespace(); 0167 $fp = $session->client_fp; 0168 if (empty($fp)) : ?> 0169 <script src="/tools/fpjs2/fp2.js" ></script> 0170 <script type="text/javascript"> 0171 var options={};window.requestIdleCallback?requestIdleCallback(function(){Fingerprint2.get(options,function(a){var b=a.map(function(a){return a.value}),c=Fingerprint2.x64hash128(b.join(""),31);$.post("/l/fp",{fp:c})})}):setTimeout(function(){Fingerprint2.get(options,function(a){var b=a.map(function(a){return a.value}),c=Fingerprint2.x64hash128(b.join(""),31);$.post("/l/fp",{fp:c})})},500); 0172 </script> 0173 <?php endif; ?> 0174 0175 0176 <?php $this->inlineScript()->appendScript( 0177 ' $(document).ready(function(){ 0178 PartialJsonLogin.setup(); 0179 }); 0180 ');