当前位置: 首页>>代码示例>>PHP>>正文


PHP secure_url函数代码示例

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


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

示例1: getFeed

 public function getFeed()
 {
     $feed = Feed::make();
     //$feed->clearCache();
     $feed->setCache(180, 'shantavo-feed');
     if (!$feed->isCached()) {
         $pictures = Picture::orderBy('uploaded_at', 'desc')->take(20)->get();
         $feed->title = 'Нещо Шантаво';
         $feed->description = 'Последни снимки';
         $feed->link = 'https://neshto.shantavo.com/';
         $feed->logo = "https://neshto.shantavo.com/favicon.png";
         $feed->icon = "https://neshto.shantavo.com/favicon.png";
         $feed->pubdate = $pictures[0]->uploaded_at;
         $feed->lang = 'bg';
         $feed->setDateFormat('datetime');
         foreach ($pictures as $picture) {
             $feed->add($picture->title, $picture->user->username, secure_url('picture/' . $picture->id), $picture->uploaded_at, $picture->title, $picture->title);
         }
     }
     return $feed->render('atom');
 }
开发者ID:straho99,项目名称:NeshtoShantavo,代码行数:21,代码来源:HomeController.php

示例2: requestGithubAccess

 /**
  * Request GitHub access
  *
  * @param string $scope  A comma separated list of scopes
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function requestGithubAccess($scope)
 {
     $clientId = $this->config['client_id'];
     $redirectUri = secure_url('/getaccesstoken');
     $state = csrf_token();
     return Redirect::to('https://github.com/login/oauth/authorize?client_id=' . $clientId . '&redirect_uri=' . $redirectUri . '&scope=' . $scope . '&state=' . $state);
 }
开发者ID:ronnie,项目名称:Gist-List,代码行数:14,代码来源:AbstractGithubApi.php

示例3: handle

 /**
  * Handle the event.
  *
  * @param  UserWasRegistered $event
  *
  * @return mixed
  */
 public function handle(UserWasRegistered $event)
 {
     $user = $event->user;
     $receiver = $user->email;
     $subject = $this->subject();
     $data = ['user' => $user->present()->firstName, 'code' => $user->confirmation_code, 'link_' => secure_url(route('account.activate', ['code' => $user->confirmation_code]))];
     return $this->mailer->queue('emails.activation', compact('data'), function ($m) use($receiver, $subject) {
         $m->to($receiver);
         $m->subject($subject);
     });
 }
开发者ID:muhamadsyahril,项目名称:ecommerce-1,代码行数:18,代码来源:SendRegistrationEmail.php

示例4: destroy

 /**
  * Remove the specified session from storage.
  * DELETE /session/{id}
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy()
 {
     // Check if already logged in
     if (Auth::check()) {
         // Close the session
         Auth::logout();
         Session::flush();
         Session::flash('alert_success', 'Logged out successfully.');
     }
     // Return to home page
     return Redirect::to(secure_url('/login'));
 }
开发者ID:julianfresco,项目名称:mentorshipLog,代码行数:19,代码来源:SessionController.php

示例5: store

 /**
  * Store a newly created resource in storage.
  * POST /user
  *
  * @return Response
  */
 public function store()
 {
     $validator = Validator::make($data = Input::all(), User::$rules);
     if ($validator->fails()) {
         return Redirect::back()->withErrors($validator)->withInput();
     }
     $data = $this->prepareUserRegistration();
     try {
         User::create($data);
         Session::flash('alert_success', 'User account created successfully. Please log in.');
         return Redirect::to(secure_url('/login'));
     } catch (\RuntimeException $e) {
         // dd($e->getMessage()); // debug
         Session::flash('alert_danger', 'Failed to create User account.');
         return Redirect::back()->withInput();
     }
 }
开发者ID:julianfresco,项目名称:mentorshipLog,代码行数:23,代码来源:UserController.php

