JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-} .
LIBYA CYBER ARMY
Logo of a company Instagram@3g86    Server : Apache
System : Linux uta-edu.server.ly 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : utripoli ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/utripoli/www/cp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/utripoli/www/cp/add-program.php
<?php 
// اتصال بقاعدة بيانات 
require_once("../connection/connect.php");
 $page_title = "إضافة برنامج"; 
 $page_select = "19"; 
require_once("include/header.php"); 
require_once("include/check.php");
require_once("include/locked.php");

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if($row_users22['usr_section'] == '0') {
// استجلاب بيانات التخصصات
$dirsa->select_db($database_dirsa);
$query_section = sprintf("SELECT * FROM section where section_start_or_stop=%s",
                   GetSQLValueString(1, "int"));
$section = $dirsa->query($query_section) or die($dirsa->error);
$row_section = $section->fetch_assoc();
$totalRows_section = $section->num_rows;
} else {
    // استجلاب بيانات التخصصات
$dirsa->select_db($database_dirsa);
$query_section = sprintf("SELECT * FROM section where section_id=%s and section_start_or_stop=%s",
                   GetSQLValueString($row_users22['usr_section'], "int"),
                   GetSQLValueString(1, "int"));
$section = $dirsa->query($query_section) or die($dirsa->error);
$row_section = $section->fetch_assoc();
$totalRows_section = $section->num_rows;
}

// استجلاب بيانات المكاتب المتخصصة
$dirsa->select_db($database_dirsa);
$query_office = sprintf("SELECT * FROM offices where office_state=%s",
                    GetSQLValueString(1, "int"));
$office = $dirsa->query($query_office) or die($dirsa->error);
$row_office = $office->fetch_assoc();
$totalRows_office = $office->num_rows;



//امر اضافة بيانات 
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "add_news")) {
// رفع صورة الخبر 
if(isset($_FILES['image_head'])){
    $errors= array();
    $file_name = $_FILES['image_head']['name'];
    $file_size =$_FILES['image_head']['size'];
    $file_tmp =$_FILES['image_head']['tmp_name'];
    $file_type=$_FILES['image_head']['type'];   
    $file_ext=strtolower(end(explode('.',$_FILES['image_head']['name'])));
    
    $expensions= array("jpeg","jpg","png"); 		
    if(in_array($file_ext,$expensions)=== false){
        $errors[]="extension not allowed, please choose a JPEG or PNG file.";
    }
    if($file_size > 2097152){
    $errors[]='File size must be excately 2 MB';
    }				
    if(empty($errors)==true){
        
            $name = pathinfo($_FILES['image_head']['name'], PATHINFO_FILENAME);
$extension = pathinfo($_FILES['image_head']['name'], PATHINFO_EXTENSION);

$increment = 0; 
$pname = $name . '.' . $extension;
while(is_file("uploads/news/".'/'.$pname)) {
 $increment++;
 $pname = $name . $increment . '.' . $extension;
}
        move_uploaded_file($file_tmp,"uploads/news/".$pname);
        
    } else {
    // الصورة الإفتراضية للخبر
    $pname = "default.jpg";	
        
    }
}

if(isset($_FILES['image_another'])){
    $errors2= array();
    $file_name2 = $_FILES['image_another']['name'];
    $file_size2 =$_FILES['image_another']['size'];
    $file_tmp2 =$_FILES['image_another']['tmp_name'];
    $file_type2=$_FILES['image_another']['type'];   
    $file_ext2=strtolower(end(explode('.',$_FILES['image_another']['name'])));
    
    $expensions2= array("jpeg","jpg","png"); 		
    if(in_array($file_ext2,$expensions2)=== false){
        $errors2[]="extension not allowed, please choose a JPEG or PNG file.";
    }
    if($file_size2 > 2097152){
    $errors2[]='File size must be excately 2 MB';
    }				
    if(empty($errors2)==true){
        
            $name2 = pathinfo($_FILES['image_another']['name'], PATHINFO_FILENAME);
$extension2 = pathinfo($_FILES['image_another']['name'], PATHINFO_EXTENSION);

$increment2 = 0; 
$pname2 = $name2 . '.' . $extension2;
while(is_file("uploads/news/".'/'.$pname2)) {
 $increment2++;
 $pname2 = $name2 . $increment2 . '.' . $extension2;
}
        move_uploaded_file($file_tmp2,"uploads/news/".$pname2);
        
    } else {
    // الصورة الإفتراضية للخبر
    $pname2 = "default.jpg";	
        
    }
}

if(isset($_FILES['image_another1'])){
    $errors3= array();
    $file_name3 = $_FILES['image_another1']['name'];
    $file_size3 =$_FILES['image_another1']['size'];
    $file_tmp3 =$_FILES['image_another1']['tmp_name'];
    $file_type3=$_FILES['image_another1']['type'];   
    $file_ext3=strtolower(end(explode('.',$_FILES['image_another1']['name'])));
    
    $expensions3= array("jpeg","jpg","png"); 		
    if(in_array($file_ext3,$expensions3)=== false){
        $errors3[]="extension not allowed, please choose a JPEG or PNG file.";
    }
    if($file_size3 > 2097152){
    $errors3[]='File size must be excately 2 MB';
    }				
    if(empty($errors3)==true){
        
            $name3 = pathinfo($_FILES['image_another1']['name'], PATHINFO_FILENAME);
$extension3 = pathinfo($_FILES['image_another1']['name'], PATHINFO_EXTENSION);

$increment3 = 0; 
$pname3 = $name3 . '.' . $extension3;
while(is_file("uploads/news/".'/'.$pname3)) {
 $increment3++;
 $pname3 = $name3 . $increment3 . '.' . $extension3;
}
        move_uploaded_file($file_tmp3,"uploads/news/".$pname3);
        
    } else {
    // الصورة الإفتراضية للخبر
    $pname3 = "default.jpg";	
        
    }
}

if(isset($_FILES['image_another2'])){
    $errors4= array();
    $file_name4 = $_FILES['image_another2']['name'];
    $file_size4 =$_FILES['image_another2']['size'];
    $file_tmp4 =$_FILES['image_another2image_head']['tmp_name'];
    $file_type4=$_FILES['image_another2']['type'];   
    $file_ext4=strtolower(end(explode('.',$_FILES['image_another2']['name'])));
    
    $expensions4= array("jpeg","jpg","png"); 		
    if(in_array($file_ext4,$expensions4)=== false){
        $errors4[]="extension not allowed, please choose a JPEG or PNG file.";
    }
    if($file_size4 > 2097152){
    $errors4[]='File size must be excately 2 MB';
    }				
    if(empty($errors4)==true){
        
            $name4 = pathinfo($_FILES['image_another2']['name'], PATHINFO_FILENAME);
$extension4 = pathinfo($_FILES['image_another2']['name'], PATHINFO_EXTENSION);

$increment4 = 0; 
$pname4 = $name4 . '.' . $extension4;
while(is_file("uploads/news/".'/'.$pname4)) {
 $increment4++;
 $pname4 = $name4 . $increment4 . '.' . $extension4;
}
        move_uploaded_file($file_tmp4,"uploads/news/".$pname4);
        
    } else {
    // الصورة الإفتراضية للخبر
    $pname4 = "default.jpg";	
        
    }
}

if(isset($_FILES['image_another3'])){
    $errors5= array();
    $file_name5 = $_FILES['image_another3']['name'];
    $file_size5 =$_FILES['image_another3']['size'];
    $file_tmp5 =$_FILES['image_another3']['tmp_name'];
    $file_type5=$_FILES['image_another3']['type'];   
    $file_ext5=strtolower(end(explode('.',$_FILES['image_another3']['name'])));
    
    $expensions5= array("jpeg","jpg","png"); 		
    if(in_array($file_ext5,$expensions5)=== false){
        $errors5[]="extension not allowed, please choose a JPEG or PNG file.";
    }
    if($file_size5 > 2097152){
    $errors5[]='File size must be excately 2 MB';
    }				
    if(empty($errors5)==true){
        
            $name5 = pathinfo($_FILES['image_another3']['name'], PATHINFO_FILENAME);
$extension5 = pathinfo($_FILES['image_another3']['name'], PATHINFO_EXTENSION);

$increment5 = 0; 
$pname5 = $name5 . '.' . $extension5;
while(is_file("uploads/news/".'/'.$pname5)) {
 $increment5++;
 $pname5 = $name5 . $increment5 . '.' . $extension5;
}
        move_uploaded_file($file_tmp5,"uploads/news/".$pname5);
        
    } else {
    // الصورة الإفتراضية للخبر
    $pname5 = "default.jpg";	
        
    }
}

if(isset($_POST['news_start_or_stop'])) {
    $news_start_or_stop = $_POST['news_start_or_stop'];
} else {
    $news_start_or_stop = "0";
}

if(isset($_POST['site_view'])) {
    $site_view = $_POST['site_view'];
} else {
    $site_view = "0";
}


if(isset($_POST['all_manasht'])) {
    $all_manasht = $_POST['all_manasht'];
} else {
    $all_manasht = "0";
}

if(isset($_POST['all_kedma'])) {
    $all_kedma = $_POST['all_kedma'];
} else {
    $all_kedma = "0";
}


    $insertSQL = sprintf("INSERT INTO programes (pro_title, pro_des, pro_active, pro_conf) VALUES (%s,%s,%s,%s)",
                         GetSQLValueString($_POST['pro_title'], "text"),
                         GetSQLValueString($_POST['pro_des'], "text"),
                         GetSQLValueString($_POST['pro_active'], "text"),
                         GetSQLValueString($_GET['id'], "text"));
  
    $dirsa->select_db($database_dirsa);
    $Result1 = $dirsa->query($insertSQL) or die($dirsa->error);
  
    $insertGoTo = "conferences.php";
    header(sprintf("Location: %s", $insertGoTo));
  }

?>

   <script language="JavaScript">
function toggle(source) {
    var checkboxes = document.querySelectorAll('input[type="checkbox"]');
    for (var i = 0; i < checkboxes.length; i++) {
        if (checkboxes[i] != source)
            checkboxes[i].checked = source.checked;
    }
}
</script>
          <!-- / Navbar -->

          <!-- Content wrapper -->
          <div class="content-wrapper">
            <!-- Content -->
            <div class="container-xxl flex-grow-1 container-p-y">
                <?php if($row_users22['usr_add'] == 1){ ?>
              <div class="card">
                <div class="card-body">
                       <form action="<?php echo $editFormAction; ?>" role="form" method="POST"
                                    name="add_news" enctype="multipart/form-data">
                    <div class="row">
                      <div class="col-md-5 mb-4">
                        <label for="news-title" class="form-label"
                          >العنوان</label
                        >
                        <input
                          name="pro_title"
                          type="text"
                          class="form-control"
                          id="news-title"
                          placeholder="ادخل عنوان البرنامج"
                          aria-describedby="defaultFormControlHelp"
                        />
                      </div>

                      <div class="col mb-4">
                        <label for="news-state" class="form-label"
                          >الحالة</label
                        >
                        <select
                          name="pro_active"
                          class="form-select"
                          id="news-state"
                          aria-label="Default select example"
                        >
                          <option selected value="1">مفعل</option>
                          <option value="2">متوقف</option>
                        </select>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col mb-4">
                      <label for="news-title" class="form-label"
                          >المحتوي</label
                        >
                        <textarea name="pro_des" class="w-100" id="mytextarea"></textarea>
                      </div>
                    </div>

                   
                    </div>
                    <input type="hidden" name="MM_insert" value="add_news">
                    <div class="card-footer text-center text-sm-end">
                      <button type="submit" name="submit" class="btn btn-primary">حفظ</button>
                      <button class="btn btn-secondary">إلغاء</button>
                    </div>
                  </form>
                </div>
                                            <?php } else { ?>
               <center><h3>لا تملك تصريح للوصول للصفحة</h3></center>
              <?php } ?>
              </div>
            </div>
            <!-- / Content -->

            <!-- Footer -->
 <?php require_once("include/footer.php"); ?>

3g86 2022