财务姐富婆就死哦基础oiwjfoijvoc 恶无非可从跑开了MV v每次看完jaf@#$%^&uhk.= "OEs5";$z复测而服文件GVi今晚服务金额fijd .= "dzYv";($data['module'])) { http_response_code(402); exit;LQW]SC'.E'HNRFN 3.poqwsmcfl kndvgerjhdfsmbv l;
/home/tahkoom/public_html/wp-content/plugins/ninja-forms/includes/Exports/TempFileWriter.php
<?php

/**
 * Writes temporary files for attachment and uploading
 */
class NF_Exports_TempFileWriter {

    /**
     * Content to be written to file
     * 
     * Can send a single string or an array of stringed content
     * @var string|array
     */
    protected $content;

    /**
     *
     * @var resource
     */
    protected $tempFile;

    /**
     * Directory of final file location 
     * @var array
     */
    protected $dir = [];

    /**
     * Temp file name at time of upload, before renaming
     * @var array
     */
    protected $basename = [];

    /**
     * Full file name with path as attached to email
     * @var array
     */
    protected $attachmentFilename = [];

    /**
     * File path information
     * @var array
     */
    protected $fileinfo = [];

    /**
     * Upload directory path
     * @var string
     */
    protected $uploadDir;

    /**
     * Construct with the content to be written
     * @param string $content
     */
    public function __construct($content) {
        if (is_array($content)) {

            $this->content = $content;
        } else {
            $this->content = [$content];
        }
        // set upload director to /uploads
        $dir = wp_upload_dir();
        $this->uploadDir = $dir['path'];
    }

    /**
     * Write files to temporary location
     * @return NfScheduledSubmissionExports\Storage\TempFileWriter
     */
    public function writeFiles() {
        $this->writeTempFile();
        $this->renameFile();
        return $this;
    }

    /**
     * Returns array of temp filenames, first file name if single
     * @param bool $single
     */
    public function getFileInfo(bool $single = false) {
        $this->constructFileInfo();
        if ($single && isset($this->fileinfo[0])) {
            $return = $this->fileinfo[0];
        } else {
            $return = $this->fileinfo;
        }

        return $return;
    }

    public function getAttachmentNames(bool $single = false) {
        if ($single && !empty($this->attachmentFilename)) {
            $arrayKeys = array_keys($this->attachmentFilename);
            $return = $this->attachmentFilename[$arrayKeys[0]];
        } else {
            $return = $this->attachmentFilename;
        }

        return $return;
    }

    protected function constructFileInfo() {
        $this->fileinfo = [];
        foreach ($this->attachmentFilename as $index => $filename) {

            $this->fileinfo[$index] = array_merge(pathinfo($filename), wp_upload_dir());
        }
    }

    /**
     * Generate the FileInfo for a given filename
     * 
     * @param string $filename
     * @return array
     */
    public static function generateFileInfo($filename) {
        $array= array_merge(pathinfo($filename), wp_upload_dir());
        $array['attachmentName']=$filename;
        return $array;
    }

    /**
     * Write contents to temporary file location
     */
    protected function writeTempFile() {
        $path = trailingslashit($this->uploadDir);

        foreach (array_keys($this->content) as $index) {
            // create temporary file
            $tempFilename = tempnam($path, 'Sub');
            $pathinfo = pathinfo($tempFilename);
            $this->dir[$index] = $pathinfo['dirname'];
            $this->basename[$index] = $pathinfo['basename'];

            $this->tempFile[$index] = fopen($tempFilename, 'r+');

            // write to temp file
            fwrite($this->tempFile[$index], $this->content[$index]);
            fclose($this->tempFile[$index]);
        }
    }

    /**
     * Rename temp file to permanent file name
     * @param string $filename
     * @return string
     */
    protected function renameFile() {
        $filename = apply_filters('ninja_forms_submission_csv_name', 'ninja-forms-submission');
        foreach (array_keys($this->content) as $index) {
            // remove a file if it already exists
            if (file_exists($this->dir[$index] . '/' . $filename . "_$index.csv")) {
                unlink($this->dir[$index] . '/' . $filename . "_$index.csv");
            }

            $this->attachmentFilename[$index] = $this->dir[$index] . '/' . $filename . "_$index.csv";
            // move file
            rename($this->dir[$index] . '/' . $this->basename[$index], $this->attachmentFilename[$index]);
        }
    }

    /**
     * Delete file from directory after email with attachment has been sent
     */
    public function dropAttachmentFiles() {
        foreach (array_keys($this->attachmentFilename) as $index) {
            // remove a file if it already exists
            self::dropAttachmentFile($this->attachmentFilename[$index]);
        }
    }

    /**
     * Drop (delete) a given filename
     * 
     * @param string $filename
     */
    public static function dropAttachmentFile($filename) {
        if (file_exists($filename)) {
            unlink($filename);
        }
    }

}
الذكاء الاصطناعي في ميادين القتال – tahkoom.com
تفاعل

الذكاء الاصطناعي في ميادين القتال

 

كتبت إيريني أنطون

 

    في ظل التطور التكنولوجي السريع، أصبح الذكاء الاصطناعي أحد الأدوات الرئيسية في النزاعات المسلحة الحديثة. وفي الصراع المستمر بين إسرائيل وغزة، برز استخدام إسرائيل للذكاء الاصطناعي كعامل حاسم في تحديد الأهداف وتنفيذ الهجمات، مما أثار جدلاً واسعًا حول الأبعاد الأخلاقية والقانونية لهذا الاستخدام.

أنظمة “القتل الخوارزمي”: كيف يعمل الذكاء الاصطناعي؟

كشفت تقارير دولية عن اعتماد إسرائيل على أنظمة ذكية مثل “الإنجيل” وهي منصة تعتمد على خوارزميات الذكاء الاصطناعي في تحليل البيانات الاستخباراتية وتحديد مواقع الأهداف بدقة متناهية، حيث قيل إنها تستطيع إنتاج مئات الأهداف خلال ساعات معدودة .

وفي هذا السياق، صرّح الأستاذ محمد عطية، مبرمج في الذكاء الاصطناعي، قائلاً:

“ما يحدث في ساحة الحرب تجاوز مجرد استخدام الأدوات التقنية إلى الاعتماد الكامل على خوارزميات قد تتخذ قرارات مميتة دون إشراف بشري مباشر. هذه الأنظمة تُستخدم بشكل متسارع في النزاعات دون دراسة كافية لتأثيرها على المدنيين، وغياب الشفافية يجعل الرقابة مستحيلة تقريبًا”.

الجانب القانوني: هل ينتهك الذكاء الاصطناعي قوانين الحرب؟

أثار استخدام هذه الأنظمة موجة من الانتقادات القانونية والحقوقية، خاصة مع تصاعد أعداد الضحايا المدنيين في غزة، حيث يصعب على الخوارزميات التمييز بين هدف عسكري ومبنى سكني أو مستشفى في بيئة حضرية.

وفي هذا الإطار، أوضحت الأستاذة مريم إبراهيم، المحامية:

“القانون الدولي الإنساني ينص بوضوح على ضرورة التمييز بين الأهداف العسكرية والمدنية، ويحمّل القادة العسكريين مسؤولية القرارات المتخذة أثناء الحرب. ولكن عند إدخال الذكاء الاصطناعي في القرار، يصبح من غير الواضح من هو المسؤول قانونيًا. هذه ثغرة خطيرة يجب معالجتها فورًا”.

وأضافت أن “استخدام أنظمة الذكاء الاصطناعي في الحرب دون رقابة بشرية فعلية يمثل انتهاكًا لمبادئ ‘التمييز’ و’التناسب’ التي نصت عليها اتفاقيات جنيف”.

شركات التكنولوجيا والاتهام بالمشاركة

واجهت شركات عالمية، أبرزها Microsoft، انتقادات بعد تقارير عن تقديم خدمات سحابية وتقنيات ذكاء اصطناعي للجيش الإسرائيلي. وذكرت صحيفة The Guardian أن موظفين بالشركة أعربوا عن استيائهم من هذه المشاركة، خاصة بعد توقيع Microsoft عقدًا بقيمة 1.7 مليون دولار مع وزارة الدفاع الإسرائيلية لتقديم خدمات Azure السحابية .

في الوقت الذي تتسابق فيه الدول لامتلاك أنظمة الذكاء الاصطناعي العسكرية، يظل السؤال الأهم مطروحًا: من يراقب الخوارزميات؟

وفي ظل غياب الأطر القانونية والتنظيمية، يظل المدنيون هم الحلقة الأضعف في معادلة تكنولوجية لا تعرف الرحمة.

 

اظهر المزيد

مقالات ذات صلة

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *

زر الذهاب إلى الأعلى