Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Goduser каза:Здравейте,наскоро си сложих php-fusion много съм доволен,но имам 1 въпрос как може да стане така,че да не се иска потвърждение от админ за качване на статия,снимка,новина,файл...ако е възможно или има такъв готов мод моля обеснете ми как да стане . ;] БЛАГОДАРЯ ПРЕДВАРИТЕЛНО
Goduser каза:Здравейте,наскоро си сложих php-fusion много съм доволен,но имам 1 въпрос как може да стане така,че да не се иска потвърждение от админ за качване на статия,снимка,новина,файл...ако е възможно или има такъв готов мод моля обеснете ми как да стане . ;] БЛАГОДАРЯ ПРЕДВАРИТЕЛНО
$submit_info['article_breaks'] = (isset($_POST['line_breaks']) ? "y" : "n");
$result = dbquery("INSERT INTO ".$db_prefix."submissions (submit_type, submit_user, submit_datestamp, submit_criteria) VALUES ('a', '".$userdata['user_id']."', '".time()."', '".addslashes(serialize($submit_info))."')");
$submit_info['article_breaks'] = (isset($_POST['line_breaks']) ? "y" : "n");
$result = dbquery("INSERT INTO ".$db_prefix."articles (article_cat, article_subject, article_snippet, article_article, article_breaks, article_name, article_datestamp, article_reads, article_allow_comments, article_allow_ratings) VALUES ('".$_POST['article_cat']."', '".addslashes(serialize($_POST['article_subject'])."', '".$_POST['article_snippet']."', '".addslashes(serialize($_POST['article_body'])."', 'y', '".$userdata['user_id']."', '".time()."', '0', '1', '1')");
iwanov каза:@admin напиши доло горе на кои редове се подменя кода щото във файла май има към 300 реда.![]()
Marik каза:А някой може ли да направи така че примерно да могат и тия дето добавят новините и статиите да ползват бутон кодовете дето ги има в админ панела там тия <b> </b> и така нататък :?
Също така ако някой каже за новините как също става без удобрение на админа ще съм му благодарен![]()
Goduser каза:: (
} else {
echo "<center><br>\n".$locale['600']."<br><br>\n";
if ($error == 1) { echo $locale['601']; }
elseif ($error == 2) { echo sprintf($locale['602'], $settings['photo_max_b']); }
elseif ($error == 3) { echo $locale['603']; }
elseif ($error == 4) { echo sprintf($locale['604'], $settings['photo_max_w'], $settings['photo_max_h']); }
echo "<br><br>\n<a href='submit.php?stype=p'>".$locale['411']."</a><br><br>\n</center>\n";
}
define("SAFEMODE", @ini_get("safe_mode") ? true : false);
$photo_file = ""; $photo_thumb1 = ""; $photo_thumb2 = "";
$data = dbarray(dbquery(
"SELECT ts.*, user_id,user_name FROM ".$db_prefix."submissions ts
LEFT JOIN ".$db_prefix."users tu ON ts.submit_user=tu.user_id
WHERE submit_id=LAST_INSERT_ID()"
));
$submit_criteria = unserialize($data['submit_criteria']);
$photo_title = $submit_info['photo_title'];
$photo_description = $submit_info['photo_description'];
$album_id = $submit_info['album_id'];
$photo_name = strtolower(substr($submit_criteria['photo_file'], 0, strrpos($submit_criteria['photo_file'], ".")));
$photo_ext = strtolower(strrchr($submit_criteria['photo_file'],"."));
$photo_dest = PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : "");
$photo_file = image_exists($photo_dest, $photo_name.$photo_ext);
copy(PHOTOS."submissions/".$submit_criteria['photo_file'], $photo_dest.$photo_file);
chmod($photo_dest.$photo_file, 0644);
unlink(PHOTOS."submissions/".$submit_criteria['photo_file']);
$imagefile = @getimagesize($photo_dest.$photo_file);
$photo_thumb1 = image_exists($photo_dest, $photo_name."_t1".$photo_ext);
createthumbnail($imagefile[2], $photo_dest.$photo_file, $photo_dest.$photo_thumb1, $settings['thumb_w'], $settings['thumb_h']);
if ($imagefile[0] > $settings['photo_w'] || $imagefile[1] > $settings['photo_h']) {
$photo_thumb2 = image_exists($photo_dest, $photo_name."_t2".$photo_ext);
createthumbnail($imagefile[2], $photo_dest.$photo_file, $photo_dest.$photo_thumb2, $settings['photo_w'], $settings['photo_h']);
}
$photo_order = dbresult(dbquery("SELECT MAX(photo_order) FROM ".$db_prefix."photos WHERE album_id='$album_id'"), 0) + 1;
$result = dbquery("INSERT INTO ".$db_prefix."photos (album_id, photo_title, photo_description, photo_filename, photo_thumb1, photo_thumb2, photo_datestamp, photo_user, photo_views, photo_order, photo_allow_comments, photo_allow_ratings) VALUES ('$album_id', '$photo_title', '$photo_description', '$photo_file', '$photo_thumb1', '$photo_thumb2', '".time()."', '".$data['submit_user']."', '0', '$photo_order', '1', '1')");
$result = dbquery("DELETE FROM ".$db_prefix."submissions WHERE submit_id='$submit_id'");
SandPrince каза:ами при мен не става за статиите![]()
Parse error: parse error, unexpected ';' in C:\AppServ\www\php-fusion\submit.php on line 152
$result = dbquery("INSERT INTO ".$db_prefix."articles (article_cat, article_subject, article_snippet, article_article, article_breaks, article_name, article_datestamp, article_reads, article_allow_comments, article_allow_ratings) VALUES ('".$_POST['article_cat']."', '".addslashes(serialize($_POST['article_subject'])."', '".$_POST['article_snippet']."', '".addslashes(serialize($_POST['article_body'])."', 'y', '".$userdata['user_id']."', '".time()."', '0', '1', '1')");