/web-master/manage/ |
H A D | users.php | 64 $query = "SELECT userid FROM users" variable 74 $res = db_query_safe($query, [$id]); 140 $query->add( 144 $query->add(',pchanged=?', [$ts]); 146 $query->add(' WHERE userid=?', [$id]); 151 db_query($query); 336 $query->add(' WHERE 1=1 '); 340 $query->add(' AND NOT cvsaccess '); 343 $query->add(" GROUP BY users.userid "); 355 $query->add(" ORDER BY $order $ext"); [all …]
|
H A D | event.php | 85 $query = new Query('UPDATE phpcal SET '); variable 87 $query->add('sdato=?, ', [$sdato]); 90 $query->add('edato=?, ', [$edato]); 93 $query->add('recur=?, ', [$recur]); 95 $query->add( 99 db_query($query); 251 $query->addQuery($searchby); 252 $res = db_query($query); 256 $query->addQuery($searchby); 267 $query->add(" ORDER BY $order $ext"); [all …]
|
H A D | user-notes.php | 93 $query->add('note.id = ?', [$_REQUEST['keyword']]); 100 $query->add( 104 $result = db_query_safe($query->get()); 456 $query = new Query('UPDATE note SET sect = ? WHERE ', [$_REQUEST["new_sect"]]); variable 457 $query->addQuery($where); 458 db_query($query); 462 $query = new Query('SELECT COUNT(*) FROM note WHERE '); variable 463 $query->addQuery($where); 464 $result = db_query($query); 770 foreach ($stats_sql as $key => $query) { [all …]
|
/web-master/fetch/ |
H A D | user-notes.php | 18 … $query = "SELECT DISTINCT note.id,note.sect,note.user,note.note,UNIX_TIMESTAMP(note.ts) AS ts,"; variable 19 $query .= "SUM(votes.vote) AS up, (COUNT(votes.vote) - SUM(votes.vote)) AS down,"; 20 $query .= "ROUND((SUM(votes.vote) / COUNT(votes.vote)) * 100) AS rate"; 21 $query .= " FROM note"; 22 $query .= " LEFT JOIN (votes) ON (note.id = votes.note_id)"; 24 $query .= " WHERE note.status is NULL"; 25 $query .= " GROUP BY note.id"; 26 $query .= " ORDER BY note.sect,ts DESC"; 28 $stmt = $dbh->prepare($query);
|
H A D | user-notes-rss.php | 13 $query = new Query('SELECT DISTINCT id,sect,user,note,UNIX_TIMESTAMP(ts) AS ts FROM note'); variable 15 $query->add(" WHERE id = ?", [$_GET['id']]); 17 $query->add(" WHERE sect LIKE "); 20 $query->add('? OR sect LIKE ', [strtr($sect[$i],'*','%')]); 22 $query->add('?', [strtr($sect[count($sect) - 1],'*','%')]); 24 $query->add(" ORDER BY sect,ts DESC"); 25 $query->add(" LIMIT ?", [$limit]); 27 $res = db_query($query);
|
/web-master/entry/ |
H A D | event.php | 46 …$query = "INSERT INTO phpcal SET tipo=1, sdato=?, sdesc=?, url=?, email=?, ldesc=?, country=?, cat… variable 47 …db_query_safe($query, ["$syear-$smonth-$sday", $sdesc, $url, $email, $ldesc, $country, $category]); 64 $query = "INSERT INTO phpcal SET tipo=2," variable 66 db_query_safe($query, [ 77 $query = "INSERT INTO phpcal SET tipo=3," variable 79 db_query_safe($query, ["$recur:$recur_day", $sdesc, $url, $email, $ldesc, $country, $category]);
|
H A D | user-note.php | 68 $query = 'SELECT COUNT(*) FROM note WHERE ts >= (NOW() - INTERVAL 1 MINUTE)'; variable 69 $result = db_query_safe($query); 74 "Query Failed: $query\nError: ".mysql_error(), 104 $query = "INSERT INTO note (user, note, sect, ts, status) VALUES (?, ?, ?,NOW(), NULL)"; variable 105 if (db_query_safe($query, [$user, $note, $sect])) { 149 "Query Failed: $query\nError: ".mysql_error(),
|
H A D | svn-account.php | 76 $query = "INSERT INTO users (name,email,svnpasswd,username) VALUES (?, ?, ?, ?)"; variable 77 if (db_query_safe($query, [$name, $email, $svnpasswd, $username])) {
|
/web-master/scripts/ |
H A D | email-note-summaries | 9 $query = "SELECT COUNT(*) AS count,sect FROM note" variable 12 $res = mysql_query($query) 24 $query = "SELECT COUNT(*) FROM note"; variable 26 $res = mysql_query($query)
|
H A D | event-weekly-email | 10 $query = 'SELECT COUNT(*) FROM phpcal WHERE NOT approved'; 11 $count = db_get_one($query);
|
H A D | pregen_news | 113 $nodes = $xpath->query('//body/div/*');
|
/web-master/include/ |
H A D | functions.inc | 110 private $query = ''; 132 $this->query .= $q->get(); 136 return $this->query; 140 function db_query(Query $query) 142 $query = $query->get(); 143 //var_dump($query); 144 $res = mysql_query($query); 152 function db_query_safe($query, array $params = []) 154 return db_query(new Query($query, $params)); 157 function db_get_one($query) [all …]
|
/web-master/ |
H A D | forgot.php | 71 $query = "UPDATE users SET forgot=? WHERE userid=?"; variable 72 $res = db_query_safe($query, [$newpass, $row['userid']]);
|
/web-master/.phan/internal_stubs/ |
H A D | mysql.phan_php | 117 * Send a MySQL query 119 * @param string $query <p> 120 * An SQL query 152 * the query. 162 * @param string $query <p> 163 * The SQL query to execute. 189 * @param string $query <p> 190 * The MySQL query. 301 * If the last query was a DELETE query with no WHERE clause, all 310 * the query. [all …]
|