Exemplo n.º 1
0
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Home work 4 (lesson 6)!</title>
    <link rel="stylesheet" type="text/styles" href="css/style.css" />
    <script language="JavaScript" src="_my_jav_scr.js">
<!--

//-->
</script>
</head>

<?php 
//require_once 'unit.php' ;
//require 'unit.php' ;
include 'cookie.php';
$uni = new Cookie();
$uni->get_cookie();
Exemplo n.º 2
0
 public function is_auth($key)
 {
     $key_stripped = preg_replace('/\\.+/', '_', $key);
     if (!is_null(Cookie::get_cookie($key_stripped))) {
         if (strlen($key_stripped) >= $this->auth_legal_len) {
             return false;
             throw new ShopifyApiException($this->shop, 'Auth Token Exception, not legal token', 0);
         }
         return true;
     } else {
         return false;
     }
 }