Files
Testing/include/analytics/ctp_ins_blog.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

109 lines
1.7 KiB
PHP

<?php // header('Content-type: application/json');
@mb_internal_encoding("UTF-8");
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/include/analytics/');
include(PATHTOINCLUDES."base.php");
$em="";
$unixtime=time();
$blogdate=gmdate("F d, Y");
$thetitle="Caption This Pic ".$blogdate;
$thebody='<div style="clear:both;display:block;margin-top:38px"><div><h5 style="position: relative;text-align: center;top: -38px;letter-spacing: 0.4em;text-transform: none;font-variant: small-caps;font-weight: bold;font-size: 1em;border-bottom: 1px solid #BBB9B9;margin-bottom: -20px"><span style="color: #FDF8F8;text-decoration: none;font-style: normal;font-size: 0.8em">'.$blogdate.'</span></h5></div><div style="margin-bottom:20px"><img src="/include/analytics/images/namethatpic/caption_this_12.jpg" alt="Pic 12" style="height: auto;width:100%;max-width:100% !important;border:none" border="0" /></div></div>';
$thebody=htmlspecialchars($thebody, ENT_QUOTES, 'UTF-8');
echo $thebody;
?>
<?php
$sqlins="INSERT INTO `se_blogentries` (
`se_blogentries`.`blogentry_user_id`,
`se_blogentries`.`blogentry_blogentrycat_id`,
`se_blogentries`.`blogentry_date`,
`se_blogentries`.`blogentry_views`,
`se_blogentries`.`blogentry_title`,
`se_blogentries`.`blogentry_body`,
`se_blogentries`.`blogentry_search`,
`se_blogentries`.`blogentry_privacy`,
`se_blogentries`.`blogentry_comments`,
`se_blogentries`.`blogentry_trackbacks`,
`se_blogentries`.`blogentry_totalcomments`,
`se_blogentries`.`blogentry_totaltrackbacks`
)
VALUES
(
70695,
3,
$unixtime,
0,
'".$thetitle."',
'".$thebody."',
0,
31,
31,
'',
0,
0
)";
$queryins=$database->database_query($sqlins) or $em=$em.$database->database_error();
?>