Cheetah
flash
modules
photo
inc
customFunctions.inc.php
Go to the documentation of this file.
1
<?
php
2
8
function
post
($sTable,
$sId
, $sAuthor, $sParent, $sMood, $sFileId)
9
{
10
global
$sIncPath
;
11
global
$sModule
;
12
global
$sHomeUrl
;
13
14
require(
$sIncPath
.
"content.inc.php"
);
15
$sText =
getEmbedCode
(
$sModule
,
"player"
, array(
'id'
=> $sFileId,
'file'
=> TRUE_VAL));
16
$sText = str_replace(
$sHomeUrl
,
"[ray_url]"
, $sText);
17
$sSql =
"INSERT INTO `"
. $sTable .
"`(`cmt_parent_id`, `cmt_object_id`, `cmt_author_id`, `cmt_text`, `cmt_mood`, `cmt_time`) VALUES('"
. $sParent .
"', '"
.
$sId
.
"', '"
. $sAuthor .
"', '"
. $sText .
"', '"
. $sMood .
"', NOW())"
;
18
getResult
($sSql);
19
return
getLastInsertId
();
20
}
getLastInsertId
getLastInsertId()
Definition:
db.inc.php:66
$sIncPath
$sIncPath
Definition:
header.inc.php:64
post
post($sTable, $sId, $sAuthor, $sParent, $sMood, $sFileId)
Definition:
customFunctions.inc.php:8
$sHomeUrl
$sHomeUrl
Definition:
header.inc.php:41
php
$sModule
if(!file_exists($sRayHeaderPath)) $sModule
Definition:
index.php:14
getEmbedCode
getEmbedCode($sModule, $sApp, $aParamValues)
Definition:
content.inc.php:131
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition:
header.inc.php:25
$sId
$sId
Definition:
actions.inc.php:8
getResult
getResult($sQuery)
Definition:
db.inc.php:45
Generated by
1.8.20