jQuery(document).ready(notice); var state = { post_id: ajax_object.post_id, // post id sent from php backend first_modified: undefined, // when the post was first modified started: false, // post notification requests started interval: undefined, // global interval for reattempting requests interval_count: 0, // how many times has the request been attempted status: undefined // whether the post is scheduled or published } function notice() { if (!isWpCoreEditorDefined()) { return; } const editor = wp.data.select("core/editor"); /* * Subscribes function to WP's state-change listener * - checks change in post modified date * - triggers interval that checks if recipient meta data available in backend */ wp.data.subscribe(() => { // runs with each change in wp state const post = editor.getCurrentPost(); // runs until post data loads if (!post || post === {}) { return; } // post is defined now if (!state.first_modified) { // captures last modified date of loaded post state.first_modified = post.modified; } // latest modified date, status of the post const { modified, status } = post; state.status = status; // is checked let send_os_notif; const htmlElement = jQuery("#send_onesignal_notification")[0]; if (!!htmlElement) { send_os_notif = htmlElement.checked; } // if last modified differs from first modified times, post_modified = true const post_modified = modified !== state.first_modified; const is_published = status === "publish"; // if hasn't started, change detected, box checked, and the status is 'publish' if (!state.started && post_modified && send_os_notif && is_published) { state.interval = setInterval(get_metadata, 3000); // starts requests state.started = true; } }); /* * Checks if post has meta for "recipients" on server * - means request to OS has finished */ const get_metadata = () => { const data = { action: "has_metadata", post_id: state.post_id }; jQuery.get(ajax_object.ajax_url, data, function (response) { response = JSON.parse(response); let { status_code, response_body } = response; if (window.DEBUG_MODE) { console.log(response); } const is_status_empty = status_code.length == 0; if (!is_status_empty) { status_code = parseInt(status_code); // status 0: HTTP request failed if (status_code === 0) { error_notice("OneSignal Push: request failed with status code 0. " + response_body); reset_state(); return; } // 400 & 500 level errors if (status_code >= 400) { if (!response_body) { error_notice( "OneSignal Push: there was a " + status_code + " error sending your notification" ); } else { error_notice("OneSignal Push: there was a " + status_code + " error sending your notification: " + response_body); } reset_state(); return; } show_notice(); reset_state(); } }); // try for 1 minute (each interval = 3s) if (state.interval_count > 20) { error_notice( "OneSignal Push: Did not receive a response status from last notification sent" ); reset_state(); } state.interval_count += 1; }; /* * Gets recipient count and shows notice */ const show_notice = () => { var delivery_link_text = ""; if (state.status === "publish") { var notice_text = "OneSignal Push: Successfully sent a notification."; delivery_link_text = " Go to your app's Delivery tab to check sent messages: https://dashboard.onesignal.com/apps/"; } else if (state.status === "future") { var notice_text = "OneSignal Push: Successfully scheduled a notification."; } wp.data .dispatch("core/notices") .createNotice( "info", notice_text + delivery_link_text, { id: 'onesignal-notice', isDismissible: true } ); }; const error_notice = error => { wp.data.dispatch("core/notices").createNotice("error", error, { isDismissible: true, id: 'onesignal-error' }); }; const reset_state = () => { clearInterval(state.interval); state.interval = undefined; state.interval_count = 0; state.started = false; state.first_modified = undefined; } }; const isWpCoreEditorDefined = () => { var unloadable = ""; // variable name that couldn't be loaded if (!wp || !wp.data || !wp.data.select("core/editor")) { if (!wp) { unloadable = "wp"; } else if (!wp.data) { unloadable = "wp.data"; } else if (!wp.data.select("core/editor")) { unloadable = 'wp.data.select("core/editor")'; } console.warn( `OneSignal Push: could not load ${unloadable}. https:\/\/bit.ly/2F4G0bt` ); return false; } else { return true; } }; /** * - use the debug method in the console to show data about the request * - works in Gutenberg editor * * returns an object in the format * { status : "200", * recipients : "1374", * response_body : [] * } */ window.OneSignal = { debug: () => { window.DEBUG_MODE = window.DEBUG_MODE ? !window.DEBUG_MODE : true; notice(); } }; GDEFM 0OS/2 w<`cmap)Q cvt dDfpgmY pgasp\glyf?֡ Xrheadc06hhealqch$hmtxc0kern!Yh locaPDrmaxpl -ut nameVupostpE|}prep*6= *~2#pyrs!U & DEFGHIJKLMNOPQRSTUVWXYZ[\K]^_`ab*+,-./0123456 Defence – Neptune Prime

Tag: Defence

  • Things are getting better, CDS tells Nigerians

    Things are getting better, CDS tells Nigerians

    Things are getting better, CDS tells Nigerians

    The Chief of Defence Staff, General Christopher Musa, on Saturday said the security situation in the country is getting better, while calling on Nigerians to continue to give maximum support to the security forces

    The CDS spoke in Maiduguri, Borno State capital, at a conference organised by the Khalthum Foundation for Peace, Network of Civil Society Organisations, and the Borno State Youth Parliament to address violence extremism in the Northeast.

    He said, “I want to appeal that we should not get tired, things are getting better.

    “We must continue to cooperate with security forces, so that we can have total peace in Borno state and the Northeast in General.”

    READ ALSO: CDS orders troops to crush criminal hideouts in Kaduna, Plateau

    Speaking on the theme of the event, “Countering Violent Extremism: The Role of Educational Institutions and Students”, the CDS stated that youths and particularly students play a key role in advocacy.

    “Let us speak through social media, TV, and radio to counter extremist narratives and promote peace,” he said.

    He added, “This sensitisation programme could not have come at a better time.

    “At its core, it aims to raise awareness and stimulate positive action at the grassroots, to embrace peace as a way of life, and to counter radicalisation through education, dialogue, and civic responsibility.

    READ ALSO: Insecurity: One-on-One with the CDS, General C.G. Musa, by Prof. M. K. Othman

    “It is particularly important now to clarify right from wrong, especially as our adversaries exploit vulnerabilities such as illiteracy, poverty, and the fault lines of ethnicity and religion.”

    While commending the organisers, Musa said the programme was critical to awakening students’ role as security stakeholders
    Earlier, the Chief Executive Officer of Kalthum Foundation for Peace, Ummukalthum Mohammed, appreciated the CDS and his troops, as well as other stakeholders, for their unwavering efforts in the fight against Boko Haram and other terrorism in the country.

    Following the conclusion of the programme, the CDS proceeded to Maimalari Military Hospital on a sympathy visit to wounded soldiers receiving treatment, where various donations in cash, drugs, and equipment were made by a philanthropist, Dr. Paul Odilli, who accompanied the CDS

  • Military sustains efforts to safeguard nation’s security, nab wanted terrorists’ collaborators – DHQ

    Military sustains efforts to safeguard nation’s security, nab wanted terrorists’ collaborators – DHQ

    Military sustains efforts to safeguard nation’s security, nab wanted terrorists’ collaborators – DHQ

    Story by Mercy ADAJE

    The Defence Headquarters (DHQ) says the troops in conjunction with hybrid forces and other security agencies have sustained offensive operations in all theatres to provide safe corridors for farming activities.

    This is contained in a statement by the Director, Defence Media Operations, Maj.-Gen. Markus Kangye, on Saturday in Abuja.

    This, he said, was to enable farmers to contribute their quota to food production and by extension attainment of food security as directed by President Bola Tinubu.

    He said the armed forces under the leadership of Gen. Christopher Musa, was not negotiating issues of national security and welfare of troops who had remained resolute and ever determined to safeguard the nation’s territorial integrity, national interest and protect citizens from all forms of threats.

    READ ALSO: Gov Buni commends military over counter-insurgency operations

    “As part of its mandate, the military launched several key operations during the week with renewed vigor aimed at combating insurgency, terrorism, and other forms of criminal activities that threaten our communities.

    “These operations are strategically designed and executed to ensure the safety of our people and the restoration of peace in affected regions.

    “Accordingly, I am pleased to give an update on the significant progress in our operations conducted from May 8 to May 15.

    “Within the period under review, troops successfully destroyed several terrorists’ camps as well as rescue of kidnapped victims and rehabilitation of civilians affected by the conflict,” he said.

    READ ALSO: Military apprehends 100 suspects over Abia killing — DHQ

    Kangye said the dedicated troops had demonstrated remarkable courage and professionalism in the face of adversity, adding that cooperation of local communities had also been invaluable in their intelligence-gathering efforts.

    According to him, the gallant troops neutralised scores of terrorists, and apprehended two wanted extremists informants and logistics suppliers identified as Zakari Abubakar and Aliyu Musa in Suleja and Borgu Local Government Areas of Niger.

    He added that troops also apprehended an ammunition courier identified as Rufai Abdullahi in Gwagwalada Area Council of the FCT.

    “Items recovered within the period under review include; arms and ammunition, monies, locally fabricated guns as well as motorcycles.

    “Other items recovered were, pumping machines, drilling machines, tricycles, mobile phones and vehicles,” he said.

    In the North East, Kangye said the troops of Operation Hadin Kai, neutralised scores of terrorists during fighting patrols, raids and clearance operations in Mafa, Dikwa, Gwoza and Damboa Local Government Areas of Borno.

    He said the operation also led to the rescue of 17 kidnapped victims as well as recovery of arms and some quantities of assorted ammunition as well as hand grenades and extra magazines.

    In the North West, Kangye said the troops of Operation Fansan Yamma, killed scores of terrorists and rescued 129 victims across Kaduna, Katsina, Sokoto and Zamfara States within the week.

    In the Niger Delta, he said the troops of Operation Delta Safe, foiled oil theft worth over ₦103 million, comprisi 68,875 litres of stolen crude oil, 31,166 litres of illegally refined Automotive Gas Oil (AGO) and 2,250 litres of Dual Purpose Kerosene (DPK).

    He added that troops discovered and destroyed 16 crude oil cooking ovens, 31 dugout pits, 19 boats, 34 storage tanks, 79 drums and 18 illegal refining sites.

    “Other items recovered include, pumping machines, drilling machines, tricycles, motorcycles, mobile phones and seven vehicles,” he added.

  • ISWAP kills over 50 farmers, abducts 18 others

    ISWAP kills over 50 farmers, abducts 18 others

    ISWAP kills over 50 farmers, abducts 18 others

    Story by Mercy ADAJE

    At least 50 farmers and fishermen were reportedly killed in an attack by Islamic State of West Africa Province (ISWAP) terrorists in Malam Karanti village near Baga, located in the Kukawa Local Government Area of Borno State.

    According to reports, the attack took place on Thursday morning in Malam Karanti, a village located about 5 kilometers from Baga.

    Sources said the terrorists gathered farmers and fishermen near the village and killed 50 bean farmers.

    READ ALSO: Boko Haram/ISWAP strike military base in Borno, kill 7 soldiers, others missing

    “The terrorists spared an elderly man, who later alerted the community. The terrorists assembled people in Malam Karanti and killed them. Most of the victims were bean farmers,” a source said.
    Residents attempting to recover bodies were forced to retreat after ISWAP launched another attack.

    “We tried to organise a rescue mission with security agencies to recover the victims’ bodies, but the terrorists returned and prevented us. Many families are waiting for their loved ones,” another source said.

    Malam Karanti is an ISWAP enclave where civilians often farm and fish despite risks.

    Meanwhile, the Chief of Defence Staff, General Christopher Musa, during his visit on Thursday, assured residents of Borno State and the North-East that the military is frantically working to deal with the terrorists and flush them out of their enclaves to end the crisis.

    READ ALSO: ISWAP terrorists invade Geidam town in Yobe, kill resident, destroy properties

    He added that the military is synergising with friendly countries such as Russia, France, among others, to deploy sophisticated weapons that could bring the war quickly to an end.

    General Musa added that recharging of the Lake Chad will also enable troops to navigate the Lake Chad axis to eliminate the terrorists, especially the ISWAP, who have capitalised on the economic fortunes of the Chad Basin, such as fishing and farming, to boost their logistics base.

    On Friday, General Musa assured Nigerians that the military is committed to addressing the recent surge in insecurity.

    General Musa gave the assurance while briefing the State House correspondents immediately after a closed-door meeting with President Tinubu and defence chiefs at the Aso Rock Villa.

    He stated that additional equipment has already been procured to strengthen the fight against terrorists, who have intensified their attacks in recent months, particularly in the northern region of the country.

    “Mr President has given a directive as to what to do next for us to intensify all efforts, collaborate with all our sister countries around us, because it is the porous nature from there that is aggravating our own issues on the ground.

    “And so all our theatres have been enhanced, equipment has been bought, and Mr President has given us much approval for air assets, and other aspects of security and as we said, it is not only the kinetic aspect, the non-kinetic aspect is most important.

    “The President is also looking at discussing with governors for their own support by ensuring that dividends of democracy extend to the community to stamp down the issue of insecurity, and we are working together,” General Musa said.

  • Kogi Governorship Tribunal: SDP wraps up case as Ododo, APC prepare for defence on April 15

    Kogi Governorship Tribunal: SDP wraps up case as Ododo, APC prepare for defence on April 15

    Governor Usman Ododo of Kogi State, alongside the All Progressives Congress (APC), is set to commence their defence on April 15th at the state’s governorship election tribunal in Abuja, following the closure of the case by the Social Democratic Party (SDP) and its candidate, Murtala Ajaka.

    The three-member tribunal, headed by Justice Ado Birnin-Kudu, scheduled the commencement of Ododo and APC’s defence after the SDP and Ajaka, having initially presented 25 witnesses out of a purported 400, concluded their case.

    Additionally, the Independent National Electoral Commission (INEC) is expected to present its defence with two witnesses in the ongoing matter.

    The dispute arises from the challenge posed by the SDP and its gubernatorial candidate against Governor Ododo’s victory in the November 11, 2023 poll, with INEC, Ododo, and APC named as the 1st to 3rd respondents, respectively.

    READ ALSO: Court moves Kogi Election Tribunal to Abuja following alleged attack on secretary

    During Friday’s proceedings, lawyers representing INEC, Ododo, and APC opposed the attempt by Jibrin Okutepa, SAN, to lead witness Edidiong Udoh, a Digital Forensic Expert, in evidence. They argued that the witness was not listed in the petitioners’ proof of evidence and that his statement was not submitted alongside the petition.

    Despite objections, Okutepa insisted on leading Udoh in evidence, prompting a request for time to review the witness’ report by the respondents’ counsel.

    Udoh, requesting an amendment to his statement, described himself as a digital forensic expert residing in Port Harcourt, Rivers State. However, objections were raised against the amendment, with the respondents’ counsel arguing against its permissibility.

    Following Udoh’s testimony, attempts were made to tender his certificates as exhibits, which were initially contested due to the absence of original documents. However, the tribunal ultimately admitted the documents, with objections reserved for final written addresses.

    The proceedings highlight the intricacies of the ongoing legal battle over the Kogi governorship election outcome, underscoring the significance of evidence presentation and procedural adherence in resolving electoral disputes.

  • Defence Headquarters confirms death of 36 military officers during bandits’ attack

    Defence Headquarters confirms death of 36 military officers during bandits’ attack

    Defence Headquarters confirms death of 36 military officers during bandits’ attack

    Story from Vincent CHIKAMSO

    The Defence Headquarters (DHQ) on Thursday confirmed that bandits have killed 36 military officers during an attack in Niger State.

    Prior to this confirmation, there have been reports that at least 21 soldiers were killed in an ambush by bandits along the Zungeru-Tegina Road on Sunday.

    But the Director Defence Media Operations, Major General Edward Buba, said the figure is actually 36, when he gave a breakdown of casualties in the ambush of  the troops in Niger State and an evacuation helicopter that crashed on August 14, 2023.

    READ ALSO: Bandits in Niger State ambush, slaughter 13 soldiers, 2 senior officers

    READ ALSO: Bandits claim responsibility for Air Force helicopter crash, brandish AK-47 rifles in video

    The breakdown was given at the biweekly briefing of the Defence Media Operations.
    When asked about the cause of the helicopter crash, he restated that an investigation is still underway to determine the cause and urged citizens to be wary of propaganda by terrorists and remain patriotic.

    Insurgents had ambushed troops in the Zungeru area of the state and some gallant troops of the Nigerian Army paid the supreme price.

    Also, a Nigerian Air Force MI-171 Helicopter on a casualty evacuation mission crashed on Monday in the Shiroro Local Government Area (LGA) of the state.