Files
Testing/js/act/xtube_form_act.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

46 lines
680 B
PHP

<?php header('Content-type: application/json');
$em="";
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/cmeter/');
include(PATHTOINCLUDES."base.php");
$vidimg=$_POST["vidimg"];
$vidid=$_POST["vidid"];
$vidsort=$_POST["vidsort"];
$vidactive=$_POST["vidactive"];
$num_rows=0;
if($num_rows==0){
$sqlins="INSERT INTO you_x_tube (vid_id,xtube,imgurl,thesort,vid_active) VALUES ('".$vidid."','Y','".$vidimg."',".$vidsort.",'".$vidactive."')";
$qin=$database->database_query($sqlins) or $em=$em.$database->database_error();
}
else
{
$em="Duplicate XTube Video";
}
$arr = array ('error'=>$em);
echo json_encode($arr);
?>