示例6: boot

 /**
  * STATUS CODE
  * -----------
  * 0: Created
  * 1: Confirmed
  * 2: Suspended
  * 3: Deleted
  */
 public static function boot()
 {
     parent::boot();
     // Setup event bindings...
     Subscription::created(function ($subscription) {
         $user = $subscription->user;
         $project_id = $subscription->project_id;
         $confirm_url = secure_url('subscriptions/' . $subscription->confirm_token);
         if ($subscription->project_id == 0) {
             $map_image_link = 'https://api.tiles.mapbox.com/v4/codeforafrica.ji193j10' . '/geojson(' . urlencode($subscription->geojson) . ')' . '/auto/600x250.png?' . 'access_token=pk.eyJ1IjoiY29kZWZvcmFmcmljYSIsImEiOiJVLXZVVUtnIn0.JjVvqHKBGQTNpuDMJtZ8Qg';
         } else {
             $map_image_link = 'http://api.tiles.mapbox.com/v4/codeforafrica.ji193j10/' . $subscription->geojson . '/600x250.png256?' . 'access_token=pk.eyJ1IjoiY29kZWZvcmFmcmljYSIsImEiOiJVLXZVVUtnIn0.JjVvqHKBGQTNpuDMJtZ8Qg';
             $project_title = $subscription->project->title;
         }
         $data = compact('subscription', 'user', 'project_id', 'project_title', 'map_image_link', 'confirm_url');
         \Mail::queue('emails.subscription.new', $data, function ($message) use($user) {
             $message->to($user->email)->subject('#GreenAlert | Confirm Subscription!');
         });
     });
 }
开发者ID:schlos,项目名称:GreenAlert,代码行数:28,代码来源:Subscription.php

示例7: secure_url

<script type="text/javascript" src="https://js.stripe.com/v2/"></script>

<div class="row" id="signup-form">

  <form method="POST" action="<?php 
echo $settings->enable_https ? secure_url('signup') : URL::to('signup');
?>
" class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1" id="payment-form">
    
    <input name="_token" type="hidden" value="<?php 
echo csrf_token();
?>
">
      
      <div class="panel panel-default registration">
        
        <div class="panel-heading">
          
          <div class="row">
                  
              <h1 class="panel-title col-lg-7 col-md-8 col-sm-6"><?php 
echo ThemeHelper::getThemeSetting(@$theme_settings->signup_message, 'Signup to Gain access to all content on the site for $7 a month.');
?>
</h1>

              <div class="cc-icons col-lg-5 col-md-4">
                  <img src="<?php 
echo THEME_URL;
?>
/assets/img/credit-cards.png" alt="All Credit Cards Supported" />
              </div>
开发者ID:rinodung,项目名称:hello-video-laravel,代码行数:31,代码来源:signup.php

示例8: getTicketImageUrlAttribute

 public function getTicketImageUrlAttribute()
 {
     return secure_url('img/tickets/' . $this->year . '/' . $this->slug . '.png');
 }
开发者ID:Bogstag,项目名称:bogstag.se,代码行数:4,代码来源:Movie.php

示例9: secure_url

<div class="container">

    <?php 
if (Session::has('notification')) {
    ?>
        <span class="notification"><?php 
    echo Session::get('notification');
    ?>
</span>
    <?php 
}
?>
     

    <form method="POST" action="<?php 
echo $settings->enable_https ? secure_url('password/reset') : URL::to('password/reset');
?>
" accept-charset="UTF-8" class="form-signin">
        <?php 
