} } } sort($all_media); if ($clear == '1') { unset($id3_string, $element, $thisaudio, $title, $title_orig, $title_trans, $id3_string, $id3_rem, $name, $select); } // ********** find videos ********** mysqltest(); if ($index_video == '1') { $select = $videolist; // find only videos as defined in file 'video.txt' $element = 'video'; $title = ''; //get media placed in <video> elements $all_media = get_elements($element, $all_media, $raw_file, $regs, $trash1, $replace1, $handle, $store_file); if ($debug == '2') { // if debug mode, show details printStandardReport('newVideo', $command_line, $no_log); } foreach ($all_media as $thisvideo) { preg_match("/([\\/]?value|[\\/]?href|[\\/]?data|[\\/]?classid|[\\/]?src)\\s*=\\s*[\\'\"](.*?)[\\'\"]/si", $thisvideo[0], $this_video); if (($link = build_url($this_video[2], $url, $select, $thisvideo[0], $handle, $store_file)) != '') { // if valid URL was built $link = $db_con->real_escape_string($link); $handle = @fopen($link, "r"); if ($handle) { // really existing video, or dead link only @fclose($handle); $new_md5 = md5_file($link); // calculate checksum of new video
function cart_dop_info($prd, $prod_info, $id) { $txt = ''; if ($this->sets['ishop_palitra'] && $prd[$id]->paramNotEmpty('param_palitra') && !empty($prod_info[0]) && !empty($prod_info[1])) { $artics = get_elements($prd[$id]->get('param_palitra'), 'articul'); $params = get_elements($artics[$prod_info[1]], 'param'); $result = $params[0]; $txt .= '<br>Размер: ' . $result; } $j = 1; if ($this->sets['select_razmer']) { foreach (Cart::gI()->cart_params as $param_title => $param_tag) { if (isset($prod_info[$j])) { $colors = explode(',', $prd[$id]->get($param_tag)); $txt .= !empty($colors[$prod_info[$j]]) ? '<br>' . $param_title . ': ' . $colors[$prod_info[$j]] : ''; } $j++; } } $txt .= $prd[$id]->paramNotEmpty('artikul') ? '<br>Артикул: ' . $prd[$id]->get('artikul') : ''; return $txt; }
function getTestTeamPuzzles($tid) { $sql = sprintf("SELECT pstatus.id FROM pstatus WHERE pstatus.inTesting = '1'"); $testingstatusid = get_element($sql); $sql = sprintf('SELECT pid FROM testsolve_team_queue, puzzle_idea WHERE tid=%s AND puzzle_idea.id = testsolve_team_queue.pid AND puzzle_idea.pstatus = %s', mysql_real_escape_string($tid), mysql_real_escape_string($testingstatusid)); return get_elements($sql); }
$id_cloud = $_GET['id_cloud']; get_cloud_u($key, $id_cloud); } else { if ($action == "get_data_user") { $key = $_GET['key']; get_data_user($key); } else { if ($action == "get_cloud") { $key = $_GET['key']; get_cloud($key); } else { if ($action == "get_elements") { $key = $_GET['key']; $id_cloud = $_GET['id_cloud']; $id_folder = $_GET['id_folder']; get_elements($key, $id_cloud, $id_folder); } else { if ($action == "delete_folder") { $key = $_GET['key']; $id_cloud = $_GET['id_cloud']; $id_folder = $_GET['id_folder']; delete_folder($key, $id_cloud, $id_folder); } else { if ($action == "delete_file") { $key = $_GET['key']; $id_cloud = $_GET['id_cloud']; $id_file = $_GET['id_file']; delete_file($key, $id_cloud, $id_file); } else { if ($action == "create_folder") { $key = $_GET['key'];