Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
|
v7 Problma su Video galerijos index.php
|
|
| Laimmx |
parašyta 2011-09-13 22:18
|
Naujokas![]() Reputacija: 0 Pranešimai: 7 Įstojo: 2011-08-25 |
Ar galima kaip nors padariti kad kai ikeliu video nukreiptu mane i pagrindini psl ar bent jau atsirastu Koks paspaudimo linkas kad nukeliauiau i pagrindini nes dabar ikeliu video ir tu?ia stai stai ikelimo index.php f /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright (C) 2002 - 2010 Nick Jones | http://www.php-fusion.co.uk/ +--------------------------------------------------------+ | Filename: index.php | Author: Andrej (rusbody) +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ require_once "../../maincore.php"; require_once THEMES."templates/header.php"; if (file_exists(INFUSIONS."video_infusions/locale/".$settings['locale'].".php")) { include INFUSIONS."video_infusions/locale/".$settings['locale'].".php"; } else { include INFUSIONS."video_infusions/locale/English.php"; } add_to_title(" - ".$locale['300a']); global $userdata; echo " "; function youtube($y) { if (strpos($y, "user") != 0) { $y1 = substr($y, -11); return $y1;} else { $y2 = strpos($y, "v="); $y2 = substr($y, $y2+2, 11); return $y2; } } $result = dbquery("SELECT * FROM ".$db_prefix."video_cats"); if (dbrows($result) != 0) { if (isset($_POST['save_video'])) { $video_title = stripinput($_POST['video_title']); $video_cat = stripinput($_POST['video_cat']); $video_description = addslash($_POST['video_description']); $video_url = youtube(stripinput($_POST['video_url'])); $video_type = "1"; $vk_img = ""; $user_id = $userdata['user_id']; $result = dbquery("INSERT INTO ".$db_prefix."videos (video_user, video_title, video_description, video_url, video_cat, video_type, video_datestamp, video_count, video_image) VALUES ('".$user_id."', '".$video_title."', '".$video_description."', '".$video_url."', '".$video_cat."', '".$video_type."', '".time()."', '0', '".$vk_img."' )"); redirect("../?c=$video_cat"); } $video_title = ""; $video_description = ""; $video_url = ""; $video_type = ""; $formaction = FUSION_SELF; ; $editlist = ""; $sel = ""; $result2 = dbquery("SELECT * FROM ".$db_prefix."video_cats ORDER BY video_cat_name"); if (dbrows($result2) != 0) { while ($data2 = dbarray($result2)) { $editlist .= "\n"; } } opentable(""); echo " "; closetable(); } require_once THEMES."templates/footer.php"; ?> |
| Peršokti į forumą: |



