PHP Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<?php if (!isset($GLOBALS['vbulletin']->db)) { exit; } require_once(DIR . '/includes/class_vurl.php'); /** * vBulletin Trackback Class * * This class handles sending and receiving trackback responses */ function vB_Trackback_Client(&$registry) { if (is_object($registry)) { $this->registry =& $registry; } else { trigger_error('vB_Trackback::Registry object is not an object', E_USER_ERROR); } } ?> |
Delphi Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
{ $OmniXML: OmniXML/extras/OmniXMLShared.pas,v 1.1 2004/06/07 13:06:32 mr Exp $ } {$WEAKPACKAGEUNIT ON} (*:XML helper unit. Contains class to manage shared XML document (stored in the resizable shared memory). @author Primoz Gabrijelcic @desc <pre> (c) 2002 Primoz Gabrijelcic Free for personal and commercial use. No rights reserved. Author : Primoz Gabrijelcic Creation date : 2002-05-13 Last modification : 2002-09-24 Version : 1.01 </pre>*)(* History: 1.01: 2002-09-24 - Added property TGpSharedXML.CachedXML. 1.0: 2002-05-13 - Created. *) unit OmniXMLShared; interface uses Windows, GpSharedMemory, OmniXMLProperties; type {:Shared XML document. } TGpSharedXML = class private sxOwnsXML : boolean; sxSharedMemory: TGpSharedMemory; sxXMLDoc : TGpXMLDoc; protected function Acquire(forWriting: boolean; timeout: DWORD): TGpXMLDoc; function GetName: string; function GetXML: TGpXMLDoc; public constructor Create(sharedMemoryName: string; xmlDoc: TGpXMLDoc; maxSize: cardinal; ownsXML: boolean = true); virtual; destructor Destroy; override; function BeginUpdate(timeout: DWORD): TGpXMLDoc; virtual; procedure EndUpdate; virtual; function Read(timeout: DWORD): TGpXMLDoc; virtual; property CachedXML: TGpXMLDoc read sxXMLDoc; property Name: string read GetName; property XML: TGpXMLDoc read GetXML; end; { TGpSharedXML } |
Plain Text
1 2 3 4 |
This is just plain text brush... Maybe somebody will need it :) |
xxx