Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PHP WordPress – Check If MultiSite From CLI

Posted on November 3, 2015 By David Kittell
require(dirname(__DIR__) . '/html/wp-config.php');

if(defined('WP_ALLOW_MULTISITE'))
	{
		if (constant("WP_ALLOW_MULTISITE") == true)
			{
				echo "\nThis site is MultiSite\n";
			}
		else
			{
				echo "\nThis site is not MultiSite\n";
			}
	}
else
	{
		echo "\nThis site is not MultiSite\n";
	}
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PHP WordPress

Post navigation

Previous post
Next post

Related Posts

UNIX – Create New User & Add To Group

Posted on August 5, 2016

username="dkittell" usergroup="developers" useradd $username && passwd $username # Set initial password # Force user to change password once logged in chage -d 0 $username groupadd $usergroup usermod -aG $usergroup $username All information on this site is shared with the intention to help. Before any source code or program is ran…

Read More

Flash Video

Posted on September 3, 2013October 26, 2015

<script language="JavaScript" type="text/javascript"> // <![CDATA[ var fo = new FlashObject("../flash/videoPlayer.swf", "foo", "455","400", "8.0.22", "#ffffff", true); fo.addParam("wmode", "transparent"); fo.addParam("quality","high"); fo.addParam("align","middle"); fo.addParam("salign",""); fo.addParam("scale","noscale"); fo.addParam("allowScriptAccess","sameDomain"); //flash vars that need to be passed into the flash movie … fo.addVariable(‘userId’, ‘public’); fo.addVariable(‘videoId’, ‘HealthClips/hc_ca_00053_en’); fo.addVariable(‘skinName’,’../flash/haloSkin_1.swf’); fo.addVariable(‘bufferTime’, ‘3’); fo.addVariable(‘autoRewind’, ‘true’); fo.addVariable("autoPlay", "true"); fo.addVariable(‘streamId’, ‘HealthClips/hc_ca_00053_en’); fo.write("flashcontent"); // ]]>…

Read More

Azure – MSSQL Server Information

Posted on May 13, 2016

Same as MSSQL Server Information but is specific to what will work in Azure — Basic Information SELECT @@Servername AS [Server Name] –,@@ServiceName AS [Service Instance] ,Name AS [Database Name] ,create_date AS [Service Started] ,DATEDIFF(s, create_date, GETDATE()) / 86400.0 AS [Days Running] ,DATEDIFF(s, create_date, GETDATE()) AS [Seconds Runnig] ,@@VERSION AS…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes