112
$query1="insert into zav (`namezav`, desczav, priorzav, activzav, katzav,
filezav, iduzav, commzav)
values ('".$_POST['namezav']."','".$_POST['desczav']."',
'".$_POST['priorzav']."','".$_POST['activzav']."','".$_POST['katzav']."','$link','$user',
'".$_POST['commzav']."')";
$query2=mysql_query("select max(idzav) from zav");
$zav=mysql_num_rows($query2);
while ($zav=mysql_fetch_row($query2))
{
$numzav=$zav[0];
}
$query3="insert into status (`nomzav`, openz, flag, iduopen)
values ('$numzav'+1,'$today', '1','$user')";
if(mysql_query($query1) and mysql_query($query3))
{
Header ("Location: newzav.php");
}
else
{
echo "<p class='log'></p>Не получилось</p>";
}
}
Wor dPr ess 5. 0, t he new Gut enber g edi t or wi l l make i t s way ont o mi l l i ons of websi t es. I t ’ s a bi g change i n how cont ent i s cr eat ed, st or ed and managed. Not t o ment i on t he pot ent i al compat i bi l i t y i ssues t hat coul d cr op up wi t h some t hemes and pl ugi ns.
As t h e new edi t or pr epar es for f ul l r el ease, we shoul d not e t hat t he “Cl assi c” Edi t or wi l l r emai n avai l abl e as a pl ugi n. Act i vat i ng i t wi l l enabl e si t e owner s t o use i t i n conj unct i on wi t h Gut enber g or bypass i t compl et el y.
Cl assi c Edi t or af f or ds us a second pat h, i t ’ s wor t h consi der i ng whet her or not t o t ake i t . Gut enber g r epr esent s a bi g shi f t i n how WordPr ess oper at es. The quest i on becomes, i s i t r eal l y wor t h ut i l i zi ng t he new edi t or on an exi st i ng si t e, or i s i t bet t er to stick with the tried-and-t r ue Cl assi c ver si on?
To answer t hat quest i on, t her e ar e sever al f act or s t o consi der . So, bef or e you t ake t he pl unge and swi t ch t o Gut enber g, her e ar e a f ew i t ems you’l l want t o t hi nk about .
The Past and Fut ur e of Your Cont enThe cont ent on your exi st i ng websi t e, al ong wi t h t he way you manage i t , has al r eady been est abl i shed. Odds ar e t hat your pages and bl og post s f ol l ow a speci f i c f or mat t hat was cr eat ed l ong bef or e Gut enber g came ont o t he
Wi t h t hat i n mi nd, consi der whet her or not you want t o change t hi ngs t o r ef l ect t he new capabi l i t i es Gut enber g br i ngs. For i nst ance, you mi ght have i nt er est i n r ef act or i ng your exi st i ng cont ent t o ut i l i ze f eat ur es l i ke f ul l -wi dt h i mages or mul t i -col umn l ayout s.
However, si t es t hat are heavy i n cont ent may r equi r e a l ot of wor k t o br i ng up t o speed. I t mi ght consi st of goi ng t hr ough ever y pi ece of cont ent and l ayi ng i t out i n t he new bl ock-based f or mat . Gut enber g can aut omat i cal l y conver t l egacy post s t o bl ocks, t hough you’ r e ul t i mat el y t he one who wi l l need i nt egr at e any cust omizat n woul d be t o per haps r ef act or some exi st i ng cont ent , whi l e f ocusi ng mor e on usi ng Gut enber g f or new i t ems. I n t hi s case, maybe a f ew key pages coul d be f or mat t ed wi t h t he new edi t or . Then, al l f ut ur e bl og post s woul d al so be bl ock-based.
Gut enber g shoul dn’ t har m or br eak any exi st i ng cont ent , so you can use i t i n conj unct i on wi t h t he Cl assi c Edi t or t o f or mat j ust t he cont ent you choose.
Asci i Doc i s a great way t o writ e t echni cal document at i on. It i s t ext based, can be commi t t ed and ver si onned i n your VSC wi t h your pr oj ect , has a r i ch synt ax, has a huge ecosyst em, i nt egr at es wi t h sever al t ool s ( such as Pl ant UML t hat I l ove) and, i f t her e i s st i l l somet hi ng mi ssi ng, you can use ext ensi ons or cr eat e your own. And i f you use t he asci i doct or -maven-pl ugi n t o aut omat i cal l y gener at e al l your document at i on, you end up cust omi zi ng i t I n t hi s post I expl ai n a f ew conf i gur at i ons t hat I use i n t he asci i doct or -maven-pl uIncl udi ng r emot e code i n your document at i onI f l i ke me you code and wr i t e document at i on about your code wi t h Asci i Doct or , you mi ght use t he sour ce code bl ock wi t h synt ax hi ghl i ght i ng. So, you copy/ past e your code i nt o an Asci i doc [ source ] bl ock and you can even gi ve i t a code hi ghl i ght er ( her e, coder ay) , a l anguage ( Java), a t i t l e and so on. Then, you r eal i ze t hat you don’ t want t o copy/ past e code, you j ust want t o poi nt at t he code i t sel f . So, i f t he Java f i l e Book. j ava i s si t t i ng on your dr i ve, you use t he i ncl ude: : di r ect i ve and pass i t t he r el at i ve or absol ut e pat h. If you don’ t want t o i ncl ude al l t he f i l e, you can add j ust a por t i on of i t , by usi ng t ags ( eg. her e t he t ag i s cal l ed sni pped) .
== Using include with a local file