drupal

Drupal sql 注入研究


  function debug_sql(string $type) {
    $list = [];
    $sql = <<<sql
SELECT node.nid AS nid, node.title AS title, node.created AS node_created
FROM 
{node} node
WHERE (( (node.status = '1') AND (node.type IN  ('$type')) ))
ORDER BY node_created DESC
sql;
    $result = db_query($sql);

使用 hook_update_N 更新时 批处理数据


Drupal 7 使用 image 工具


/**
 * @param int $poster_id
 * @param int $template_id
 * @param string $username
 * @param string $phone
 * @param string $text
 *
 * @return array
 * 提交海报生成
 */
Tags: