Notes ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software | ABCDEFGHIJKLMNOPQRSTUVWXYZONPRTOFF codeid operationid title keywords application code languageid show_html show_iframe make_public viewed viewed_date language operation <- Look Inside DataConditions:Order: 1|2|50 Language Operation Title Keywords Application Code Languageid Show Html Show Iframe Make Public Viewed Viewed Date Php Archive Software Web Activation.php reg75 Reg75.php dbsql($sql); $row=$qu->data1; $device_name=isset($row['device_name'])?$row['device_name']:''; $device_name=$device_name; $lock_device=isset($row['lock_device'])?$row['lock_device']:0; $lock_device_=$lock_device; if($_COOKIE["machine_id"]=="")setcookie("machine_id",$device_name,time()+60*60*24*700 ,"/","softwarewebdesign.com"); for($i=1;$i<=7;$i++){ switch($i){ case 1: $server='localhost';$user='softwax3_Steve99';$password='pay99.bill';$database='softwax3_accounting'; break; case 2: $server='localhost';$user='softwax3_Steve99';$password='pay99.bill';$database='softwax3_accountingP';break; case 3: $server='localhost';$user='softwax3_Steve99';$password='pay99.bill';$database='softwax3_cropMap';break; case 4: $server='localhost';$user='softwax3_Steve99';$password='pay99.bill';$database='softwax3_hairShoppe';break; case 5: $server='localhost';$user='softwax3_Steve99';$password='pay99.bill';$database='softwax3_emailAccts';break; case 6: $server='localhost';$user='softwax3_Steve99';$password='pay99.bill';$database='softwax3_invoices';break; case 7: $server='localhost';$user='softwax3_Steve99';$password='pay99.bill';$database='softwax3_Tips';break; default: } //MAKE SURE USER IS IN THE APPLICATIONS ADMIN DATABASE $connection = mysqli_connect($server, $user,$password); mysqli_select_db($connection, $database); //$db = mysql_pconnect($server, $user,$password); mysql_select_db($database); $qu=new mysqli_swd(); $sql="SELECT * FROM useradmin WHERE lastname='$device_name'";$qu->dbsql($sql); if($qu->num==0){ $sql="INSERT INTO `useradmin`(`userid`, `lastname`, `firstname`, `email`, `username`, `password`, `level`, `logintimes`, `lastlogin`, `accesspages`, `ipaddress`, `locked`) VALUES (NULL,'$device_name','fnmae','email1','uname','[passvalue-6]',10,10,'','[value-11]','[value-12]',$lock_device)";$qu->dbsql($sql); } else { $sql="UPDATE `useradmin` SET `lastname`='$device_name',`locked`= $lock_device WHERE lastname='$device_name'"; $qu->dbsql($sql); } } } if($_GET["EM"]==1){ setcookie("machine_id","INACTIVE",time()+60*60*24*700 ,"/","softwarewebdesign.com");header("location:index75.php");exit; } $ID=$_GET["ID"];if($ID=="")$ID=0; $FORM=$_REQUEST['FORM']; $user='softwax3_build99';$password='Web2Build.now';$database='softwax3_SoftwareUsers';// swd 10/23/19 $connection = mysqli_connect($server, $user,$password); mysqli_select_db($connection, $database);// swd 10/23/19 if($FORM==2){ setcookie("machine_id",$_GET["DEVICE"],time()+60*60*24*700 ,"/","softwarewebdesign.com"); header("location:index75.php"); exit; } if($FORM==""){ $FORM=0;$caption99="NEW"; } $appid="1975"; $PID=$_GET['PID']; if($PID>0){ UpdateDbases($PID); header("location:reg75.php"); exit; } //LOAD MASTER USERS DATABASE $qu=new mysqli_swd();$sql="SELECT * FROM users ORDER BY device_name";$qu->dbsql($sql); $result=$qu->data; $varVerify="admin31/usersVerify.php"; $varView="/reg75.php"; ?> users View Not Found The requested URL /reg75.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache Server at www.softwarewebdesign.com Port 443 Current Users UseridDevice NameDevice TypeLock Device"; for($i=1;$i<=$qu->num;$i++){ //echo $qu->num; $row=$qu->dbRow($result); $userid=isset($row['userid'])?$row['userid']:''; $userid_=$userid; $device_name=isset($row['device_name'])?$row['device_name']:''; $device_name=$device_name; $device_name_=$device_name; $device_type=isset($row['device_type'])?$row['device_type']:''; $device_type_=$device_type; $lock_device=isset($row['lock_device'])?$row['lock_device']:''; $lock_device_=$lock_device; echo" $device_name$device_type"; if($class=='')$class='class=alt'; else $class=''; //if($LEVEL>8)$dis.=""; } echo ""; //if($NUM>$maxrec && $report=='') echo CreateLinks($INX,$NUM,$maxrec); // `End Report` /* if(strpos($_SERVER["SERVER_NAME"],"ww.")!=1 || $_SERVER["HTTPS"]!="on") { header("location:https://www.softwarewebdesign.com/reg75.php"); exit; } setcookie("user_id","GreatOne",time()+60*60*24*700 ,"/","softwarewebdesign.com"); setcookie("password_id","Agriculture",time()+60*60*24*700 ,"/","softwarewebdesign.com"); //if($_POST["machine"]!="")setcookie("machine_id",$_POST["machine"],time()+60*60*24*700 ,"/","softwarewebdesign.com"); header("location:https://www.softwarewebdesign.com/index75.php"); */ $sql="SELECT * FROM users WHERE userid=$ID";$qu->dbsql($sql); $row=$qu->data1; if($qu->num>0)$caption99="Update"; $userid=isset($row['userid'])?$row['userid']:0; $userid_=$userid; $device_name=isset($row['device_name'])?$row['device_name']:''; $device_name=$device_name; $device_name_=$device_name; $device_type=isset($row['device_type'])?$row['device_type']:0; $device_type_=$device_type; $lock_device=isset($row['lock_device'])?$row['lock_device']:0; $lock_device_=$lock_device; ?> Form Users Form Device Name: Device type> Smart Phone > Tablet > Laptop > Desktop Lock Device: > Php 2 01/30/2023 Php Archive Color Change Script color convert javascript step Home Page div {float:left;} ---------------- ---------------- -------------------- ---Test---- R: G: B: Try it yourself: R: G: B:Transfer RGB Color Values Color Hex Code Color Hex Code Color Hex Code Alice blue #F0F8FF Antique white #FAEBD7 Aqua #00FFFF Aquamarine #7FFFD4 Azure #F0FFFF Beige #F5F5DC Bisque #FFE4C4 Black #000000 Blanche dalmond #FFEBCD Blue #0000FF Blue violet #8A2BE2 Brown #A52A2A Burlywood #DEB887 Cadet blue #5F9EA0 Chartreuse #7FFF00 Chocolate #D2691E Coral #FF7F50 Cornflower blue #6495ED Cornsilk #FFF8DC Crimson #DC143C Cyan #00FFFF Dark blue #00008B Dark cyan #008B8B Dark goldenrod #B8860B Dark gray #A9A9A9 Dark green #006400 Dark khaki #BDB76B Dark magenta #8B008B Dark olive green #556B2F Dark orange #FF8C00 Dark orchid #9932CC Dark red #8B0000 Dark salmon #E9967A Dark seagreen #8DBC8F Dark slate blue #483D8B Dark slate gray #2F4F4F Dark turquoise #00DED1 Dark violet #9400D3 Deep pink #FF1493 Deep sky blue #00BFFF Dim gray #696969 Dodger blue #1E90FF Firebrick #B22222 Floral white #FFFAF0 Forest green #228B22 Fuchsia #FF00FF Gainsboro #DCDCDC Ghost white #F8F8FF Gold #FFD700 Goldenrod #DAA520 Gray #808080 Green #008000 Green yellow #ADFF2F Honeydew #F0FFF0 Hot pink #FF69B4 Indian red #CD5C5C Indigo #4B0082 Ivory #FFFFF0 Khaki #F0E68C Lavender #E6E6FA Lavender blush #FFF0F5 Lawngreen #7CFC00 Lemon chiffon #FFFACD Light blue #ADD8E6 Light coral #F08080 Light cyan #E0FFFF Light goldenrod yellow #FAFAD2 Light green #90EE90 Light grey #D3D3D3 Light pink #FFB6C1 Light salmon #FFA07A Light seagreen #20B2AA Light sky blue #87CEFA Light slate gray #778899 Light steel blue #B0C4DE Light yellow #FFFFE0 Lime #00FF00 Lime green #32CD32 Linen #FAF0E6 Magenta #FF00FF Maroon #800000 Medium aquamarine #66CDAA Medium blue #0000CD Medium orchid #BA55D3 Medium purple #9370DB Medium sea green #3CB371 Medium slate blue #7B68EE Medium spring green #00FA9A Medium turquoise #48D1CC Medium violet red #C71585 Midnight blue #191970 Mint cream #F5FFFA Misty rose #FFE4E1 Moccasin #FFE4B5 Navajo white #FFDEAD Navy #000080 Old lace #FDF5E6 Olive drab #6B8E23 Orange #FFA500 Orange red #FF4500 Orchid #DA70D6 Pale goldenrod #EEE8AA Pale green #98FB98 Pale turquoise #AFEEEE Pale violet red #DB7093 Papaya whip #FFEFD5 Peach puff #FFDAB9 Peru #CD853F Pink #FFC8CB Plum #DDA0DD Powder blue #B0E0E6 Purple #800080 Red #FF0000 Rosy brown #BC8F8F Royal blue #4169E1 Saddle brown #8B4513 Salmon #FA8072 Sandy brown #F4A460 Sea green #2E8B57 Sea shell #FFF5EE Sienna #A0522D Silver #C0C0C0 Sky blue #87CEEB Slate blue #6A5ACD Snow #FFFAFA Spring green #00FF7F Steelblue #4682B4 Tan #D2B48C Teal #008080 Thistle #D8BFD8 Tomato #FF6347 Turquoise #40E0D0 Violet #EE82EE Wheat #F5DEB3 White #FFFFFF Whitesmoke #F5F5F5 Yellow #FFFF00 Yellow green #9ACD32 "; Php 7 12/28/2022 Php Archive Code Zoom Backup Code zoom format html_entity_decode Codezoom.php <?php //compiled version: 7.2022.912.1815 $REPORT_builder.="<script> function Clipboard(txt) { var copyText = document.getElementById(txt); copyText.select(); copyText.setSelectionRange(0, 99999); navigator.clipboard.writeText(copyText.value); }</script>"; $pageLevel=3; $title="code View"; // `Startup Config` embed point $appid="638069743707776546";$appidLast=""; error_reporting( error_reporting() & ~E_NOTICE ); require_once("mystuff.php"); require_once("functions.php"); $r=new mysqli_swd(); //if(file_exists("header_global.php")) require_once("header_global.php"); //if(file_exists("header.php")){ include("header.php"); }else{ echo $REPORT_builder; } $codeid=$_GET["PID"]; //$codeid = ereg_replace('[^0-9]', '', $codeid); $sql="SELECT code,viewed,viewed_date,show_html FROM code WHERE codeid = '$codeid'"; $r->dbsql($sql); $code=html_entity_decode(stripslashes($r->data1[0])); $sql="UPDATE `code` SET `viewed`='".($r->data1[1]+1)."',`viewed_date`='".date("Y-m-d")."' WHERE codeid = '$codeid'";$r->dbsql($sql); $REPORT_builder.="<div class='div1'><textarea id='code' name='code' style=min-height:500px;width:100%;>$code</textarea></div> <input type='button' name='keywords_clipboard' style='margin-top:25px;' value='Save Code' onclick="Clipboard('code');"> <input type=button onclick="location.href='codeView.php?BACK=1#$codeid';" value='R E T U R N'> </body></html>"; echo $REPORT_builder; ?> Php 0 12/28/2022 Php Constants Setting The Absolute Path absolute path define constant Library if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); require_once(ABSPATH."mystuff.php"); require_once(ABSPATH."functions.php"); Php 3 09/09/2023 Php Customizing Convert Words Into A Graphic text graphic image convert $im = imagecreate(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); // The text to draw $text = 'Testing...'; // Replace path by your own font path $font = 'arial.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ************************************* The below script would be called with a tag like this from a page: Header("Content-type: image/gif"); if(!isset($s)) $s=11; $size = imagettfbbox($s,0,"/fonts/TIMES.TTF",$text); $dx = abs($size[2]-$size[0]); $dy = abs($size[5]-$size[3]); $xpad=9; $ypad=9; $im = imagecreate($dx+$xpad,$dy+$ypad); $blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF); $black = ImageColorAllocate($im, 0,0,0); $white = ImageColorAllocate($im, 255,255,255); ImageRectangle($im,0,0,$dx+$xpad-1,$dy+$ypad-1,$black); ImageRectangle($im,0,0,$dx+$xpad,$dy+$ypad,$white); ImageTTFText($im, $s, 0, (int)($xpad/2)+1, $dy+(int)($ypad/2), $black, "/fonts/TIMES.TTF", $text); ImageTTFText($im, $s, 0, (int)($xpad/2), $dy+(int)($ypad/2)-1, $white, "/fonts/TIMES.TTF", $text); ImageGif($im); ImageDestroy($im); ?> It is very important to realize that you cannot put any HTML tags in this file. There should also not be any spaces or blank lines before or after the and ?> tags. If you are getting a broken image using this script, chances are you have a stray carriage return somewhere outside the PHP tags Php 1860 09/09/2023 Php Customizing Rename A File In PHP rename file Change File Names rename a file in PHP, use the built-in rename() function. This function takes the old filename/path and the new filename/path as mandatory arguments and returns true on success or false on failure. rename() Function Syntax rename($oldname, $newname, $context); $oldname (Mandatory): Specifies the current name/path of the file or directory. $newname (Mandatory): Specifies the new name/path for the file or directory. $context (Optional): Specifies the behavior of the stream. Php 0 12/19/2025 Php Customizing Using Strip_tags strip tags html Unwanted Table Breaks To remove specific HTML tags from a string in PHP, you have two primary methods: using the built-in strip_tags() function to specify which tags to keep, or using preg_replace() with regular expressions to remove specific tags. Method 1: Using strip_tags() (Recommended) The strip_tags() function is the safest and most efficient way to handle HTML tag removal in most scenarios. It allows you to define an allowable list of tags to preserve, and all other tags will be stripped. This is a headingThis is a paragraph with bold text and an italic word."; // Specify which tags to keep (e.g., and ) $allowed_tags = ""; $clean_string = strip_tags($html_string, $allowed_tags); echo $clean_string; ?> Output: This is a headingThis is a paragraph with bold text and an italic word. In the above example, and tags are removed, while and tags are retained because they were in the $allowed_tags list. The text content within the removed tags is preserved. Method 2: Using preg_replace() (For advanced, specific removal) If you need to remove a small, specific list of tags and keep all others, or if you need to remove the tags and their contents (like