Skip to content

Instantly share code, notes, and snippets.

@kkakaei
kkakaei / reset-trial-navicat.sh
Created April 11, 2023 04:17 — forked from nakamuraos/reset-trial-navicat.sh
Reset trial Navicat 15, Navicat 16 on Linux
#!/bin/bash
# Author: NakamuraOS
# https://github.com/nakamuraos
# Latest update: 30/03/2022
# Tested on Navicat 15.x, 16.x on Linux
RED="\e[1;31m"
ENDCOLOR="\e[0m"
@kkakaei
kkakaei / get.php
Last active November 18, 2016 11:44
<?php
require './inc/dbconnection.php';
// include './keyboards.php';
$link = connect();
function api($method, $task)
{
global $link;
$link = "https://api.telegram.org/bot222907056:AAHAbd8GaCHSqyglQT8GTlgtQVqIgxbJyDc/" . $method . "?" . $task;
file_get_contents($link);
<?php
$poemarray=explode("\n", $_POST["poem"]);
$length= count ($poemarray) ;
echo '"poem_id" "vorder" "position" "text" "poet"<br>';
for ($i=0;$i<$length;$i++)
{
$vorder=$i+1;
$position=$i%2;
echo '"'.$_POST["poem_id"].'" "'.$vorder.'" "'.$position.'" "'.$poemarray[$i].'" "'.$_POST["poet"].'"<br>';
<meta charset="utf-8">
<?php
include '../inc/dbconnection.php';
?>
<?php
$text = $_POST["summary"] . "<br>" . $_POST["full"];
$filename = $_POST["filename"] . ".php";
$file = fopen($filename, "w");
$pagelink = "http://localhost/web/index/posts/" . $filename;
$link = connect();
<html>
<head>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet">
</head>
</html>
<?php
session_start();
if( $_POST["username"] == "" || $_POST["fname"]== "" || $_POST["lname"] =="" || $_POST["email"] == "" || $_POST["password"] == "")
{
<?php
session_start();
?>
<?php
$link = mysqli_connect($host, $user, $pass, $database);
$ussrname = $_POST["username"];
$hash_format = "$y2$10";