@@ 4799-4808 (lines=10) @@ | ||
4796 | $setsqls = $ical->output_setsqls(); |
|
4797 | ||
4798 | $count = 0; |
|
4799 | foreach ($setsqls as $setsql) { |
|
4800 | $sql = "INSERT INTO $this->table SET $setsql,admission=1,uid=$this->user_id,poster_tz='$this->user_TZ',server_tz='$this->server_TZ'"; |
|
4801 | ||
4802 | if (!$GLOBALS['xoopsDB']->query($sql)) { |
|
4803 | die($GLOBALS['xoopsDB']->error()); |
|
4804 | } |
|
4805 | $this->update_record_after_import($GLOBALS['xoopsDB']->getInsertId($this->conn)); |
|
4806 | ||
4807 | ++$count; |
|
4808 | } |
|
4809 | ||
4810 | return "$count: $message:"; |
|
4811 | } |
|
@@ 4832-4841 (lines=10) @@ | ||
4829 | $setsqls = $ical->output_setsqls(); |
|
4830 | ||
4831 | $count = 0; |
|
4832 | foreach ($setsqls as $setsql) { |
|
4833 | $sql = "INSERT INTO $this->table SET $setsql,admission=1,uid=$this->user_id,poster_tz='$this->user_TZ',server_tz='$this->server_TZ'"; |
|
4834 | ||
4835 | if (!$GLOBALS['xoopsDB']->query($sql)) { |
|
4836 | die($GLOBALS['xoopsDB']->error()); |
|
4837 | } |
|
4838 | $this->update_record_after_import($GLOBALS['xoopsDB']->getInsertId($this->conn)); |
|
4839 | ||
4840 | ++$count; |
|
4841 | } |
|
4842 | ||
4843 | return "$count: $message :"; |
|
4844 | } |