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


PHP up函数代码示例

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


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

示例1: navi

function navi($kat)
{
    global $db, $chkMe, $userid, $designpath;
    if ($k = _fetch(db("SELECT `level` FROM " . $db['navi_kats'] . " WHERE `placeholder` = '" . up($kat) . "'"))) {
        $intern = $chkMe >= 2 ? '' : " AND s1.`internal` = '0'";
        $permissions = $kat == 'nav_admin' && admin_perms($userid) ? "" : $intern . " AND " . intval($chkMe) . " >= '" . intval($k['level']) . "'";
        $qry = db("SELECT s1.* FROM " . $db['navi'] . " AS s1 LEFT JOIN " . $db['navi_kats'] . " AS s2 ON s1.kat = s2.placeholder\n                 WHERE s1.kat = '" . up($kat) . "' AND s1.`shown` = '1' " . $permissions . "\n                 ORDER BY s1.pos");
        while ($get = _fetch($qry)) {
            if ($get['type'] == 0) {
                $link = '';
            } elseif ($get['type'] == 1 || $get['type'] == 2 || $get['type'] == 3) {
                $name = $get['wichtig'] == 1 ? '<span class="fontWichtig">' . navi_name(re($get['name'])) . '</span>' : navi_name(re($get['name']));
                $target = $get['target'] == 1 ? '_blank' : '_self';
                if (file_exists($designpath . '/menu/' . $get['kat'] . '.html')) {
                    $link = show("menu/" . $get['kat'] . "", array("target" => $target, "href" => re($get['url']), "title" => strip_tags($name), "css" => ucfirst(str_replace('nav_', '', re($get['kat']))), "link" => $name));
                } else {
                    $link = show("menu/nav_link", array("target" => $target, "href" => re($get['url']), "title" => strip_tags($name), "css" => ucfirst(str_replace('nav_', '', re($get['kat']))), "link" => $name));
                }
                $table = strstr($link, '<tr>') ? true : false;
            }
            $navi .= $link;
        }
    }
    return empty($navi) ? '' : ($table ? '<table class="navContent" cellspacing="0">' . $navi . '</table>' : $navi);
}
开发者ID:nopuls,项目名称:dzcp,代码行数:25,代码来源:navi.php

示例2: upFirst

function upFirst($s, $separator = " ")
{
    $words = explode($separator, $s);
    $ret = "";
    foreach ($words as $key => $word) {
        $word[0] = up($word[0]);
        $ret .= $separator . $word;
    }
    return $ret;
}
开发者ID:javan-it-services,项目名称:internal,代码行数:10,代码来源:bootstrap.php

示例3: execute

 function execute()
 {
     $this->verbose = isset($this->params['verbose']);
     $this->out('[K]ick a certain number of jobs back into the ready queue.');
     $action = $this->in('What would you like to do?', 'K');
     switch (up($action)) {
         case 'K':
             $result = $this->Job->kick(array('bound' => $this->in('Number of jobs:', null, 100)));
             break;
     }
     $this->out($result ? 'OK' : 'FAILED');
 }
开发者ID:jamiemill,项目名称:queue,代码行数:12,代码来源:admin.php

示例4: letter

 function letter()
 {
     $letter = up($this->_arg('letter'));
     if (!$letter) {
         $this->Session->setFlash(sprintf(__('Invalid %s', true), __('letter', true)), 'default', array('class' => 'info'));
         $this->redirect(array('action' => 'index'));
     }
     $affiliate = $this->_arg('affiliate');
     $affiliates = $this->_applicableAffiliateIDs();
     $this->set(compact('letter', 'affiliates', 'affiliate'));
     $this->set('franchises', $this->Franchise->find('all', array('contain' => array('Person', 'Affiliate'), 'conditions' => array('Franchise.name LIKE' => "{$letter}%"), 'order' => array('Affiliate.name', 'Franchise.name'))));
     $this->set('letters', $this->Franchise->find('all', array('conditions' => array('Franchise.name LIKE' => "{$letter}%", 'Franchise.affiliate_id' => $affiliates), 'contain' => array('Affiliate'), 'fields' => array('DISTINCT SUBSTR(Franchise.name, 1, 1) AS letter'), 'order' => 'letter', 'group' => 'letter')));
 }
开发者ID:roboshed,项目名称:Zuluru,代码行数:13,代码来源:franchises_controller.php

示例5: transform

 /**
  * 変換する
  */
 public function transform(DTO $in_data, DTO $out_data, Charcoal_Properties $options = NULL)
 {
     $options = up($options);
     // オプション
     $overwrite = $options && $options['overwrite'] === TRUE ? TRUE : FALSE;
     // コピー元のフィールド一覧を取得
     $vars = get_object_vars($out_data);
     // フィールドごとにコピー
     foreach ($vars as $key => $value) {
         // 変換元の値がNULLなら更新しない
         if (!$overwrite && $value === NULL) {
             continue;
         }
         // そのままコピー
         $out_data->{$key} = $value;
     }
     return $out_data;
 }
开发者ID:stk2k,项目名称:charcoalphp2,代码行数:21,代码来源:SimpleTransformer.class.php

示例6: execute

 function execute()
 {
     $this->out('Debug Worker');
     $this->hr();
     $tubes = 'default';
     if ($this->args) {
         $tubes = array_shift($this->args);
         $this->interactive = false;
     }
     $this->tubes = explode(',', $this->in('Tubes to watch (separate with comma)', null, $tubes));
     while (true) {
         $this->hr();
         $this->out('Waiting for a job... STRG+C to abort');
         $job = $this->Job->reserve(array('tube' => $this->tubes));
         $this->out('');
         $this->out('Got:');
         $this->out(var_export($job, true));
         $this->out('');
         $this->out('[D]elete');
         $this->out('[B]ury');
         $this->out('[R]elease');
         $this->out('[T]ouch');
         $action = $this->in('What would you like to do?', 'D,B,R,T', 'D');
         switch (up($action)) {
             case 'D':
                 $result = $this->Job->delete();
                 break;
             case 'B':
                 $result = $this->Job->bury();
                 break;
             case 'R':
                 $result = $this->Job->release();
                 break;
             case 'T':
                 $result = $this->Job->touch();
                 break;
         }
         $this->out($result ? 'OK' : 'FAILED');
         if (low($this->in('Continue?', array('y', 'n'), 'y')) == 'n') {
             $this->_stop();
         }
     }
 }
开发者ID:jamiemill,项目名称:queue,代码行数:43,代码来源:debug_worker.php

示例7: beforeRender

 function beforeRender()
 {
     if (!isset($this->viewVars['data'])) {
         $this->set('data', $this->data);
     }
     if (!$this->_isRequestAction()) {
         if (!$this->menuItems) {
             $this->menuItems['Home'] = array('url' => '/');
             if ($this->plugin) {
                 $Human = Inflector::humanize($this->plugin);
                 $this->menuItems[$Human]['url'] = '/' . $this->PluginName;
                 $this->menuItems[$Human]['active'] = true;
                 $FileList = listClasses(APP . "plugins" . DS . $this->plugin . DS . "controllers");
                 foreach ($FileList as $file) {
                     $list = explode("_", $file);
                     unset($list[count($list) - 1]);
                     $controller = implode($list, "_");
                     if (up($controller) != up($this->plugin)) {
                         $array = array("url" => '/' . $this->PluginName . '/' . Inflector::camelize($controller));
                         if (Inflector::underscore($this->name) == $controller) {
                             $array['active'] = true;
                         }
                         $this->menuItems[Inflector::humanize($controller)] = $array;
                     }
                 }
             } else {
                 $this->menuItems['Home']['active'] = true;
                 uses('Folder');
                 $Folder = new Folder(APP . DS . "plugins");
                 list($Plugins) = $Folder->ls();
                 foreach ($Plugins as $Plugin) {
                     $Camel = Inflector::Camelize($Plugin);
                     $Human = Inflector::humanize($Plugin);
                     $this->menuItems[$Human] = array('url' => '/' . $Camel);
                 }
             }
         }
         $this->set('Menu', $this->menuItems);
         $this->set('javascripts', $this->javascripts);
     }
 }