if (Session::has('error')) {
    ?>
          <span class="error"><?php 
    echo trans(Session::get('reason'));
    ?>
</span>
        <?php 
} elseif (Session::has('success')) {
    ?>
          <span class="success"><?php 
    echo Lang::get('lang.email_sent');
    ?>
开发者ID:rinodung,项目名称:hello-video-laravel,代码行数:31,代码来源:form-forgot-password.php

示例10: getLoginResponse

 /**
  * @param Request $request
  * @return $this|\Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\Response
  */
 protected function getLoginResponse(Request $request)
 {
     if ($this->data === AuthContract::ACCOUNT_NOT_ACTIVATED) {
         // user's account isn't activated
         return $this->getAccountActivationResponse($request);
     }
     if ($this->data === AuthContract::ACCOUNT_DISABLED) {
         // user's account is disabled
         return $this->getAccountDisabledResponse($request);
     }
     if ($request->ajax()) {
         if (!$this->data) {
             return response()->json(["message" => $this->loginErrorMessage], 401);
         }
         return response()->json(["target" => secure_url(session("url.intended", $this->redirectPath()))]);
     } else {
         if (!$this->data) {
             flash()->error($this->loginErrorMessage);
             return redirect($this->loginPath())->withInput($request->only('email', 'remember'));
         }
         return redirect()->intended($this->redirectPath());
     }
 }
开发者ID:muhamadsyahril,项目名称:ecommerce-1,代码行数:27,代码来源:AuthRedirector.php

示例11: filesystemEndpoint

 /**
  * @return string
  */
 private function filesystemEndpoint() : string
 {
     return rtrim(secure_url($this->config->get(sprintf('filesystems.disks.%s.public', $this->config->get('filesystems.default')))), '/');
 }
开发者ID:hughgrigg,项目名称:ching-shop,代码行数:7,代码来源:NewImageListener.php

示例12: lang

			<h3 class="panel-title"><i class="fa fa-exclamation-sign"></i> <?php 
echo lang('error');
?>
</h3>
		
		</div>

		<div class="panel-body">


			<p>

			<?php 
switch ($status_code) {
    case 426:
        printf(lang('error_' . $status_code), secure_url());
        break;
    default:
        echo lang('error_' . $status_code);
}
?>


			</p>

		

		</div>

	</div><!-- /panel -->
开发者ID:BillTheBest,项目名称:munkireport,代码行数:30,代码来源:client_error.php

示例13: getPayment

 /**
  * 결제창 호출
  * @param Request $request
  * @param $method
  * @return mixed
  */
 public function getPayment(Request $request, $method)
 {
     list($order_code, $goodname, $price, $buyername, $buyertel, $buyeremail, $identifier) = $this->preparePayment($request, $this->paymethod[$method]);
     if (in_array($method, $this->selfPaymethod)) {
         // 자체 포인트 / 마일리지 결제
         list($result, $msg) = $this->doSelfPayment($order_code, $goodname, $identifier, $method, $price);
         if (!$result) {
             return $this->paymentFailed($request, $msg);
         } else {
             return $this->paymentComplete($order_code, $identifier, $method, '', $price);
         }
     } else {
         // 이니시스 결제
         $config = config('inicis');
         $dev_mode = $config['dev_mode'];
         $merchantData = ['order_code' => $order_code, 'identifier' => $identifier, 'method' => $method];
         if (Agent::isMobile()) {
             if ($config['ssl']) {
                 $nexturl = secure_url($config['base_url'] . '/next');
                 $notiurl = url($config['base_url'] . '/noti');
                 $returnurl = secure_url($config['base_url'] . '/mobile-return');
             } else {
                 $nexturl = url($config['base_url'] . '/next');
                 $notiurl = url($config['base_url'] . '/noti');
                 $returnurl = url($config['base_url'] . '/mobile-return');
             }
             $appScheme = $this->getAppScheme();
             $dataField = ['P_MID' => $config['mid'], 'P_OID' => $order_code, 'P_AMT' => $price, 'P_UNAME' => $buyername, 'P_NOTI' => urlencode(serialize($merchantData)), 'P_GOODS' => $goodname, 'P_MOBILE' => $buyertel, 'P_EMAIL' => $buyeremail, 'P_CHARSET' => 'utf8'];
             $targetUrl = '';
             switch ($method) {
                 case 'card':
                     $targetUrl = 'https://mobile.inicis.com/smart/wcard/';
                     $dataField['P_RESERVED'] = 'twotrs_isp=Y&block_isp=Y&twotrs_isp_noti=N&apprun_check=Y&app_scheme=' . $appScheme;
                     $dataField['P_NEXT_URL'] = $nexturl;
                     break;
                 case 'hp':
                     $targetUrl = 'https://mobile.inicis.com/smart/mobile/';
                     $dataField['P_HPP_METHOD'] = '1';
                     $dataField['P_NEXT_URL'] = $nexturl;
                     break;
                 case 'va':
                     $targetUrl = 'https://mobile.inicis.com/smart/vbank/';
                     $dataField['P_RESERVED'] = 'vbank_receipt=Y';
                     $dataField['P_NOTI_URL'] = $notiurl;
                     $dataField['P_RETURN_URL'] = $returnurl;
                     $dataField['P_NEXT_URL'] = $nexturl;
                     break;
                 case 'ra':
                     $targetUrl = 'https://mobile.inicis.com/smart/bank/';
                     $dataField['P_NOTI_URL'] = $notiurl;
                     $dataField['P_RETURN_URL'] = $returnurl;
                     break;
             }
             return view('inicis::mobile.pay_request')->with(compact('dataField', 'targetUrl'));
         } else {
             $timestamp = INIStdPayUtil::getTimestamp();
             $sign = hash('sha256', 'oid=' . $order_code . '&price=' . $price . '&timestamp=' . $timestamp);
             $mKey = hash('sha256', $config['signKey']);
             if ($config['ssl']) {
                 $returnUrl = secure_url($config['base_url'] . '/return');
                 $closeUrl = secure_url($config['base_url'] . '/close');
                 $popupUrl = secure_url($config['base_url'] . '/popup');
             } else {
                 $returnUrl = url($config['base_url'] . '/return');
                 $closeUrl = url($config['base_url'] . '/close');
                 $popupUrl = url($config['base_url'] . '/popup');
             }
             $dataField = ['version' => '1.0', 'mid' => $config['mid'], 'oid' => $order_code, 'goodname' => $goodname, 'price' => $price, 'currency' => 'WON', 'buyername' => $buyername, 'buyertel' => $buyertel, 'buyeremail' => $buyeremail, 'timestamp' => $timestamp, 'signature' => $sign, 'returnUrl' => $returnUrl, 'payViewType' => $config['payViewType'], 'closeUrl' => $closeUrl, 'popupUrl' => $popupUrl, 'mKey' => $mKey, 'merchantData' => urlencode(serialize($merchantData))];
             // 결제수단 고정
             switch ($method) {
                 case 'card':
                     $dataField['gopaymethod'] = 'Card';
                     break;
                 case 'ra':
                     $dataField['gopaymethod'] = 'DirectBank';
                     break;
                 case 'va':
                     $dataField['gopaymethod'] = 'VBank';
                     break;
                 case 'hp':
                     $dataField['gopaymethod'] = 'HPP';
                     break;
             }
             // 결제 옵션 추가
             $option = $this->parseConfig($config[$method . '_option']);
             $dataField = array_merge($dataField, $option);
             return view('inicis::pay_request')->with(compact('dataField', 'dev_mode'));
         }
     }
 }
开发者ID:visualplus,项目名称:pg-inicis,代码行数:96,代码来源:PaygateController.php

示例14: secure_url

								<div class="col-md-6">
									<div class="feature-info">
										<h2><?php 
    echo $video->title;
    ?>
</h2>
										<div class="feature_duration"><i class="fa fa-clock-o"></i> <?php 
    echo TimeHelper::convert_seconds_to_HMS($video->duration);
    ?>
</div>
										<p><?php 
    echo $video->description;
    ?>
</p>
										<a href="<?php 
    echo $settings->enable_https ? secure_url('video') : URL::to('video');
    echo '/' . $video->id;
    ?>
" class="btn btn-primary">Watch Now</a>
									</div>

								</div>

							</div>
							<div style="clear:both"></div>
						</li>
					<?php 
}
?>

				</ul>
开发者ID:rinodung,项目名称:hello-video-laravel,代码行数:31,代码来源:home.php

示例15: logout

 public function logout()
 {
     // Removing session data
     redirect(secure_url('recruiter'));
 }
开发者ID:GrabTalentRecruitment,项目名称:GrabTalent,代码行数:5,代码来源:recruiter_dashboard.php


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