Exemple #1
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->filename = $meth->init_value_quote('filename', $data);
     $this->fileLength = $meth->init_value('fileLength', $data);
     $this->userCode = $meth->init_value('code', $data);
 }
Exemple #2
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->code = $meth->init_value_quote('code', $data);
     $this->page = $meth->init_value('page', $data);
     $this->number = $meth->init_value('number', $data);
     if ('' == $this->number) {
         $this->number = 10;
     }
 }
Exemple #3
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->fileName = $meth->init_value_quote('filename', $data);
     $this->userCode = $meth->init_value('code', $data);
     $this->contentLength = $meth->init_value('contentLength', $data);
     $this->contentType = $meth->init_value_quote('contentType', $data);
     $this->objectKey = $meth->init_value_quote('objectKey', $data);
     $this->Time = $meth->init_value_quote('time', $data);
     $this->audioTime = $meth->init_value_quote('audioTime', $data);
     $this->remark = $meth->init_value_quote('remark', $data);
 }
Exemple #4
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->name = $meth->init_value_quote('name', $data);
     $this->password = $meth->init_value_quote('password', $data);
 }
Exemple #5
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->topic_in = $meth->init_value_quote('str', $data);
 }
Exemple #6
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->contentType = $meth->init_value_quote('contentType', $data);
     $this->objectKey = $meth->init_value_quote('object', $data);
 }
Exemple #7
0
 public static function GET($req)
 {
     $url = Common::URL($req);
     if (isset($url['path'])) {
         $path = explode('/', $url['path']);
         $len = count($path);
         if ($len == 2 && $path[1] == 'logs') {
             self::baseRequest();
         } else {
             if ($len == 4 && $path[2] == 'log') {
                 $sql['table'] = 'logs';
                 $log = $path[3];
                 $sql['where'][] = "`log`='{$log}'";
                 if (isset($url['query'])) {
                     $query = explode('=', $url['query']);
                     if ($query[0] == 'id') {
                         $range = explode('-', $query[1]);
                         if (count($range) == 2) {
                             if ($range[0] < $range[1]) {
                                 $sql['where'][] = "`id` BETWEEN {$range['0']} AND {$range['1']}";
                             } else {
                                 $sql['where'][] = "`id` BETWEEN {$range['1']} AND {$range['0']}";
                                 $sql['order'][] = "`id`";
                                 $sql['sort'] = "DESC";
                             }
                         }
                     }
                 }
                 if (isset($sql)) {
                     $data = SQL::select($sql);
                     print json_encode($data);
                 }
             } else {
                 Methods::GET($req);
             }
         }
     }
 }
Exemple #8
0
            
             echo "\n" . 'Slowa ' . $slowo . ' i ' . $slowoDrugie . ' nie sa anagramami.' . "\n";
            
        }
        
    } else {
        
        echo "\n" . 'Slowa ' . $slowo . ' i ' . $slowoDrugie . ' nie sa anagramami.' . "\n"; 
        
    }

}

}

$example = new Methods();

// Funkcja 1
$example->ileRazy('cokolwiek', 'o');
echo "\n";

// Funkcja 2
$example->sprawdzSlowo('cokolwiek');
echo "\n";

// Funkcja 3
$example->slowoWSlowie('Konstantynopolitanczykowianeczka', 'an');
echo "\n";

// Funkcja 4
$example->zamienWycinek('lalalol', 'la', 'heh');