开发者ID:javan-it-services,项目名称:internal,代码行数:41,代码来源:generic_controller.php

示例8: up

                $katimg = "";
            } else {
                $katimg = "`katimg` = '" . up($_POST['img']) . "',";
            }
            $tmpname = $_FILES['file']['tmp_name'];
            $name = $_FILES['file']['name'];
            $type = $_FILES['file']['type'];
            $size = $_FILES['file']['size'];
            $imageinfo = @getimagesize($tmpname);
            if (!$tmpname) {
                $qry = db("UPDATE " . $sql_prefix . "events_kat\n                     SET " . $katimg . "\n                         `name` = '" . up($_POST['kat']) . "'\n                     WHERE id = '" . intval($_GET['id']) . "'");
                //bild kopieren
                $getrennt = explode('.', $_POST['img']);
                $getrennt = array_reverse($getrennt);
                $neuername = $_GET['id'] . '.' . $getrennt[0];
                copy(basePath . "/inc/images/eventkat/" . $_POST['img'] . "", basePath . "/inc/images/eventkat/" . $neuername . "");
                $show = info(_config_newskats_edited, "?admin=ev_kat");
            } else {
                $katimg = "`katimg` = '" . $name . "',";
                $qry = db("UPDATE " . $sql_prefix . "events_kat\n                     SET " . $katimg . "\n                         `name` = '" . up($_POST['kat']) . "'\n                     WHERE id = '" . intval($_GET['id']) . "'");
                //bild hochladen und nach id bennen
                $getrennt = explode('.', $_FILES['file']['name']);
                $getrennt = array_reverse($getrennt);
                $neuername = $_GET['id'] . '.' . $getrennt[0];
                copy($tmpname, basePath . "/inc/images/eventkat/" . $neuername . "");
                @unlink($_FILES['file']['tmp_name']);
                $show = info(_config_newskats_edited, "?admin=ev_kat");
            }
        }
    }
}
开发者ID:BlueTeck,项目名称:dzcp-extended-calendar,代码行数:31,代码来源:ev_kat.php

示例9: conditionKeysToString

 /**
  * Creates a WHERE clause by parsing given conditions array.  Used by DboSource::conditions().
  *
  * @param array $conditions Array or string of conditions
  * @return string SQL fragment
  */
 function conditionKeysToString($conditions, $quoteValues = true)
 {
     $c = 0;
     $data = $not = null;
     $out = array();
     $bool = array('and', 'or', 'not', 'and not', 'or not', 'xor', '||', '&&');
     $join = ' AND ';
     foreach ($conditions as $key => $value) {
         if (is_numeric($key) && empty($value)) {
             continue;
         } elseif (is_numeric($key) && is_string($value)) {
             $out[] = $not . $this->__quoteFields($value);
         } elseif (in_array(strtolower(trim($key)), $bool)) {
             $join = ' ' . strtoupper($key) . ' ';
             $value = $this->conditionKeysToString($value, $quoteValues);
             if (strpos($join, 'NOT') !== false) {
                 if (up(trim($key)) == 'NOT') {
                     $key = 'AND ' . $key;
                 }
                 $not = 'NOT ';
             } else {
                 $not = null;
             }
             $out[] = $not . '((' . join(') ' . strtoupper($key) . ' (', $value) . '))';
         } else {
             if (is_string($value) && preg_match('/^\\{\\$__cakeIdentifier\\[(.*)\\]__\\$}$/', $value, $identifier) && isset($identifier[1])) {
                 $data .= $this->name($key) . ' = ' . $this->name($identifier[1]);
             } elseif (is_array($value) && !empty($value)) {
                 $keys = array_keys($value);
                 if ($keys[0] === 0) {
                     $data = $this->name($key) . ' IN (';
                     if (strpos($value[0], '-!') === 0) {
                         $value[0] = str_replace('-!', '', $value[0]);
                         $data .= $value[0];
                         $data .= ')';
                     } else {
                         if ($quoteValues) {
                             foreach ($value as $valElement) {
                                 $data .= $this->value($valElement) . ', ';
                             }
                         }
                         $data[strlen($data) - 2] = ')';
                     }
                 } else {
                     $ret = $this->conditionKeysToString($value, $quoteValues);
                     if (count($ret) > 1) {
                         $out[] = '(' . join(') AND (', $ret) . ')';
                     } elseif (isset($ret[0])) {
                         $out[] = $ret[0];
                     }
                 }
             } elseif (is_numeric($key) && !empty($value)) {
                 $data = $this->__quoteFields($value);
             } elseif ($value === null || is_array($value) && empty($value)) {
                 $data = $this->name($key) . ' IS NULL';
             } elseif ($value === false || $value === true) {
                 $data = $this->name($key) . " = " . $this->value($value, 'boolean');
             } elseif ($value === '') {
                 $data = $this->name($key) . " = ''";
             } elseif (preg_match('/^([a-z]+\\([a-z0-9]*\\)\\x20+|(?:' . join('\\x20)|(?:', $this->__sqlOps) . '\\x20)|<[>=]?(?![^>]+>)\\x20?|[>=!]{1,3}(?!<)\\x20?)?(.*)/i', $value, $match)) {
                 if (preg_match('/(\\x20[\\w]*\\x20)/', $key, $regs)) {
                     $clause = $regs['1'];
                     $key = preg_replace('/' . $regs['1'] . '/', '', $key);
                 }
                 $not = false;
                 $mValue = trim($match['1']);
                 if (empty($match['1'])) {
                     $match['1'] = ' = ';
                 } elseif (empty($mValue)) {
                     $match['1'] = ' = ';
                     $match['2'] = $match['0'];
                 } elseif (!isset($match['2'])) {
                     $match['1'] = ' = ';
                     $match['2'] = $match['0'];
                 } else {
                     if (low($mValue) == 'not') {
                         $not = $this->conditionKeysToString(array($mValue => array($key => $match[2])), $quoteValues);
                     }
                 }
                 if ($not) {
                     $data = $not[0];
                 } elseif (strpos($match['2'], '-!') === 0) {
                     $match['2'] = str_replace('-!', '', $match['2']);
                     $data = $this->name($key) . ' ' . $match['1'] . ' ' . $match['2'];
                 } else {
                     if (!empty($match['2']) && $quoteValues) {
                         if (!preg_match('/[A-Za-z]+\\([a-z0-9]*\\),?\\x20+/', $match['2'])) {
                             $match['2'] = $this->value($match['2']);
                         }
                         $match['2'] = str_replace(' AND ', "' AND '", $match['2']);
                     }
                     $data = $this->__quoteFields($key);
                     if ($data === $key) {
                         $data = $this->name($key) . ' ' . $match['1'] . ' ' . $match['2'];
//.........这里部分代码省略.........
开发者ID:uwitec,项目名称:eduoa,代码行数:101,代码来源:dbo_source.php

示例10: show

     }
     $show = show($dir . "/form_dl", array("admin_head" => _downloads_admin_head_edit, "ddownload" => re($get['download']), "durl" => re($get['url']), "file" => $dl, "lokal" => _downloads_lokal, "exist" => _downloads_exist, "nothing" => _nothing, "nofile" => _downloads_nofile, "oder" => _or, "dbeschreibung" => re_bbcode($get['beschreibung']), "kat" => _downloads_kat, "what" => _button_value_edit, "do" => "editdl&amp;id=" . $_GET['id'] . "", "kats" => $kats, "url" => _downloads_url, "beschreibung" => _beschreibung, "download" => _downloads_name));
 } elseif ($_GET['do'] == "editdl") {
     if (empty($_POST['download']) || empty($_POST['url'])) {
         if (empty($_POST['download'])) {
             $show = error(_downloads_empty_download, 1);
         } elseif (empty($_POST['url'])) {
             $show = error(_downloads_empty_url, 1);
         }
     } else {
         if (preg_match("#^www#i", $_POST['url'])) {
             $dl = links($_POST['url']);
         } else {
             $dl = up($_POST['url']);
         }
         $qry = db("UPDATE " . $db['downloads'] . "\n                     SET `download`     = '" . up($_POST['download']) . "',\n                         `url`          = '" . $dl . "',\n                         `beschreibung` = '" . up($_POST['beschreibung'], 1) . "',\n                         `date`         = '" . (int) time() . "',\n                         `kat`          = '" . (int) $_POST['kat'] . "'\n                     WHERE id = '" . intval($_GET['id']) . "'");
         $show = info(_downloads_edited, "?admin=dladmin");
     }
 } elseif ($_GET['do'] == "delete") {
     $qry = db("DELETE FROM " . $db['downloads'] . "\n                   WHERE id = '" . intval($_GET['id']) . "'");
     $show = info(_downloads_deleted, "?admin=dladmin");
 } else {
     $qry = db("SELECT * FROM " . $db['downloads'] . "\n                   ORDER BY id");
     while ($get = _fetch($qry)) {
         $edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=dladmin&amp;do=edit", "title" => _button_title_edit));
         $delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=dladmin&amp;do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_dl)));
         $class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
         $color++;
         $show_ .= show($dir . "/downloads_show", array("id" => $get['id'], "dl" => re($get['download']), "class" => $class, "edit" => $edit, "delete" => $delete));
     }
     $show = show($dir . "/downloads", array("head" => _dl, "date" => _datum, "titel" => _dl_file, "add" => _downloads_admin_head, "show" => $show_));
开发者ID:nopuls,项目名称:dzcp,代码行数:31,代码来源:dladmin.php

示例11: db

         ////////////////////
         $del = db("DELETE FROM " . $db['squaduser'] . "\n                   WHERE user = '" . intval($_GET['user']) . "'");
         $del = db("DELETE FROM " . $db['userpos'] . "\n                   WHERE user = '" . intval($_GET['user']) . "'");
         $sq = db("SELECT * FROM " . $db['squads'] . "");
         while ($getsq = _fetch($sq)) {
             if (isset($_POST['squad' . $getsq['id']])) {
                 $qry = db("INSERT INTO " . $db['squaduser'] . "\n                       SET `user`   = '" . (int) $_GET['user'] . "',\n                           `squad`  = '" . (int) $_POST['squad' . $getsq['id']] . "'");
             }
             if (isset($_POST['squad' . $getsq['id']])) {
                 $qry = db("INSERT INTO " . $db['userpos'] . "\n                       SET `user`   = '" . (int) $_GET['user'] . "',\n                           `posi`   = '" . (int) $_POST['sqpos' . $getsq['id']] . "',\n                           `squad`  = '" . (int) $getsq['id'] . "'");
             }
         }
         if ($_POST['passwd']) {
             $newpwd = "`pwd` = '" . md5($_POST['passwd']) . "',";
         }
         $qry = db("UPDATE " . $db['users'] . "\n                   SET " . $newpwd . "\n                       `nick`   = '" . up($_POST['nick']) . "',\n                       `email`  = '" . $_POST['email'] . "',\n                       `user`   = '" . $_POST['loginname'] . "',\n                       `listck` = '" . (int) $_POST['listck'] . "',\n                       `level`  = '" . (int) $_POST['level'] . "'\n                   WHERE id = '" . intval($_GET['user']) . "'");
         $protocol = "upduser(" . $userid . "_" . intval($_GET['user']) . ")";
         $upd = db("INSERT INTO " . $db['ipcheck'] . "\n                   SET `ip`   = '" . $userip . "',\n                       `what` = '" . $protocol . "',\n                       `time` = '" . (int) time() . "'");
     }
     $index = info(_admin_user_edited, "?action=userlist");
 } elseif ($_GET['do'] == "updateme") {
     $del = db("DELETE FROM " . $db['squaduser'] . "\n                 WHERE user = '" . $userid . "'");
     $del = db("DELETE FROM " . $db['userpos'] . "\n                 WHERE user = '" . $userid . "'");
     $sq = db("SELECT * FROM " . $db['squads'] . "");
     while ($getsq = _fetch($sq)) {
         if (isset($_POST['squad' . $getsq['id']])) {
             $qry = db("INSERT INTO " . $db['squaduser'] . "\n                     SET `user`  = '" . (int) $userid . "',\n                         `squad` = '" . (int) $_POST['squad' . $getsq['id']] . "'");
         }
         if (isset($_POST['squad' . $getsq['id']])) {
             $qry = db("INSERT INTO " . $db['userpos'] . "\n                     SET `user`   = '" . (int) $userid . "',\n                         `posi`   = '" . (int) $_POST['sqpos' . $getsq['id']] . "',\n                         `squad`  = '" . (int) $getsq['id'] . "'");
         }
开发者ID:nopuls,项目名称:dzcp,代码行数:31,代码来源:index.php

示例12: max

    $pieces2[] = $pieces[1];
    //
}
//echo "\n";
$mx = max($f);
//
$ind = 0;
$i = 0;
//
foreach ($pieces2 as $value) {
    //echo $value."\n";
    if (strpos($value, $mx) !== false) {
        $ind = $i;
    }
    $i++;
}
$link = $r[$ind];
//
try {
    include_once $link;
    if (up()) {
        if (Schema::existe(Config::get('database.migration'))) {
            Database::exec("update " . Config::get('database.migration') . " set status_schema='executed' where name_schema='" . $name . "' and date_schema='" . $time . "'");
        }
        echo "Schéma executé";
    } else {
        echo "Schema n'est pas executé" . Database::execErr();
    }
} catch (Exception $e) {
    echo $e->getMessage();
}
开发者ID:amineabri,项目名称:Fiesta,代码行数:31,代码来源:exec_migration.php

示例13: check_get

// ziskanie hodnoty premennej vyber
$c = check_get($_GET[c]);
// ziskanie hodnoty premennej vyber
$id = check_get($_GET[id]);
// ziskanie hodnoty premennej vyber
$from = check_sql($from);
// ziskanie hodnoty premennej vyber
$c = check_sql($c);
// ziskanie hodnoty premennej vyber
$id = check_sql($id);
// ziskanie hodnoty premennej vyber
$actual_order = get_actual_order($from, $c, $id);
$max_order = get_max_order($from, $c, $id);
if ($order == "up") {
    if ($actual_order != 0) {
        up($from, $c, $id);
    }
}
if ($order == "down") {
    if ($actual_order != $max_order) {
        down($from, $c, $id);
    }
}
function get_actual_order($from, $c, $id)
{
    $set = check_get($_GET[set]);
    $query = "SELECT {$c} FROM " . PREFIX . "{$from} WHERE id = '{$id}' LIMIT 1";
    if ($set == "vyrobky") {
        $query = "SELECT druh FROM " . PREFIX . "{$from} WHERE id = '{$id}' LIMIT 1";
        $lng_id_query = mysql_query($query, $GLOBALS["link"]) or die("" . $query . " <br> " . mysql_error($GLOBALS["link"]));
        $lng_id = mysql_fetch_assoc($lng_id_query);
开发者ID:jozefvasko,项目名称:benap-app,代码行数:31,代码来源:order.php

示例14: show

                $options = '<table width="200"><tr>
		<td><label><input type="radio" name="status" value="0" id="status_1" ' . $checked1 . '/>' . _jokes_inaktiv . '</label></td>
	</tr><tr>
		<td><label><input type="radio" name="status" value="1" id="status_2" ' . $checked2 . '/>' . _jokes_nextdate . '</label></td>
	</tr><tr>
		<td><label><input type="radio" name="status" value="2" id="status_3" checked="checked"/>' . _jokes_thisdate . '</label></td>
	</tr></table>';
                $error = show("errors/errortable", array("error" => _jokes_date_forgiven));
                $index = show($dir . "/form", array("head" => _joke_edit, "nautor" => _autor, "dropdown_date" => $dropdown_date, "autor" => autor($userid), "status" => _status, "options" => $options, "ntitel" => _titel, "titel" => re($_POST['titel']), "joketext" => re_bbcode($_POST['jokes']), "error" => $error, "lang" => $language, "button" => _button_value_add, "linkname" => _linkname));
                //konende
            } else {
                $qry = db("INSERT INTO " . $sql_prefix . "jokes \n                       SET `uid`  = '" . (int) $userid . "',\n                           `title`    = '" . up($_POST['titel']) . "',\n                           `content`  = '" . up($_POST['jokes'], 1) . "',\n\t\t\t\t\t\t   `date`  = '" . $date . "',\n                           `status`   = '0'");
                $text = show(_jokes_msg, array("title" => up($_POST['titel']), "id" => mysql_insert_id(), "content" => up($_POST['jokes'], 1), "nick" => autor($userid)));
                $qry = db("SELECT s1.id FROM " . $db['users'] . " AS s1\n                 LEFT JOIN " . $db['permissions'] . " AS s2\n                 ON s1.id = s2.user\n                 WHERE s2.jokes = '1' OR s1.`level` LIKE '4' GROUP BY s1.`id`");
                while ($get = _fetch($qry)) {
                    $qrys = db("INSERT INTO " . $db['msg'] . "\n                    SET `datum`     = '" . (int) time() . "',\n                        `von`       = '0',\n                        `an`        = '" . (int) $get['id'] . "',\n                        `titel`     = '" . _jokes_msg_title . "',\n                        `nachricht` = '" . up($text, 1) . "'");
                }
                $index = info(_joke_added, "?action=danke");
            }
        }
        break;
        //#####################################################################################################
    //#####################################################################################################
    case 'archiv':
        if (isset($_POST['monat'])) {
            $month = $_POST['monat'];
        } elseif (isset($_GET['m'])) {
            $month = $_GET['m'];
        } else {
            $month = date("m");
        }
开发者ID:BlueTeck,项目名称:dzcp-witze-addon,代码行数:31,代码来源:index.php

示例15: die

             **/
            # $uploader->login('your user', 'your pass');
            break;
        case 'Picasa':
            /**
             * Picasa bắt buộc phải đăng nhập 
             * AlbumID lấy ở link RSS trong album (ko biết thì tự tìm hiểu ở google)
             * Phần albumID có thể set 1 array('id1', 'id2'); Code sẽ tự động lấy ngẫu nhiên 1 album trong số đó để upload vào.
             * Nếu ko setAlbumID thì code sẽ up vào album default của picasa 
             * Giới hạn upload ca Picasa xem tại đây: https://support.google.com/picasa/answer/43879?hl=vi
             * Nếu ko dùng AlbumID thì thêm dấu # ở trước
             */
            $uploader->login('tjeubao01@gmail.com', 'anhyeuem)*)!!((5');
            #$uploader->setAlbumID('album id của bạn');
            break;
    }
    if (!$imagePath) {
        die('Mising an image');
    }
    $url = $uploader->upload($imagePath);
    if (file_exists($imagePath)) {
        unlink($imagePath);
    }
    if ($isUpload) {
        echo 'image=' . $url;
    } else {
        echo $url;
    }
}
up("http://phim-vn.com/upload/images/Ha-Noi-Em-Yeu-Anh.jpg", 800, 0);
开发者ID:jassonlazo,项目名称:GamersInvasion-Peliculas,代码行数:30,代码来源:upload.php


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